Skip to main content

Frequently Asked Questions

Common questions about CCW, workflows, commands, and troubleshooting.

General Questions

What is CCW?

CCW (Claude Code Workflows) is a professional workflow automation platform that combines AI-powered intelligence with structured development workflows. It provides 40+ commands and 15 integrated workflows to accelerate software development while maintaining quality standards.

Key Features:

  • AI-powered code analysis, generation, and review
  • 15 workflow levels from rapid execution to intelligent orchestration
  • Session management with full state persistence
  • Multi-agent coordination with parallel execution
  • Built-in testing, verification, and code review

What are the system requirements?

Minimum Requirements:

  • Node.js 16.x or higher
  • Git 2.x or higher
  • 4GB RAM available
  • 500MB disk space

Recommended:

  • Node.js 18.x LTS
  • 8GB RAM available
  • 2GB disk space for artifacts and sessions

How do I install CCW?

# Install globally via npm
npm install -g @ccw/cli

# Or use npx (no installation required)
npx @ccw/cli init

# Initialize in your project
ccw init

Is CCW free to use?

Yes, CCW is open-source and free to use. However, CCW integrates with third-party AI services (Gemini, Codex, Claude, Qwen) that may have their own pricing. You'll need API keys for any AI services you want to use.

What programming languages are supported?

CCW supports all programming languages. The AI models can analyze and generate code in any language, including:

  • Web: JavaScript, TypeScript, Python, PHP, Ruby
  • Mobile: Swift, Kotlin, React Native, Flutter
  • Systems: Rust, Go, C, C++
  • Data: Python, R, SQL
  • Enterprise: Java, C#, .NET

Workflow Selection

How do I choose the right workflow?

Details
Decision Framework

Use this quick decision tree:

  1. Post-development maintenance? → Use Issue Workflow
  2. Uncertain which commands to use? → Use ccw-coordinator (Level 5)
  3. Requirements unclear? → Use brainstorm:auto-parallel (Level 4)
  4. Need persistent session?
    • Standard development → planexecute (Level 3)
    • Test-driven → tdd-planexecute (Level 3)
    • Test fixes → test-fix-gentest-cycle-execute (Level 3)
  5. Need multi-perspective analysis? → Use multi-cli-plan (Level 2)
  6. Bug fix? → Use lite-fix (Level 2)
  7. Need planning? → Use lite-planlite-execute (Level 2)
  8. Quick task? → Use lite-lite-lite (Level 1)

What's the difference between Main Workflow and Issue Workflow?

Details
Comparison

Main Workflow is for primary development:

  • Feature development (Levels 1-5)
  • Active development phase
  • Dependency-based parallelism
  • Works on current branch

Issue Workflow is for post-development maintenance:

  • Bug fixes and enhancements after merge
  • After main workflow completes
  • Optional worktree isolation
  • Keeps main branch stable
AspectMain WorkflowIssue Workflow
PurposeFeature developmentPost-development fixes
TimingDevelopment phaseAfter main workflow completes
ScopeComplete feature implementationTargeted fixes/enhancements
ParallelismDependency analysisWorktree isolation (optional)
Branch ModelWork on current branchCan use isolated worktree

What are Minimum Execution Units?

Details
Explanation

Minimum Execution Units are sets of commands that must execute together as atomic groups to achieve meaningful workflow milestones. Splitting these commands breaks logical flow and creates incomplete states.

Common Minimum Execution Units:

UnitCommandsPurpose
Quick Implementationlite-planlite-executeLightweight plan and execution
Multi-CLI Planningmulti-cli-planlite-executeMulti-perspective analysis and execution
Bug Fixlite-fixlite-executeBug diagnosis and fix execution
Verified Planningplanplan-verifyexecutePlanning with verification and execution
TDD Planningtdd-planexecuteTest-driven development planning and execution
Test Validationtest-fix-gentest-cycle-executeGenerate test tasks and execute test-fix cycle

