# Claude Code Workflow (CCW)
[](https://github.com/catlog22/Claude-Code-Workflow/releases)
[](https://www.npmjs.com/package/claude-code-workflow)
[](LICENSE)
**[English](README.md) | [δΈζ](README_CN.md)**
---
**CCW** is a JSON-driven multi-agent development framework with intelligent CLI orchestration. It provides **4-level workflow system** from rapid execution to full brainstorming, transforming AI development into powerful orchestration.
## β¨ Key Features
| Feature | Description |
|---------|-------------|
| π― **4-Level Workflows** | From `lite-lite-lite` (instant) to `brainstorm` (multi-role analysis) |
| π **Multi-CLI Orchestration** | Gemini, Qwen, Codex, Claude - auto-select or manual |
| β‘ **Dependency-Aware Parallelism** | Agent parallel execution without worktree complexity |
| π§ **Issue Workflow** | Post-development maintenance with optional worktree isolation |
| π¦ **JSON-First State** | `.task/IMPL-*.json` as single source of truth |
| π₯οΈ **Dashboard** | Visual session management, CodexLens search, graph explorer |
> π **New?** See [Workflow Guide](WORKFLOW_GUIDE.md) for the complete 4-level workflow system.
---
## π Quick Start
### Install CCW
```bash
npm install -g claude-code-workflow
ccw install -m Global
```
### Choose Your Workflow Level
| Level | Command | Use Case |
|-------|---------|----------|
| β‘ **1** | `/workflow:lite-lite-lite` | Quick fixes, config changes |
| π **2** | `/workflow:lite-plan` | Clear single-module features |
| π§ **2** | `/workflow:lite-fix` | Bug diagnosis and fix |
| π **2** | `/workflow:multi-cli-plan` | Multi-perspective analysis |
| π **3** | `/workflow:plan` | Multi-module development |
| π§ͺ **3** | `/workflow:tdd-plan` | Test-driven development |
| π§ **4** | `/workflow:brainstorm:auto-parallel` | New features, architecture design |
### Workflow Examples
```bash
# Level 1: Instant execution
/workflow:lite-lite-lite "Fix typo in README"
# Level 2: Lightweight planning
/workflow:lite-plan "Add JWT authentication"
/workflow:lite-fix "User upload fails with 413 error"
# Level 3: Standard planning with session
/workflow:plan "Implement payment gateway integration"
/workflow:execute
# Level 4: Multi-role brainstorming
/workflow:brainstorm:auto-parallel "Design real-time collaboration system" --count 5
/workflow:plan --session WFS-xxx
/workflow:execute
```
---
## π οΈ CLI Tool Installation
CCW supports multiple CLI tools for code analysis and generation. Install as needed:
### π· Gemini CLI
Google's official Gemini CLI:
```bash
# Install
npm install -g @anthropic-ai/gemini-cli
# Configure API Key
export GEMINI_API_KEY="your-api-key"
# Verify
gemini --version
```
### π’ Codex CLI
OpenAI Codex CLI (recommended for long autonomous coding):
```bash
# Install
npm install -g @openai/codex
# Configure API Key
export OPENAI_API_KEY="your-api-key"
# Verify
codex --version
```
### π OpenCode CLI
Open-source multi-model CLI:
```bash
# Install
npm install -g opencode-ai
# Configure (supports multiple models)
export OPENCODE_API_KEY="your-api-key"
# Verify
opencode --version
```
### π£ Qwen CLI
Alibaba Cloud Qwen CLI:
```bash
# Install
pip install qwen-cli
# Configure
export QWEN_API_KEY="your-api-key"
# Verify
qwen --version
```
---
## π ACE Tool Configuration
ACE (Augment Context Engine) provides powerful semantic code search.
### Method 1: Official Installation (Recommended)
Use Anthropic's official MCP package directly:
```json
{
"mcpServers": {
"ace-tool": {
"command": "npx",
"args": ["-y", "@anthropic/ace-mcp"],
"env": {
"AUGMENT_API_KEY": "your-augment-api-key"
}
}
}
}
```
**Get API Key**: From [Augment Developer Portal](https://augment.dev)
### Method 2: Proxy Installation
For network-restricted environments:
```json
{
"mcpServers": {
"ace-tool": {
"command": "npx",
"args": ["-y", "@anthropic/ace-mcp"],
"env": {
"AUGMENT_API_KEY": "your-api-key",
"HTTPS_PROXY": "http://your-proxy:port",
"HTTP_PROXY": "http://your-proxy:port"
}
}
}
}
```
### Usage
```javascript
mcp__ace-tool__search_context({
project_root_path: "/path/to/project",
query: "user authentication logic"
})
```
---
## π CodexLens Local Search
> β οΈ **In Development**: CodexLens is under iterative optimization. Some features may be unstable.
CodexLens provides local code indexing and search without external APIs:
| 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 |
### Installation
```bash
# Enter codex-lens directory
cd codex-lens
# Install dependencies
pip install -e .
# Initialize index
codexlens index /path/to/project
```
### Dashboard Integration
Open Dashboard via `ccw view`, manage indexes and execute searches in **CodexLens Manager**.
---
## π» CCW CLI Commands
```bash
ccw install # Install workflow files
ccw view # Open dashboard
ccw cli -p "..." # Execute CLI tools (Gemini/Qwen/Codex)
ccw upgrade -a # Upgrade all installations
```
### Dashboard Features
| Feature | Description |
|---------|-------------|
| π **Session Overview** | Track workflow sessions and progress |
| π **CodexLens** | FTS + Semantic + Hybrid code search |
| πΈοΈ **Graph Explorer** | Interactive code relationship visualization |
| π **CLI Manager** | Execution history with session resume |
---
## π Documentation
| Document | Description |
|----------|-------------|
| π [**Workflow Guide**](WORKFLOW_GUIDE.md) | 4-level workflow system (recommended) |
| π [**Getting Started**](GETTING_STARTED.md) | 5-minute quick start |
| π₯οΈ [**Dashboard Guide**](DASHBOARD_GUIDE.md) | Dashboard user guide |
| β [**FAQ**](FAQ.md) | Common questions |
| π [**Changelog**](CHANGELOG.md) | Version history |
---
## ποΈ Architecture
```
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Main Workflow (4 Levels) β
β β‘ Level 1: lite-lite-lite (instant, no artifacts) β
β π Level 2: lite-plan / lite-fix / multi-cli-plan (β execute) β
β π Level 3: plan / tdd-plan / test-fix-gen (session persist) β
β π§ Level 4: brainstorm:auto-parallel β plan β execute β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Issue Workflow (Supplement) β
β π discover β π plan β π¦ queue β βΆοΈ execute (worktree) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
```
**Core Principles:**
- β‘ **Dependency Analysis** solves parallelism - no worktree needed for main workflow
- π§ **Issue Workflow** supplements main workflow for post-development maintenance
- π― Select workflow level based on complexity - avoid over-engineering
---
## π€ Contributing
- **Repository**: [GitHub](https://github.com/catlog22/Claude-Code-Workflow)
- **Issues**: [Report bugs or request features](https://github.com/catlog22/Claude-Code-Workflow/issues)
- **Contributing**: See [CONTRIBUTING.md](CONTRIBUTING.md)
## π License
MIT License - see [LICENSE](LICENSE)