/code — Build/Fix Features
Enters CODE mode. Structured implementation with TDD, review, and doc sync.
What Happens
- Load context: Read
{plan_file}, relevant specs,CLAUDE.mdcoding rules - Plan: Enter plan mode, identify files to change, get Operator approval
- Implement: Write tests first, then code, following
.agents/reference/code_modularization.md - Review: Launch code-reviewer + compliance-checker agents
- Doc sync: Update docs per
config/doc_mappings.jsonmappings - On
/done: Commit, verify gates pass
Team Mode (if CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS is set)
Lead Dev + Test Writer + Reviewer + Doc Sync agent.
Fallback Mode (if env var not set)
Sequential subagent calls:
- Specialized agent (etl-specialist, dashboard-developer, etc.) for implementation
- code-reviewer agent for review
- compliance-checker agent for CLAUDE.md adherence
- Doc sync in main context
Gate References
- Gate 2 (pre-commit): Validates any generated prompts
- Gate 3 (honesty): Verifies claims match actual output
Judgment weave (see /judgment)
- Bug fixes: run
/altitudebefore coding — land the fix at the cause's layer, not the symptom's. - Before claiming done: run
/refuteon your own completion claim.