PASS.
Continue Existing Task prompt
Copy this prompt into your agent session, then replace... with either Task file: <path/to/task-file.md> or the task text pasted on the following lines.
How the agent infers the next step
If you do not supply an explicit command, the agent infers the next step from the current repo state:| Repo state | Next step |
|---|---|
| Task folder does not exist | init only — do not proceed further until init succeeds |
spec.md is missing or placeholder-only | freeze |
| Implementation is not yet complete | build |
| Evidence is stale or missing | evidence |
| No fresh verdict exists | verify |
Verdict is not PASS | fix |
Full run sequence
init
Create the repo-local task folder, artifacts, and subagents if they do not exist yet.Wait for
init to finish, then confirm .agent/tasks/<TASK_ID>/spec.md exists before continuing.freeze
Spawn exactly one spec-freezer subagent. It writes or updates
spec.md with the original task statement, acceptance criteria (AC1, AC2, …), constraints, non-goals, and a verification plan. It does not touch production code.build
Spawn exactly one builder subagent. It implements the task against the frozen spec, makes the smallest safe change set that satisfies the acceptance criteria, and returns the files changed, checks run, and open risks.
evidence
Continue in the same builder session. The builder packs
evidence.md, evidence.json, and raw artifacts (raw/build.txt, raw/test-unit.txt, raw/test-integration.txt, raw/lint.txt) without changing production code. Each acceptance criterion receives a PASS, FAIL, or UNKNOWN judgment with concrete proof.Use the fallback evidence-only prompt only if the original builder session is unavailable.verify
Spawn exactly one fresh verifier subagent. It independently inspects the current codebase, reruns verification, and writes
verdict.json. If the overall verdict is not PASS, it also writes problems.md.fix (if needed)
If the verdict is
FAIL or UNKNOWN, spawn exactly one fresh fixer subagent. The fixer reads only spec.md, verdict.json, and problems.md, reconfirms each listed problem, makes the smallest safe change set, and regenerates the evidence bundle.Using --force to overwrite existing artifacts
Pass --force to init when you need to recreate task artifact templates that already exist on disk:
--force, the initializer skips files that already exist.
Claude Code: new session after init refreshes agents
If
init created or refreshed .claude/agents/* during a running Claude Code session, start a new Claude Code session before relying on those updated agents. Use /agents to confirm the updated agent list is available in the new session.