<< Home | Work
Fantastic results in large existing codebase
| Area | Work |
| AI used | Claude Opus |
| Source | Reddit comment |
| Posted | 2026-05-10 |
The move
Break large coding tasks into a two-step process of planning followed by execution.Steps
- Paste your codebase context into Claude.
- Ask Claude to create a step-by-step plan for your specific feature or bug fix.
- Review the plan for accuracy and provide additional context if needed.
- Instruct Claude to execute the code changes based on the approved plan.
Prompt for your AI
I have a large codebase and need to [add a feature/fix a bug]. First, analyze the provided code and create a detailed, step-by-step plan to implement [specific change]. Do not write the code yet, just the plan.
What happened
The user manages a large codebase requiring frequent feature additions and bug fixes. They use Claude to first generate a detailed plan, review it, and then prompt the AI to execute the code changes. This structured workflow consistently produces high-quality results.Watch out
The AI may hallucinate logic in complex codebases, so manual review of the plan is mandatory. Large codebases may exceed context windows, requiring you to provide only relevant file snippets.Give it to your agent
Read https://howtheyuse.ai/p/fantastic-results-in-large-existing-codebase.md and help me do this.