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:
- Post-development maintenance? → Use Issue Workflow
- Uncertain which commands to use? → Use
ccw-coordinator(Level 5) - Requirements unclear? → Use
brainstorm:auto-parallel(Level 4) - Need persistent session?
- Standard development →
plan→execute(Level 3) - Test-driven →
tdd-plan→execute(Level 3) - Test fixes →
test-fix-gen→test-cycle-execute(Level 3)
- Standard development →
- Need multi-perspective analysis? → Use
multi-cli-plan(Level 2) - Bug fix? → Use
lite-fix(Level 2) - Need planning? → Use
lite-plan→lite-execute(Level 2) - 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
| Aspect | Main Workflow | Issue Workflow |
|---|---|---|
| Purpose | Feature development | Post-development fixes |
| Timing | Development phase | After main workflow completes |
| Scope | Complete feature implementation | Targeted fixes/enhancements |
| Parallelism | Dependency analysis | Worktree isolation (optional) |
| Branch Model | Work on current branch | Can 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:
| Unit | Commands | Purpose |
|---|---|---|
| Quick Implementation | lite-plan → lite-execute | Lightweight plan and execution |
| Multi-CLI Planning | multi-cli-plan → lite-execute | Multi-perspective analysis and execution |
| Bug Fix | lite-fix → lite-execute | Bug diagnosis and fix execution |
| Verified Planning | plan → plan-verify → execute | Planning with verification and execution |
| TDD Planning | tdd-plan → execute | Test-driven development planning and execution |
| Test Validation | test-fix-gen → test-cycle-execute | Generate 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:
| Model | Capabilities | Best For |
|---|---|---|
| Gemini | Analysis + Write | Code review, debugging, refactoring |
| Codex | Analysis + Write + Review | Git-aware code review, implementation |
| Claude | Analysis + Write | Complex reasoning, documentation |
| Qwen | Analysis + Write | Code 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:
- Multiple AI models analyze independently
- Each provides unique insights and recommendations
- Results are synthesized into a comprehensive analysis
- 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:
- Analyze the code structure
- Generate appropriate test cases
- Create test files following project patterns
- 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:
- Analyze test failures
- Identify root causes
- Fix issues iteratively
- Verify >= 95% pass rate
- Stop when tests pass or max iterations reached
What is TDD (Test-Driven Development)?
Details
TDD Explanation
TDD follows the Red-Green-Refactor cycle:
- Red: Write a failing test
- Green: Write minimal code to pass the test
- Refactor: Improve code while keeping tests green
The Iron Law:
NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST
Why write tests first?
| Aspect | Test-First | Test-After |
|---|---|---|
| Proof | Tests fail before implementation | Tests pass immediately (proves nothing) |
| Discovery | Edge cases found before coding | Edge cases found after coding |
| Verification | Verifies requirements | Verifies implementation |
Troubleshooting
My workflow failed. What should I do?
Details
Troubleshooting Steps
- Check the error message - Identify the root cause
- Review session state - Check
.workflow/.ccw-coordinator/{session}/state.json - Resume the session - Use
ccw workflow:session:resumeto continue - Adjust and retry - Modify approach based on error
Common fixes:
- API key errors: Verify environment variables are set
- Module not found: Run
npm installorpip 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:
-
Large codebase: CCW analyzes the entire project
- Fix: Use
--focus-pathsto limit analysis scope
- Fix: Use
-
Many dependencies: Slow AI response times
- Fix: Use faster models (Gemini Flash) for initial analysis
-
Sequential tasks: Waiting on dependent tasks
- Fix: Review task dependencies in
plan-verify
- Fix: Review task dependencies in
-
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 analysisfor 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:
- Install CCW:
npm install -g @ccw/cli - Initialize:
ccw init - Start with Level 2 workflows for familiar patterns
- 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
Related Documentation
- Workflow Introduction - Complete workflow guide
- Workflow FAQ - Workflow-specific questions
- Command Reference - All commands
Still have questions? Open an issue or check the discussion forums.