Example: The unit lite-plan → lite-execute must complete together. Stopping after lite-plan leaves you with a plan but no implementation.

When should I use each workflow level?

Details
Level Selection Guide

Level 1 (lite-lite-lite):

  • Quick fixes (typos, minor adjustments)
  • Simple features (single function, small utility)
  • Config changes (environment variables, timeouts)
  • Documentation updates

Level 2 (lite-plan, lite-fix, multi-cli-plan):

  • Single-module features
  • Bug diagnosis and fixes
  • Technology selection decisions
  • Solution comparison

Level 3 (plan, tdd-plan, test-fix-gen):

  • Multi-module changes
  • Refactoring
  • Test-driven development
  • Test failure fixes

Level 4 (brainstorm:auto-parallel):

  • New feature design
  • System architecture refactoring
  • Exploratory requirements
  • Multi-dimensional trade-offs

Level 5 (ccw-coordinator):

  • Complex multi-step workflows
  • Uncertain which commands to use
  • End-to-end automation
  • Team collaboration

Issue Workflow:

  • Post-development issue fixes
  • Maintaining main branch stability

Command Usage

How do I use workflow commands?

Details
Command Patterns

Basic Pattern:

ccw <command> <arguments>

Examples:

# Level 1 - Direct execution
ccw lite-lite-lite "Fix login button"

# Level 2 - Lightweight planning
ccw lite-plan "Add user profile page"
ccw lite-execute --in-memory

# Level 3 - Full workflow
ccw workflow:plan "Implement OAuth2"
ccw workflow:execute --session WFS-oauth-auth

# Level 4 - Brainstorming
ccw brainstorm:auto-parallel "Design notification system"

# Level 5 - Intelligent coordination
ccw ccw-coordinator "Refactor API layer"

What is the difference between lite-execute and execute?

Details
Comparison

lite-execute (Level 2):

ccw lite-execute --in-memory
  • For Level 2 workflows
  • In-memory planning (no session files)
  • Parallel execution for independent tasks
  • Optional code review

execute (Level 3):

ccw workflow:execute --session WFS-{session-id}
  • For Level 3 workflows
  • Session-based execution
  • Dependency analysis
  • Full state tracking and resumability
  • Task completion summaries

How do I use hotfix mode?

Details
Hotfix Usage

Hotfix mode is for production emergencies:

ccw lite-fix --hotfix "Production database connection failing"

What it does:

  • Skips most diagnosis phases
  • Minimal planning (direct execution)
  • Auto-generates follow-up tasks for complete fix + post-mortem

When to use:

  • Production incidents
  • Critical bugs requiring immediate fix
  • Outages and service disruptions

What happens after: CCW automatically generates follow-up tasks for:

  • Complete root cause analysis
  • Comprehensive fix
  • Post-mortem documentation

How do I resume a paused session?

Details
Session Resume
# Resume most recent session
ccw workflow:session:resume

# Resume specific session
ccw workflow:session:resume WFS-user-auth-v2

# List all sessions
ccw workflow:session:list

Session states:

  • active: Currently running
  • paused: Stopped, can be resumed
  • completed: Finished and archived

AI Models

Which AI models does CCW support?

Details
Supported Models

CCW supports multiple AI models via CLI endpoints:

ModelCapabilitiesBest For
GeminiAnalysis + WriteCode review, debugging, refactoring
CodexAnalysis + Write + ReviewGit-aware code review, implementation
ClaudeAnalysis + WriteComplex reasoning, documentation
QwenAnalysis + WriteCode generation, pattern matching

Configure models in ~/.claude/cli-tools.json.

How do I configure API keys?

Details
API Key Configuration

Set environment variables:

# Gemini
export GEMINI_API_KEY="your-key-here"

# OpenAI (Codex)
export OPENAI_API_KEY="your-key-here"

# Anthropic (Claude)
export ANTHROPIC_API_KEY="your-key-here"

