About the video
What is the best Claude Code workflow for shipping features with fewer surprises? In this video from Anthropic’s official Claude channel, “The Explore → Plan → Code → Commit workflow in Claude Code” (3 minutes 11 seconds), the presenter walks through Plan Mode, turning a plan into success criteria, coding together with Claude, and reviewing before you commit.
Watch the original video on YouTube.
If you take one thing away from Claude Code, make it this workflow: explore, plan, code, and commit.
Many people skip the first two stages and immediately ask Claude to write code. That often leads to more course correction later. A better approach gives Claude enough context to investigate the project, agree on an approach, and then implement the changes with fewer surprises.
Start with Plan Mode
Plan mode is the quickest way to handle exploration and planning together. In this mode, Claude cannot edit files. Instead, it reads the codebase, researches what it needs, and suggests an action plan.
To enter plan mode, press Shift + Tab until you see it selected below the text input. Then give Claude a clear request, such as:
I need to add WebP conversion to our image upload pipeline. Figure out where in the pipeline it should happen, whether we need new dependencies, and how to approach it.
Claude can read the relevant files, run web searches, and return a proposed plan. Review it carefully. Does it meet your requirements? If something is missing, ask Claude to add or revise that part.
Plan mode is the best place to course-correct because no code has been written yet.
You can also explore without entering plan mode by simply asking Claude to explore the codebase. This works well when you want to understand how something is structured before deciding what to do.
Turn the Plan into Clear Success Criteria
Once the plan looks right, choose Approve. Claude can then work through the checklist it created. You can also choose whether to approve file edits automatically or review each one before accepting it.
Claude will try to troubleshoot the codebase before it considers the work finished, but it may still need guidance. Working through plan mode helps because Claude retains the reasoning behind the proposed solution, so you can give feedback without starting over.
The more clearly you define what “correct” means, the more confident Claude can be. Add the tools and checks that will help it reach that result.
For example, when building a web interface, the Claude and Chrome extension lets Claude Code control a browser tab and test the UI before declaring the task complete. A test suite is another useful tool: Claude can run the tests repeatedly and even write them for you.
Before handing tests over to Claude, make sure they are a reliable source of truth for you and your team. Otherwise, a false positive could make an incomplete feature look finished.
One useful tip is to ask Claude to save a solution to its CLAUDE.md file if it repeatedly runs into the same issue. That way, the guidance is available in future sessions.
Code Through Collaboration
The coding stage is the back-and-forth process between you and Claude as you work toward the final outcome described in the plan. Test the changes yourself as Claude works, and explain any problems clearly.
Review, Test, and Commit
When you are happy with the results, it is time to commit and push the code. Before committing, run a subagent code reviewer to look over your changes. You can also ask Claude to write the commit message in your preferred style.
The full cycle is simple:
- Explore to give Claude the context it needs.
- Plan to agree on the approach and what success means.
- Code by collaborating, testing, and correcting the implementation.
- Commit after reviewing the changes and preparing a clear commit message.
Then repeat the process for the next feature. This workflow keeps Claude aligned with your project and makes feedback easier, especially before implementation begins.
Related reading
- Spec-Driven Development vs Waterfall: What AI Changes
- How to Reduce Claude Code Token Usage with Token Economizer
- More guides in Tools & Workflows and Save Effort
Source: “The Explore → Plan → Code → Commit workflow in Claude Code” by Claude (Anthropic) on YouTube.