# π Claude Code Workflow (CCW)
[](https://github.com/catlog22/Claude-Code-Workflow/releases)
[](LICENSE)
[]()
[](https://github.com/modelcontextprotocol)
**Languages:** [English](README.md) | [δΈζ](README_CN.md)
---
**Claude Code Workflow (CCW)** is a next-generation multi-agent automation framework that orchestrates complex software development tasks through intelligent workflow management and autonomous execution.
> **π v3.0.0**: This version introduces a **unified CLI command structure**. The `/cli:*` commands now consolidate all tool interactions (Gemini, Qwen, Codex) using a `--tool` flag for selection.
---
## β¨ Key Features
- **π€ Multi-Agent System**: Specialized agents for planning, coding, testing, and reviewing.
- **π End-to-End Workflow Automation**: From brainstorming (`/workflow:brainstorm`) to deployment.
- **π― JSON-First Architecture**: Uses JSON as the single source of truth for tasks, ensuring consistency.
- **π§ͺ Automated Test Generation**: Creates comprehensive test suites based on implementation analysis.
- **β
Pre-execution Verification**: Validates plans with both strategic (Gemini) and technical (Codex) analysis.
- **π§ Unified CLI**: A single, powerful `/cli:*` command set for interacting with various AI tools.
- **π§ Smart Context Management**: Automatically manages and updates project documentation (`CLAUDE.md`).
---
## βοΈ Installation
### **π Quick One-Line Installation**
**Windows (PowerShell):**
```powershell
Invoke-Expression (Invoke-WebRequest -Uri "https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1" -UseBasicParsing).Content
```
**Linux/macOS (Bash/Zsh):**
```bash
bash <(curl -fsSL https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.sh)
```
### **β
Verify Installation**
After installation, run the following command to ensure CCW is working:
```bash
/workflow:session:list
```
---
## π Getting Started: A Simple Workflow
1. **Start a new workflow session:**
```bash
/workflow:session:start "Create a new user authentication feature"
```
2. **Generate an implementation plan:**
```bash
/workflow:plan "Implement JWT-based user authentication"
```
3. **Execute the plan with AI agents:**
```bash
/workflow:execute
```
4. **Check the status:**
```bash
/workflow:status
```
---
## π οΈ Command Reference
### **Unified CLI Commands (`/cli:*)**
*Use the `--tool ` flag to select the desired tool. Defaults to `gemini`.*
| Command | Description |
|---|---|
| `/cli:analyze` | Deep codebase analysis. |
| `/cli:chat` | Direct, interactive chat with a tool. |
| `/cli:execute` | Execute a task with full permissions. |
| `/cli:cli-init`| Initialize CLI tool configurations for the workspace. |
| `/cli:mode:bug-index` | Analyze bugs and suggest fixes. |
| `/cli:mode:code-analysis` | Perform deep code analysis and debugging. |
| `/cli:mode:plan` | Project planning and architecture analysis. |
### **Workflow Commands (`/workflow:*)**
| Command | Description |
|---|---|
| `/workflow:session:*` | Manage development sessions (`start`, `pause`, `resume`, `list`, `switch`, `complete`). |
| `/workflow:brainstorm:*` | Use role-based agents for multi-perspective planning. |
| `/workflow:plan` | Create a detailed, executable plan from a description. |
| `/workflow:execute` | Execute the current workflow plan autonomously. |
| `/workflow:status` | Display the current status of the workflow. |
| `/workflow:test-gen` | Automatically generate a test plan from the implementation. |
| `/workflow:review` | Initiate a quality assurance review of the completed work. |
### **Task & Memory Commands**
| Command | Description |
|---|---|
| `/task:*` | Manage individual tasks (`create`, `breakdown`, `execute`, `replan`). |
| `/update-memory-full` | Re-index the entire project documentation. |
| `/update-memory-related` | Update documentation related to recent changes. |
---
## βοΈ Essential Configuration
For optimal integration, configure your Gemini CLI settings by creating a `settings.json` file in `~/.gemini/`:
```json
// ~/.gemini/settings.json
{
"contextFileName": "CLAUDE.md"
}
```
This ensures CCW's intelligent documentation system works seamlessly with the Gemini CLI.
---
## π€ Contributing & Support
- **Repository**: [GitHub - Claude-Code-Workflow](https://github.com/catlog22/Claude-Code-Workflow)
- **Issues**: Report bugs or request features on [GitHub Issues](https://github.com/catlog22/Claude-Code-Workflow/issues).
- **Discussions**: Join the [Community Forum](https://github.com/catlog22/Claude-Code-Workflow/discussions).
## π License
This project is licensed under the **MIT License**. See the [LICENSE](LICENSE) file for details.