Agent prompts
Agent prompts
Section titled “Agent prompts”The protocol is implemented as Claude Code subagents. Each role has a prompt file under ~/.claude/agents/ and a matching responsibility. Spawn the right subagent for the current lifecycle stage.
Quick reference
Section titled “Quick reference”| Role | File | Spawns when… |
|---|---|---|
| Dispatcher | ~/.claude/agents/dispatcher.md |
A new goal arrives or routing is needed. |
| Researcher | ~/.claude/agents/researcher.md |
Context must be gathered before a decision. |
| Builder | ~/.claude/agents/builder.md |
A concrete artefact needs to be produced. |
| Runtime | ~/.claude/agents/runtime.md |
Live systems need safe operational changes. |
| Verifier | ~/.claude/agents/verifier.md |
Work is ready to be validated. |
| Archivist | ~/.claude/agents/archivist.md |
A goal is closing and records need linking. |
| Router | ~/.claude/agents/router.md |
A previously interrupted goal needs resuming. |
Dispatcher
Section titled “Dispatcher”What it does: Decides who does what. Every new goal starts here.
Required outputs:
- A
goal_recordwithgoal_id, requester, constraints, and package type. - A
dispatch_instructionwith target role, owner, deadline, success criteria, and escalation trigger. - Memory-first: recall the latest relevant records, use only results with score ≥ 0.45, and record any memory IDs that shaped dispatch decisions in
recalled_memory_ids.
When to spawn:
- A user types
/teamwith a new request. - A headless supervisor receives a new goal.
- A goal needs re-routing after a blocked or red verdict.
Researcher
Section titled “Researcher”What it does: Gathers context before decisions are made.
Required outputs:
- A
context_summarycontaining the question, sources consulted, options considered, trade-offs, confidence, and recommended next step. recalled_memory_idslisting the IDs of any Eden-memory memories recalled and used to inform the summary; only treat recall results with score ≥ 0.45 as relevant.
When to spawn:
- The Dispatcher needs options before assigning a build or run task.
- A non-trivial goal has unknown constraints or dependencies.
- The Builder needs background research before implementation.
Builder
Section titled “Builder”What it does: Produces durable, reviewable artefacts.
Required outputs:
- The artefact itself (code, config, doc, test, etc.).
- A change summary with rationale, record IDs, merge instructions, and follow-up steps.
- An
action_recordin eden-memory withgoal_id,stage: action,owner_role: builder,input_record_ids, andoutput_record_ids. recalled_memory_idslisting the IDs of any Eden-memory memories recalled and used to inform the action; only treat recall results with score ≥ 0.45 as relevant.
When to spawn:
- A
dispatch_instructionassigns a build package. - A
context_summaryrecommends a concrete implementation.
Runtime
Section titled “Runtime”What it does: Executes operational actions safely on live systems.
Required outputs:
- An ordered execution plan.
- A rollback/recovery plan for each step.
- Observed state before and after execution.
- Health evidence.
- An
action_recordin eden-memory. recalled_memory_idslisting the IDs of any Eden-memory memories recalled and used to inform the plan or action; only treat recall results with score ≥ 0.45 as relevant.
When to spawn:
- A
dispatch_instructionassigns a run package. - A goal requires deploys, infrastructure changes, or data migrations.
- The charter explicitly authorises Runtime for live operations.
Important: Runtime is gated by default. Do not spawn it for live operations unless the project charter authorises it.
Verifier
Section titled “Verifier”What it does: Validates work before it is accepted.
Required outputs:
- A
verdictrecord with statusgreen,red, orblocked. - Evidence supporting the verdict.
- Scope of what was verified and what was not.
- Residual risks and recommended mitigations.
recalled_memory_idslisting the IDs of any Eden-memory memories recalled and used to inform the verdict; only treat recall results with score ≥ 0.45 as relevant.
When to spawn:
- A Builder or Runtime action record is ready for review.
- The success criteria are objective enough to inspect.
Rule: A role must not verify its own work.
Archivist
Section titled “Archivist”What it does: Maintains durable, searchable fleet memory.
Required outputs:
- Canonical records for the final outcome and decision trail.
- Searchable links between related records.
- Updated skills/runbooks if a reusable convention emerged.
- A closure record with
goal_id,stage: recording_and_archival,owner_role: archivist,input_record_ids, andoutput_record_ids. - For hand-offs, an ownership transfer record.
recalled_memory_idslisting the IDs of any Eden-memory memories recalled and used to inform closure or the hand-off; only treat recall results with score ≥ 0.45 as relevant.
When to spawn:
- A green
verdictis ready for closure. - A goal needs to be handed off to another session or role.
- Reusable conventions need to be captured in project skills.
Router
Section titled “Router”What it does: Resumes interrupted or unfinished goals by reading eden-memory and dispatching the correct next role.
Required outputs:
- A
run_logrecord marking the continuation attempt. - A clear decision: which role should act next and why.
- A hand-off payload containing
goal_id, inferred stage, next role, latest record IDs, success criteria, and any escalation trigger. recalled_memory_idslisting the IDs of any Eden-memory memories recalled and used to resume the goal; only treat recall results with score ≥ 0.45 as relevant.
When to spawn:
/team-continueis invoked with agoal_id.- A headless supervisor needs to resume a partially completed goal.
- The conversation was interrupted before a role finished.
Spawning a subagent
Section titled “Spawning a subagent”Spawn the role with its goal_id and the latest record IDs. Each subagent starts by recalling the latest goal_record for its assigned goal, then acts according to its contract, and finally writes a durable record in eden-memory before handing off.
Fallback
Section titled “Fallback”If the eden-memory MCP tools are unavailable, use the /eden-* fallback slash commands or invoke eden-memory directly from Bash. Restart Claude Code after eden-memory setup claude if commands are missing.
See also
Section titled “See also”- Lifecycle — the seven-stage flow these roles implement.
- Record kinds — the records each role is responsible for producing.
- Set up a headless supervisor — running these subagents from a script or scheduler.