/plan

Thorough planning with research. Uses multiple researcher agents for comprehensive analysis.

Syntax

/plan:hard [task]

How It Works

  1. Pre-Creation Check: Checks for active plan in .claude/active-plan
  2. Research Phase: Multiple researcher agents (max 2) research in parallel
  3. Codebase Analysis: Reads docs; uses /scout if codebase-summary.md unavailable or >3 days old
  4. Gather & Plan: Main agent gathers research/scout reports, passes to planner subagent
  5. User Review: Asks for approval

Output Structure

plans/
โ””โ”€โ”€ YYYYMMDD-HHmm-plan-name/
    โ”œโ”€โ”€ research/
    โ”‚   โ””โ”€โ”€ researcher-XX-report.md  # Research findings
    โ”œโ”€โ”€ reports/
    โ”‚   โ””โ”€โ”€ XX-report.md
    โ”œโ”€โ”€ scout/
    โ”‚   โ””โ”€โ”€ scout-XX-report.md
    โ”œโ”€โ”€ plan.md                      # Overview (<80 lines)
    โ””โ”€โ”€ phase-XX-name.md             # Phase details

Research Limits

  • Max 2 researcher agents in parallel
  • Max 5 tool calls per researcher
  • Reports โ‰ค150 lines each

When to Use

  • Unfamiliar technology/library
  • Complex architectural decisions
  • Need best practices research
  • External integrations

Comparison

CommandResearchSpeed
/planFullMedium
/plan:fastNoneFast
/plan:hardDeepSlow

Important: Does NOT start implementation. Use /code after approval.


Key Takeaway: Use /plan:hard when you need comprehensive research and detailed planning for complex tasks.