# Qwen
export DASHSCOPE_API_KEY="your-key-here"

Or configure in .env file:

GEMINI_API_KEY=your-key-here
OPENAI_API_KEY=your-key-here
ANTHROPIC_API_KEY=your-key-here
DASHSCOPE_API_KEY=your-key-here

What is multi-CLI collaboration?

Details
Multi-CLI Explanation

Multi-CLI collaboration uses multiple AI models to analyze the same problem from different perspectives:

ccw multi-cli-plan "Compare Redis vs RabbitMQ for message queuing"

How it works:

  1. Multiple AI models analyze independently
  2. Each provides unique insights and recommendations
  3. Results are synthesized into a comprehensive analysis
  4. You get multiple perspectives before making decisions

Best for:

  • Technology selection
  • Architecture decisions
  • Solution comparison
  • Trade-off analysis

Testing

How do I add tests to existing code?

Details
Test Generation

Session Mode (from existing session):

ccw test-fix-gen WFS-user-auth-v2

Prompt Mode (direct description):

ccw test-fix-gen "Add unit tests for the auth API"

CCW will:

  1. Analyze the code structure
  2. Generate appropriate test cases
  3. Create test files following project patterns
  4. Implement tests with proper assertions

How do I fix failing tests?

Details
Test Fix Workflow
# Generate test fix tasks
ccw test-fix-gen "Tests failing for user registration"

# Execute test-fix cycle
ccw test-cycle-execute

Workflow:

  1. Analyze test failures
  2. Identify root causes
  3. Fix issues iteratively
  4. Verify >= 95% pass rate
  5. Stop when tests pass or max iterations reached

What is TDD (Test-Driven Development)?

Details
TDD Explanation

TDD follows the Red-Green-Refactor cycle:

  1. Red: Write a failing test
  2. Green: Write minimal code to pass the test
  3. Refactor: Improve code while keeping tests green

The Iron Law:

NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST

Why write tests first?

AspectTest-FirstTest-After
ProofTests fail before implementationTests pass immediately (proves nothing)
DiscoveryEdge cases found before codingEdge cases found after coding
VerificationVerifies requirementsVerifies implementation

Troubleshooting

My workflow failed. What should I do?

Details
Troubleshooting Steps
  1. Check the error message - Identify the root cause
  2. Review session state - Check .workflow/.ccw-coordinator/{session}/state.json
  3. Resume the session - Use ccw workflow:session:resume to continue
  4. Adjust and retry - Modify approach based on error

Common fixes:

  • API key errors: Verify environment variables are set
  • Module not found: Run npm install or pip install
  • Git errors: Ensure clean git state (git status)
  • Timeout errors: Increase timeout in task JSON

How do I skip a failing task?

Details
Skip Task

Edit the task JSON to set status to "completed":

jq '.status = "completed"' .workflow/active/WFS-{session}/.task/IMPL-001.json

Use with caution: Skipping tasks may leave the workflow in an incomplete state.

How do I clean up old sessions?

Details
Cleanup Commands
# List sessions
ccw workflow:session:list

# Remove specific session
rm -rf .workflow/active/WFS-{session-id}

# Clean all completed sessions
ccw workflow:clean

Automatic cleanup:

  • Completed sessions are archived to .workflow/completed/
  • Old sessions (> 30 days) can be safely removed

Why is my workflow running slowly?

Details
Performance Tips

Possible causes:

  1. Large codebase: CCW analyzes the entire project

    • Fix: Use --focus-paths to limit analysis scope
  2. Many dependencies: Slow AI response times

    • Fix: Use faster models (Gemini Flash) for initial analysis
  3. Sequential tasks: Waiting on dependent tasks

    • Fix: Review task dependencies in plan-verify
  4. Network issues: Slow API calls to AI services

    • Fix: Check network connectivity and API status

Optimization tips:

# Limit analysis scope
ccw plan "Add login" --focus-paths src/auth

