01 · Structure
your-project/├── .claude/│ ├── CLAUDE.md│ └── agents/│ ├── cod.md│ ├── rev.md│ ├── res.md│ └── log.md└── agents/ └── PROJECT.md

TThheeeexxhhaauussttiioonnmmeetteerrsshhoowwsshhoowwccoonntteexxttddrraaiinnssffrroommrreesseeaarrcchhttooeexxhhaauusstteedd;;tthheeppaaiinnppooiinnttssbbeelloowwmmaappttooeeaacchhssttaaggeewwhheerreetthheessiinnggllee--ccoonntteexxttwwoorrkkfflloowwbbrreeaakkssddoowwnn..
Context Exhaustion
Complex features fill the model’s context window with research and history, causing forgetfulness and degraded performance before the task is complete.
Loss of Focus
Without strict role separation, agents drift into rabbit holes—fixing unrelated issues instead of the assigned task.
Drift
Long conversations cause the model to lose sight of the acceptance criteria, yielding code that runs but doesn’t meet requirements.
your-project/├── .claude/│ ├── CLAUDE.md│ └── agents/│ ├── cod.md│ ├── rev.md│ ├── res.md│ └── log.md└── agents/ └── PROJECT.md# PROJECT — Your Feature## GoalAdd user authentication with session management## Acceptance- [ ] Users can sign up and log in- [ ] Sessions persist across page refresh- [ ] Build passes- [ ] Tests pass# PROJECT — <Feature> ## Goal<one sentence outcome> ## Acceptance- [ ] <criterion>- [ ] Build passes- [ ] Tests pass- [ ] Non-goal: <out of scope> ## Context- Files: <key paths>- context7 ids: <doc or api handles> ## Labelsfeature • fix • docs • refactor • spike ## Artifacts- Branch: feature/<name>- Target env: <env>- CI: <jobs> ## Run status- Stage: intake • planning • build • review • ship- Owner: <name> Due: <date> ## Output decision- Ship | Hold- Notes# Model and Orchestrator Policy Claude serves as the orchestrator. Preserve context, plan small, delegate, and keep tokens low. ## PurposeUse a single packet (Goal, Acceptance, Sources, Plan, Tests) to steer work.Retrieve fresh truth via context7 MCP, then plan and delegate to focused agents.Apply guardrails so changes stay minimal and testable. ## InputsGoal • Acceptance • Context files • context7 ids ## OutputsPlan • Routed tasks • Retrieval notes • Handoff packet ## Guardrails- Read-only until plan is approved- Require acceptance and test intent before code- Cite all retrieved sources- Stop on secrets or missing acceptance and ask one line ## Retrieval with context7 MCPQuery template:- topic: <feature or api>- scope: repo • product docs • api • changelog- freshness: 90d defaultStore citations in `res.md`. ## Plan shape- Steps 1–3- Risks and unknowns- Files to touch- Tests to create- Definition of done ## Models- Code: Claude Code family- Reasoning: Claude general- Retrieval: context7 MCP---name: coddescription: Coder — smallest change that meets acceptance.tools: Read, Write, Edit, Grep, Glob, Bash--- # ContractInputs: plan • files • sources • acceptanceOutputs: code • tests • usage note • diff summary # Steps1) Restate a 2-step micro-plan2) Implement minimal slice3) Write tests that prove acceptance4) Return usage note and changed files list # Test policyUnit where it fits. Contract or integration for edges. Cover happy path and one failure. # Committype(scope): one line summaryRefs: PROJECT.md and res.md ids---name: revdescription: Reviewer — acceptance, scope, tests, citations.tools: Read, Grep, Glob, Bash--- # InputsPlan • code • tests • notes • res.md # Checklist- Acceptance met- Tests pass and cover intent- Names and structure are clear- No unrelated changes- Sources cited and current # VerdictResult: PASS | BLOCKReasons:- <point one>- <point two>Next step:- <single action>---name: resdescription: Researcher — Context7 queries, summarized with citations.--- # Query- Topic: <feature or api>- Scope: repo • product docs • api • changelog- Freshness: <window> # Findings1) <fact • version or commit • url or id>2) <fact • version or commit • url or id> # Notes- Key facts that drive decisions # Gaps- Missing or outdated sources---name: logdescription: Logger — one screen summaries.tools: Read--- # Run Log- Timestamp: <iso>- Stage: intake • planning • build • review • ship- Owner: <name>- Action: <what happened>- Links: plan • pull request • res.md- Next: <single step>Hungry Panda

Hope Windows
