Plan before coding and use a test to reproduce a bug
At a glance
A developer described using Claude Code for a plan-first implementation and a test-driven debugging loop. This workflow is listed under Coding, Testing.
- Agents / tools
- Claude Code
SourceBuilding a tool for these workflows? See weekly rates.
What they did
1) In Claude Code, describe the feature you want, identify the relevant code locations, and mention patterns or technology you are considering. Ask the agent to evaluate feasibility and suggest alternatives, explicitly telling it to plan first and not write code yet. 2) Discuss the proposed approach for another round or two, then ask it to implement the agreed change. 3) For a bug, ask it to write a test that reproduces the problem, fix the code, and run the test repeatedly while correcting failures. Inspect both the change and the test to ensure the agent has not altered the test to make it pass without fixing the issue.
Worth knowing
The workflow is from a dated Lobsters comment, so the source link points to that comment. The author also mentioned Playwright as an option for web work.