How I use Claude Code: Separation of planning and execution
TL;DR Highlight
Having Claude write code only after an annotated plan is approved gave steadier results.
Who Should Read
A backend or full-stack developer whose Claude Code output looks plausible but clashes with the existing system.
Core Mechanics
- No code before an approved plan
- The author has used Claude Code as the main dev tool for about 9 months.
- The core rule is that Claude may not write code until a written plan is reviewed and approved.
- He says this prevents wasted effort and gives better results with fewer tokens.
- Make Claude write research.md first
- He has Claude deeply read the relevant codebase area and write findings into research.md.
- A file, not a chat summary, lets him read it and fix misunderstandings.
- He says without words like "deeply" and "in great details", Claude skims.
- Annotate plan.md inline
- Claude writes plan.md with approach, code snippets, file paths and trade-offs.
- He adds inline notes in his editor and sends it back with "don't implement yet".
- The cycle repeats 1 to 6 times, and the guard phrase is essential.
- Make implementation boring
- He asks for a todo list in the plan and Claude marks items done.
- The fixed prompt says implement everything, don't stop, no any/unknown, run typecheck continuously.
- Creative work finishes in annotation, so execution should be mechanical.
- Keep feedback terse during implementation
- Corrections are one-liners like "wider" or "still cropped".
- He points to existing screens as references, such as "like the users table".
- If it goes wrong, he reverts with git and re-scopes narrowly.
- Use one long session
- Research, planning and implementation run in a single session.
- He says he sees no degradation after 50% of the context window.
- The plan document survives auto-compaction intact.
Community Reactions
- Doubt about why "deeply" works
- One commenter said it doesn't fit their mental model of LLMs and didn't see why it would change output.
- Plans surface hidden assumptions
- A commenter argued LLMs fail at invisible architectural assumptions more than syntax.
- The written plan exposes those assumptions before they harden into code.
- Counterpoint: big-bang implementation is risky
- Commenters worried about thousands of monolithically generated lines and preferred step-by-step work.
- One noted that an imperfect plan means starting over.
- Another said they run plans of at most 1,500 lines in batches, with about 100,000 lines of plans behind a 30,000 LOC app.
- Enforce constraints with tests and scripts
- One commenter suggested enforcing rules like unchanged function signatures with tests and pre-commit scripts.
- Their reasoning was that scripts are deterministic and use no tokens.
- Similar tools already exist
- Commenters pointed to Kiro, Antigravity, Spec Kit, OpenSpec and superpowers.
- One said moving to $20 Codex/Gemini plans with spec, plan and status docs ended token-limit stalls.
How to Apply
- Create research.md today
- Pick one task and tell Claude to read the folder deeply and write findings to research.md.
- Read it yourself and fix wrong understanding before moving on.
- Annotate plan.md and send it back
- Add short inline notes like "not optional" in your editor.
- Send "address all notes, update the document, don't implement yet" and repeat 1 to 3 times.
- Save a fixed implementation prompt
- After the plan is final, add a todo list and paste the fixed implementation prompt.
- Adapt the wording to your team's rules and store it for reuse.
- Commit plan files to git
- Version research.md and plan.md alongside the code.
- They become a record of why design decisions were made.
Try It
# Paste into a Claude Code session step by step (the article's three prompts)
# 1) Research
read this folder in depth, understand how it works deeply, what it does and all its specificities. when that's done, write a detailed report of your learnings and findings in research.md
# 2) Plan (after reviewing research.md)
I want to build a new feature {{feature name and description}} that extends the system to perform {{business outcome}}. write a detailed plan.md document outlining how to implement this. include code snippets. read source files before suggesting changes, base the plan on the actual codebase
# 2-1) After adding notes, repeat
I added a few notes to the document, address all the notes and update the document accordingly. don't implement yet
# 2-2) Todo list
add a detailed todo list to the plan, with all the phases and individual tasks necessary to complete the plan - don't implement yet
# 3) Implement
implement it all. when you're done with a task or phase, mark it as completed in the plan document. do not stop until all tasks and phases are completed. do not add unnecessary comments or jsdocs, do not use any or unknown types. continuously run typecheck to make sure you're not introducing new issues.Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques