You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add Shared Discovery Board protocol to parallel-dev-cycle
Embed a real-time shared context mechanism (coordination/discoveries.ndjson)
into all 4 agent roles, eliminating redundant codebase exploration. Each agent
reads the board on start, skips covered areas, and appends new findings as
NDJSON entries for other agents to consume.
Key additions per file:
- SKILL.md: Design principle #8, discovery type table with dedup keys and
required data fields, board lifecycle rules
- 02-agent-execution.md: Self-sufficient discovery protocol snippet in each
spawn prompt with write method, required fields, and dedup keys
- 4 role files: Full Shared Discovery Protocol section with board location,
lifecycle, physical write method (Bash echo >>), reads/writes tables with
dedup keys and required data schemas, and embedded Read/Write steps in
execution process
Copy file name to clipboardExpand all lines: .codex/skills/parallel-dev-cycle/SKILL.md
+49-3Lines changed: 49 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,7 @@ Each agent **maintains one main document** (e.g., requirements.md, plan.json, im
59
59
5.**Parallel Coordination**: Four agents launched simultaneously; coordination via shared state and orchestrator
60
60
6.**File References**: Use short file paths instead of content passing
61
61
7.**Self-Enhancement**: RA agent proactively extends requirements based on context
62
+
8.**Shared Discovery Board**: All agents share exploration findings via `discoveries.ndjson` — read on start, write as you discover, eliminating redundant codebase exploration
**Execution Order**: RA → EP → CD → VAS (dependency chain, all spawned in parallel but block on dependencies)
273
279
274
-
**Agent → Orchestrator**: Each agent outputs `PHASE_RESULT:` block:
280
+
### Shared Discovery Board
281
+
282
+
All agents share a real-time discovery board at `coordination/discoveries.ndjson`. Each agent reads it on start and appends findings during work. This eliminates redundant codebase exploration.
283
+
284
+
**Lifecycle**:
285
+
- Created by the first agent to write a discovery (file may not exist initially)
286
+
- Carries over across iterations — never cleared or recreated
287
+
- Agents use Bash `echo '...' >> discoveries.ndjson` to append entries
288
+
289
+
**Format**: NDJSON, each line is a self-contained JSON with required top-level fields `ts`, `agent`, `type`, `data`:
Copy file name to clipboardExpand all lines: .codex/skills/parallel-dev-cycle/phases/02-agent-execution.md
+115-1Lines changed: 115 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,38 @@ Spawn four specialized agents in parallel and wait for all to complete with time
5
5
## Objective
6
6
7
7
- Spawn RA, EP, CD, VAS agents simultaneously using Codex subagent pattern
8
-
- Pass cycle context and role references to each agent
8
+
- Pass cycle context, role references, and **discovery protocol** to each agent
9
9
- Wait for all agents with configurable timeout
10
10
- Handle timeout with convergence request
11
11
- Output: agentOutputs from all 4 agents
12
12
13
+
## Shared Discovery Board
14
+
15
+
All agents share a discovery board at `{progressDir}/coordination/discoveries.ndjson`. Each agent reads it on start and writes discoveries during execution. This eliminates redundant codebase exploration across agents.
16
+
17
+
**Agent reads board → skips covered areas → explores unknowns → writes new findings → other agents benefit**
18
+
19
+
### Discovery Protocol Snippet (injected into every agent prompt)
Copy file name to clipboardExpand all lines: .codex/skills/parallel-dev-cycle/roles/code-developer.md
+67-2Lines changed: 67 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,61 @@ The Code Developer is responsible for implementing features according to the pla
55
55
- Leave TODO comments without context
56
56
- Implement features not in the plan
57
57
58
+
## Shared Discovery Protocol
59
+
60
+
CD agent participates in the **Shared Discovery Board** (`coordination/discoveries.ndjson`). This append-only NDJSON file enables all agents to share exploration findings in real-time, eliminating redundant codebase exploration.
0 commit comments