Plan mode first
Engineers start in plan mode with the approved spec. The plan is committed as plan.md.
Watch it run
Traditional
The engineer reads the design and starts coding. Which files change and which tests to write stay in their head or a ticket comment, so nobody else can review it. The reviewer first sees the finished diff, and by then rework is slow.
AI-native
Work starts with a written plan from plan mode, where Claude can read the codebase but cannot change anything. The engineer corrects the plan. The approved version is committed as plan.md for later stages to check against.
Prerequisites
The intent artifact (intent.md or spec.md), if one exists.
CLAUDE.md helps.
Infrastructure
Claude Code with repo access.
- Start the session in plan mode.
- Give Claude intent.md and spec.md. Ask for a plan that names the files that change, the order of the work, and the tests that prove it.
- Interrogate the plan: what could this break, which step is the riskiest, which other options were rejected.
- Iterate until an engineer who never saw the conversation could implement from the plan alone.
- Commit the approved plan as plan.md. It joins the audit trail, and the PR review play checks the diff against it.
- Accept the plan and let Claude implement.
- If the implementation departs from the plan, update plan.md in the same commit. Consider a hook to enforce the sync.
- Files that change: StatusPanel.tsx (new), claims-api/routes/status.py, claims-api/tests/test_status.py.
- Order of work: the status endpoint behind existing auth, then the panel with a 60-second cache, then wire it into the portal nav.
- Risks: claims-core allows 50 requests per second, so reads must be cached.
- Proof: the tests cover the four claim states and fail on any extra field. A screenshot matches the approved mock.
The plan cites R1 to R4 and a spec concern, so a reviewer can check it line by line against the spec.
- Design review happens before any code, when changing course is still a matter of editing a document.
- Plan mode enforces this. Claude cannot edit files until the engineer accepts the plan.
- The plan, its revisions and who accepted it are logged.
- Routine changes are approved by the engineer. Higher risk goes to a tech lead or architect.
- Share of changes that merge from the first implementation pass.
- Time from plan approval to merged PR (from PR metadata).
- Rework cycles per change (PR metadata).
- How often the merged diff still matches the committed plan.md.
Auto mode comes later, once guardrails mature
You iterate on and approve the plan. Claude then applies each change without a per-edit prompt. Auto mode becomes the default for routine work as these four guardrails mature:
- Good fit: a tight spec.md, a small blast radius, and code the tests already cover.
- The shift is from watching the agent edit to reviewing artifacts after longer autonomous sessions.
- With worktrees, auto mode enables parallelism across people and teams. The course calls it fundamental to running the SDLC autonomously and closing the loop in Stage 6.
Fit around what exists: one source of truth per artifact
Teams already track work in Jira, requirements in a traceable tool, designs in Figma and approvals with a change board. Auditors accept these, so they are hard to replace. Start with linkage, then name one source of truth for each artifact.
1. Linkage first
The minimum bar and a good place to start. Artifacts note the record ID. Legacy records carry the commit SHA of the Markdown file. There are two sources of truth, and that is accepted for now.
2. The repo is the truth
Markdown artifacts are authoritative. The legacy system references files within commits. One of the cleanest setups for engineering-led organizations: one tool, one timestamp authority.
3. The legacy system is the truth
Jira, ServiceNow or the requirements tool is authoritative. The Markdown files are working copies. Claude reads the record at session start and writes the outcome back through an MCP connector in the same session.
The choice can differ for each artifact. Both can coexist as long as they are linked or one is declared the source of truth.