GitHub - catlog22/Claude-Code-Workflow: JSON-driven multi-agent cadence-team development framework with intelligent CLI orchestration (Gemini/Qwen/Codex), context-first architecture, and automated workflow execution

5 min read Original article โ†—

Quick Start Guide CLI Tools Architecture



โœจ Key Features

๐ŸŽฏ Skill-based Workflows

From lite-plan (lightweight) to brainstorm (multi-role analysis)

๐Ÿ”„ Multi-CLI Orchestration

Gemini, Qwen, Codex, Claude - auto-select or manual

โšก Team Architecture v2

Role-based agents with inner loop execution

๐Ÿ”ง Queue Scheduler

Background queue execution service

๐Ÿ“ฆ Session Lifecycle

start/resume/complete/sync workflow sessions

๐Ÿ–ฅ๏ธ Terminal Dashboard

Multi-terminal grid with execution monitor

๐ŸŽจ Orchestrator Editor

Template-based workflow visual editing

๐Ÿ’ฌ A2UI

Agent-to-User interactive interface

๐Ÿ“– 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 TriggerUse Case
workflow-lite-planLightweight planning, single-module features (hands off to lite-execute)
workflow-multi-cli-planMulti-CLI collaborative analysis
workflow-planFull planning with session persistence
workflow-tdd-planTest-driven development
workflow-test-fixTest generation and fix cycles
brainstormMulti-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 ModeDescription
FTSFull-text search, based on SQLite FTS5
SemanticSemantic search, using local embedding models
HybridHybrid search, combining FTS + Semantic + Reranking

๐Ÿ’ป CCW CLI Commands

๐ŸŒŸ Recommended Commands

CommandDescriptionWhen 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

๐Ÿค Contributing

GitHub Issues


๐Ÿ“„ License