Skip to content
ClaudeClaude

The Explore → Plan → Code → Commit workflow in Claude Code

The single most important workflow for using Claude Code effectively. Learn how to let Claude research before coding, define success criteria, and use subagent reviewers before pushing. Take the full course: claude.com/courses

May 17, 20263mWatch on YouTube ↗

CHAPTERS

  1. 0:03 – 0:18

    The core workflow: Explore → Plan → Code → Commit

    The video introduces the central Claude Code workflow and argues it’s faster than immediately asking for code. The key idea is to reduce rework by investing early in understanding and planning before edits happen.

    • Workflow overview: Explore, Plan, Code, Commit
    • Why skipping exploration/planning leads to more course-correcting later
    • Plan Mode is highlighted as the fastest way to do steps 1–2
  2. 0:18 – 0:33

    Plan Mode basics: research without editing files

    Plan Mode is presented as a safe, focused environment where Claude can only read and research, not modify files. This helps produce a clear implementation approach before any code changes occur.

    • Plan Mode prevents file edits and focuses on reading/research
    • How to enter Plan Mode (Shift+Tab until Plan Mode appears)
    • Claude gathers context by reading relevant files and performing web searches
  3. 0:33 – 0:48

    Using a concrete prompt to drive a good plan (WebP example)

    A sample task—adding WebP conversion to an upload pipeline—demonstrates how to ask for investigation and an approach, not immediate code. The emphasis is on identifying where changes should occur and what dependencies might be needed.

    • Example request: add WebP conversion in an image upload pipeline
    • Prompt focuses on placement in pipeline, dependencies, and approach
    • Planning output is intended to be reviewed before implementation
  4. 0:48 – 1:04

    Reviewing and revising the plan: the best time to course-correct

    You’re encouraged to evaluate whether the proposed plan matches your criteria and to request revisions if needed. The video stresses that this moment—before code is written—is the cheapest time to correct direction.

    • Review plan against your requirements
    • Ask Claude to revise or expand parts of the plan
    • Course-correcting early avoids later churn
  5. 1:04 – 1:19

    Exploration outside Plan Mode and approving the plan to proceed

    The video notes you can still ask Claude to explore your codebase even without Plan Mode. Once satisfied, you can approve the plan so Claude can execute the listed tasks, with configurable control over accepting file edits.

    • Explore can be done via direct prompts even outside Plan Mode
    • Approve step turns the plan into an execution checklist
    • Choose whether edits are auto-accepted or confirmed each time
  6. 1:19 – 1:34

    Troubleshooting and leveraging plan context during execution

    Claude will attempt to troubleshoot issues as it implements the plan, but you may still need to course-correct. Plan Mode helps because you retain the reasoning/context behind the decisions, making follow-up guidance more effective.

    • Claude tries to troubleshoot before declaring the plan complete
    • Expect occasional course-correction during implementation
    • Having the plan’s rationale helps guide next decisions
  7. 1:34 – 2:04

    Define “correct” explicitly and add tools to reduce back-and-forth

    To help Claude succeed, you should be explicit about what counts as “done” or “correct.” Adding the right tools (like UI testing via a browser) reduces ambiguity and iteration cycles.

    • Claude needs a clear definition of correctness to be confident
    • Make success criteria explicit in the plan
    • Add tooling (e.g., Claude + Chrome extension for UI validation) to cut down on back-and-forth
  8. 2:04 – 2:14

    Use tests as a source of truth (and let Claude help write them)

    A test suite is recommended as an objective validator Claude can run continuously while working. The guidance includes ensuring tests reflect team truth to avoid misleading pass results, and that Claude can write tests too.

    • Maintain a test suite Claude can run repeatedly
    • Claude can author tests to support the implementation
    • Ensure tests are trustworthy to prevent false positives for you and the team
  9. 2:14 – 2:24

    Persist recurring solutions in Claude MD

    If Claude repeatedly hits the same problems, you can ask it to document the solution in a Claude MD file. This creates reusable guidance and reduces repeated troubleshooting across sessions.

    • Identify repeated failure modes or recurring issues
    • Ask Claude to save the solution to its Claude MD file
    • Use persisted notes to speed up future iterations
  10. 2:24 – 2:35

    Commit phase: review with a subagent and generate commit messages

    Before pushing changes, the video recommends running a subagent code reviewer to inspect the output. Then Claude can generate a commit message in your preferred style, supporting a clean handoff to version control.

    • Run a subagent code reviewer before committing
    • Have Claude generate a commit message matching your style
    • Treat commit as a deliberate review-and-publish step
  11. 2:35 – 3:11

    Rinse and repeat: how the workflow keeps you moving fast

    The video closes by reinforcing how each phase supports the next: exploration provides context, planning defines success, coding is iterative refinement, and commit enables moving on. The workflow is presented as the key to being effective with Claude Code.

    • Explore builds the context Claude needs
    • Plan defines actions and success criteria
    • Code is iterative collaboration toward plan outcomes
    • Commit finalizes review and enables starting the next feature

Get more out of YouTube videos.

High quality summaries for YouTube videos. Accurate transcripts to search & find moments. Powered by ChatGPT & Claude AI.