โจ Key Features
๐ New? See Workflow Guide for complete workflow documentation.
๐ Quick Start
Install CCW
npm install -g claude-code-workflow ccw install -m Global
Workflow Skills vs Commands
CCW uses two types of invocations:
| Type | Format | Examples |
|---|---|---|
| Skills | Trigger phrase (no slash) | workflow-lite-plan, brainstorm, workflow-plan |
| Commands | Slash command | /ccw, /workflow/session:start, /issue/new |
Choose Your Workflow Skill
| Skill Trigger | Use Case |
|---|---|
workflow-lite-plan | Lightweight planning, single-module features (hands off to lite-execute) |
workflow-multi-cli-plan | Multi-CLI collaborative analysis |
workflow-plan | Full planning with session persistence |
workflow-tdd-plan | Test-driven development |
workflow-test-fix | Test generation and fix cycles |
brainstorm | Multi-role brainstorming analysis |
Workflow Examples
# Skill triggers (no slash - just describe what you want) workflow-lite-plan "Add JWT authentication" workflow-plan "Implement payment gateway integration" workflow-execute # Brainstorming brainstorm "Design real-time collaboration system" # Slash commands for session management /workflow/session:start /workflow/session:resume /workflow/session:complete
๐ ๏ธ CLI Tool Installation
๐ญ Semantic CLI Invocation
Users can semantically specify CLI tools in prompts - the system automatically invokes the corresponding CLI.
Basic Invocation
| User Prompt | System Action |
|---|---|
| "Use Gemini to analyze the auth module" | Auto-invoke gemini CLI for analysis |
| "Let Codex review this code" | Auto-invoke codex CLI for review |
| "Ask Qwen about performance optimization" | Auto-invoke qwen CLI for consultation |
Multi-CLI Orchestration
| Pattern | User Prompt Example |
|---|---|
| Collaborative | "Use Gemini and Codex to collaboratively analyze security vulnerabilities" |
| Parallel | "Have Gemini, Codex, and Qwen analyze the architecture in parallel" |
| Iterative | "Use Gemini to diagnose, then Codex to fix, iterate until resolved" |
| Pipeline | "Gemini designs the solution, Codex implements, Claude reviews" |
๐ ACE Tool Configuration
ACE (Augment Context Engine) provides powerful semantic code search.
๐ CodexLens Local Search
โ ๏ธ In Development: CodexLens is under iterative optimization. Some features may be unstable.
| Search Mode | Description |
|---|---|
| FTS | Full-text search, based on SQLite FTS5 |
| Semantic | Semantic search, using local embedding models |
| Hybrid | Hybrid search, combining FTS + Semantic + Reranking |
๐ป CCW CLI Commands
๐ Recommended Commands
| Command | Description | When to Use |
|---|---|---|
| /ccw | Auto workflow orchestrator - analyzes intent, selects workflow, executes | โ General tasks, auto workflow selection |
| /ccw-coordinator | Smart orchestrator - recommends command chains, allows manual adjustment | ๐ง Complex multi-step workflows |
Quick Examples:
# /ccw - Auto workflow selection /ccw "Add user authentication" /ccw "Fix memory leak in WebSocket" /ccw "Implement with TDD" # /ccw-coordinator - Manual chain orchestration /ccw-coordinator "Implement OAuth2 system"
Session Management Commands
/workflow:session:start # Start new workflow session /workflow:session:resume # Resume paused session /workflow:session:list # List all sessions /workflow:session:sync # Sync session work /workflow:session:complete # Complete session
Issue Workflow Commands
/issue/new # Create new issue /issue/plan # Plan issue resolution /issue/queue # Form execution queue /issue/execute # Execute issue queue
Other CLI Commands
ccw install # Install workflow files ccw view # Open dashboard ccw cli -p "..." # Execute CLI tools (Gemini/Qwen/Codex) ccw upgrade -a # Upgrade all installations
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Workflow Skills โ
โ ๐ workflow-lite-plan / workflow-multi-cli-plan (lightweight) โ
โ ๐ workflow-plan / workflow-tdd-plan (session-based) โ
โ ๐งช workflow-test-fix / workflow-test-fix โ
โ ๐ง brainstorm (multi-role analysis) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Team Architecture v2 โ
โ ๐ค team-worker agents with role-spec based execution โ
โ ๐ Inner loop framework for sequential task processing โ
โ ๐ข Message bus protocol with team coordination โ
โ ๐ง Wisdom accumulation (learnings/decisions/conventions) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Queue Scheduler Service โ
โ โ๏ธ Background execution service with API endpoints โ
โ ๐ Queue management and unified CLI execution settings โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Terminal Dashboard & Orchestrator โ
โ ๐ฅ๏ธ Multi-terminal grid with execution monitor โ
โ ๐จ Template-based workflow editor with slash commands โ
โ ๐ก Real-time agent communication via A2UI โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฆ Project Structure
Claude-Code-Workflow/
โโโ .claude/
โ โโโ agents/ # 22 specialized agents (team-worker, cli-discuss, etc.)
โ โโโ commands/ # Slash commands (5 categories)
โ โ โโโ ccw.md # Main orchestrator
โ โ โโโ ccw-coordinator.md
โ โ โโโ cli/ # CLI commands (cli-init, codex-review)
โ โ โโโ issue/ # Issue management (plan, execute, queue)
โ โ โโโ memory/ # Memory commands (prepare, style-skill-memory)
โ โ โโโ workflow/ # Workflow commands (session, ui-design, etc.)
โ โโโ skills/ # 37 modular skills
โ โโโ workflow-lite-plan/
โ โโโ workflow-plan/
โ โโโ workflow-tdd-plan/
โ โโโ workflow-test-fix/
โ โโโ brainstorm/
โ โโโ team-*/ # Team coordination skills
โ โโโ ...
โโโ ccw/
โ โโโ src/ # TypeScript source code
โ โ โโโ commands/ # CLI command implementations
โ โ โโโ core/ # Core services (a2ui, auth, hooks, routes)
โ โ โโโ mcp-server/ # MCP server implementation
โ โ โโโ tools/ # Tool implementations
โ โโโ frontend/ # React frontend (Terminal Dashboard, Orchestrator)
โโโ codex-lens/ # Local semantic code search engine
โโโ docs/ # Documentation
๐ผ Team Cadence Control (Beat Model)
The v2 team architecture introduces an event-driven beat model for efficient orchestration:
Beat Cycle (single beat)
======================================================================
Event Coordinator Workers
----------------------------------------------------------------------
callback/resume --> +- handleCallback -+
| mark completed |
| check pipeline |
+- handleSpawnNext -+
| find ready tasks |
| spawn workers ---+--> [team-worker A] Phase 1-5
| (parallel OK) --+--> [team-worker B] Phase 1-5
+- STOP (idle) -----+ |
|
callback <-----------------------------------------+
(next beat) SendMessage + TaskUpdate(completed)
======================================================================
Key Benefits:
- ๐ฏ Event-driven: Coordinator only wakes when needed (callback/resume)
- โก Fast-advance: Simple successors spawn directly without coordinator roundtrip
- ๐ Dynamic pipelines: Generated per-task from dependency graph
- ๐ Parallel execution: Independent tasks run concurrently
๐ฅ๏ธ Frontend Highlights
Terminal Dashboard
Multi-terminal grid layout with real-time execution monitoring.
Features:
- ๐ฅ๏ธ Multi-terminal grid with resizable panes
- ๐ Execution monitor with agent list
- ๐ File sidebar for project navigation
- ๐ฏ Session grouping by project tags
- ๐ Fullscreen/immersive mode
Orchestrator Editor
Visual workflow template editor with drag-drop.
Features:
- ๐จ React Flow-based visual editing
- ๐ฆ Template library with pre-built workflows
- ๐ง Property panel for node configuration
- โก Slash command integration