<< Home | Work
Reduced token consumption by shifting from loops to planning
| Area | Work |
| AI used | Claude, Codex |
| Source | r/Anthropic |
| Posted | 2026-07-21 |
The move
Use a high-level model to create a detailed implementation plan across multiple files before assigning coding tasks to specialized agents.Steps
- Define the project requirements and scope in detail.
- Ask a capable model to create a comprehensive implementation plan across multiple files.
- Review the plan to ensure technical accuracy and logic.
- Assign specific coding tasks from the plan to a secondary agent.
- Review the agent's output against the original plan before implementation.
Prompt for your AI
Act as a software architect. Create a detailed implementation plan for [Project Name/Feature]. Break the requirements down into specific tasks and explain how they should be implemented across the following files: [List files]. Ensure the plan is modular and addresses potential edge cases.
What happened
The user previously wasted 1.6 billion tokens monthly by repeatedly prompting agents to fix errors without human oversight. By switching to an 'architect' workflow, they now use Claude to generate detailed project plans first. This structured approach reduces misunderstandings and token waste, resulting in higher-quality code that requires fewer revisions.Watch out
Over-planning can lead to analysis paralysis. Relying solely on an architect model without verifying the generated code can lead to subtle bugs.Give it to your agent
Read https://howtheyuse.ai/p/reduced-token-consumption-by-shifting-from-loops-to-planning.md and help me do this.