|
From Gemini, Qwen, Codex, Claude - auto-select or manual Role-based agents with inner loop execution Background queue execution service |
start/resume/complete/sync workflow sessions Multi-terminal grid with execution monitor Template-based workflow visual editing Agent-to-User interactive interface |
π New? See Workflow Guide for complete workflow documentation.
npm install -g claude-code-workflow
ccw install -m GlobalCCW 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 |
| Skill Trigger | Use Case |
|---|---|
workflow:lite-plan | Lightweight planning, single-module features |
workflow:multi-cli-plan | Multi-CLI collaborative analysis |
workflow:plan | Full planning with session persistence |
workflow:tdd-plan | Test-driven development |
workflow:test-fix-gen | Test generation and fix cycles |
brainstorm | Multi-role brainstorming analysis |
# 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 | Description | Official Docs |
|---|---|---|
| Gemini | Google AI analysis | google-gemini/gemini-cli |
| Codex | OpenAI autonomous coding | openai/codex |
| OpenCode | Open-source multi-model | opencode-ai/opencode |
| Qwen | Alibaba Qwen-Code | QwenLM/Qwen |
Users can semantically specify CLI tools in prompts - the system automatically invokes the corresponding CLI.
| 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 |
| 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 (Augment Context Engine) provides powerful semantic code search.
| Method | Link |
|---|---|
| Official | Augment MCP Documentation |
| Proxy | ace-tool (GitHub) |
β οΈ 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 |
| 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"/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/new # Create new issue
/issue/plan # Plan issue resolution
/issue/queue # Form execution queue
/issue/execute # Execute issue queueccw 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-gen / workflow:test-cycle-execute β
β π§ 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 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
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/
β βββ 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
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
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
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