# Use faster model for initial analysis
ccw cli -p "Quick analysis" --model gemini-2.0-flash --mode analysis

# Run in parallel when possible
ccw workflow:execute --parallel 4

How do I debug workflow issues?

Details
Debugging Workflow

Enable debug logging:

DEBUG=ccw:* ccw workflow:plan "My feature"

Check session logs:

# View session state
cat .workflow/active/WFS-{session}/workflow-session.json

# View task progress
cat .workflow/active/WFS-{session}/TODO_LIST.md

Use debug workflow:

ccw workflow:debug-with-file "Debug memory leak in connection handler"

This provides hypothesis-driven debugging with documented exploration.

Integration

Can I use CCW with my existing CI/CD?

Details
CI/CD Integration

Yes, CCW can be integrated into CI/CD pipelines:

GitHub Actions Example:

- name: Run CCW Workflow
run: |
ccw workflow:plan "Implement feature"
ccw workflow:execute --session WFS-feature
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}

Best practices:

  • Use --mode analysis for code review in CI
  • Store API keys in secret management
  • Run workflows in isolated environments
  • Archive sessions for audit trails

Can CCW work with monorepos?

Details
Monorepo Support

Yes, CCW supports monorepos:

Workspace-aware execution:

# Execute in specific package
ccw plan "Add auth to frontend" --cd packages/frontend

# Execute across packages
ccw plan "Update API contracts" --include-dir packages/api,packages/shared

Benefits:

  • Dependency-aware task distribution
  • Parallel execution across packages
  • Shared session state
  • Coordinated changes across workspaces

How do I migrate from another tool?

Details
Migration Guide

From basic Git workflows:

# Before: Manual planning
git checkout -b feature
# ... manual planning ...

# After: CCW planning
ccw plan "Add feature"
ccw execute --session WFS-feature

From other AI tools:

  • CCW provides structured workflows (vs. ad-hoc prompts)
  • Session management (vs. chat history)
  • Multi-agent coordination (vs. single AI)
  • Persistent artifacts (vs. transient responses)

Migration steps:

  1. Install CCW: npm install -g @ccw/cli
  2. Initialize: ccw init
  3. Start with Level 2 workflows for familiar patterns
  4. Gradually adopt higher levels as needed

Best Practices

What are the workflow best practices?

Details
Best Practices

1. Start Simple

  • Use the lowest level that meets your needs
  • Don't over-engineer simple tasks
  • Scale up complexity as needed

2. Plan Before Executing

  • Use verification steps when available
  • Review generated plans before execution
  • Adjust tasks based on project context

3. Test Continuously

  • Integrate testing into your workflow
  • Use TDD for critical features
  • Run tests after each iteration

4. Review Code

  • Use built-in review workflows
  • Leverage multi-CLI collaboration
  • Merge review feedback iteratively

5. Document Decisions

  • Use brainstorm workflows for complex decisions
  • Keep session artifacts for reference
  • Archive completed sessions

6. Maintain Session Hygiene

  • Complete sessions when done
  • Clean up old sessions regularly
  • Archive important sessions

How do I get the most out of AI assistance?

Details
AI Best Practices

1. Be Specific in Prompts

Bad: "Fix the bug"
Good: "Fix the 500 error when users update their profile picture"

2. Provide Context

ccw plan "Add OAuth2" \
--context "Using Express.js, MongoDB, Passport.js" \
--reference "Similar to existing Google OAuth implementation"

3. Use Multi-CLI Collaboration

# Get multiple perspectives
ccw multi-cli-plan "Architecture decision"

4. Leverage Memory

# Build on previous work
ccw plan "Continue auth refactor" --memory WFS-auth-v1

5. Choose the Right Model

  • Gemini Flash: Fast, good for initial analysis
  • Gemini Pro: Deep reasoning, complex tasks
  • Codex: Code review, git-aware analysis
  • Claude: Documentation, complex reasoning

Still have questions? Open an issue or check the discussion forums.