Files
Claude-Code-Workflow/INSTALL.md
laoman.wzp e464d93e29 Fix missing ccw install step in installation documentation
- Added the crucial `ccw install` step after npm installation in both
  English (INSTALL.md) and Chinese (INSTALL_CN.md) documentation
- Included detailed explanation of what ccw install does:
  * Installs workflows, scripts, templates to ~/.claude/
  * Installs skill definitions to ~/.codex/
  * Configures shell integration (optional)

This step is essential for the complete installation of CCW system files.

Co-Authored-By: Claude (Kimi-K2-Instruct-0905) <noreply@anthropic.com>
2026-01-30 14:47:21 +08:00

5.9 KiB

Claude Code Workflow (CCW) - Installation Guide

English | 中文

Installation guide for Claude Code Agent workflow coordination and distributed memory system.

Version 6.3.18: Native CodexLens & Dashboard Revolution - Built-in code indexing engine (FTS + semantic search + HNSW vector index), new Dashboard views, TypeScript backend, session clustering intelligent memory management.

NPM Global Install

npm install -g claude-code-workflow

Complete Installation

After installing the npm package, you need to run the installation command to set up workflows, scripts, and templates:

# Install CCW system files (workflows, scripts, templates)
ccw install

The ccw install command will:

  • Install workflow definitions to ~/.claude/workflows/
  • Install utility scripts to ~/.claude/scripts/
  • Install prompt templates to ~/.claude/templates/
  • Install skill definitions to ~/.codex/skills/
  • Configure shell integration (optional)

Verify Installation

# Check ccw command
ccw --version

# Start Dashboard
ccw dashboard

# Start View interface (alternative UI)
ccw view

📂 Install from Source

If you want to install from source or contribute to development:

# Clone repository
git clone https://github.com/catlog22/Claude-Code-Workflow.git
cd Claude-Code-Workflow

# Install dependencies
npm install

# Global link (development mode)
npm link

Platform Requirements

  • Node.js: 16.0.0 or higher
  • OS: Windows, Linux, macOS

Check Node.js version:

node --version  # Should be >= 16.0.0

⚙️ Configuration

Tool Control System

CCW uses a configuration-based tool control system that makes external CLI tools optional rather than required. This allows you to:

  • Start with Claude-only mode - Work immediately without installing additional tools
  • Progressive enhancement - Add external tools selectively as needed
  • Graceful degradation - Automatic fallback when tools are unavailable
  • Flexible configuration - Control tool availability per project

Configuration File: ~/.claude/workflows/tool-control.yaml

tools:
  gemini:
    enabled: false  # Optional: AI analysis & documentation
  qwen:
    enabled: true   # Optional: AI architecture & code generation
  codex:
    enabled: true   # Optional: AI development & implementation

Behavior:

  • When disabled: CCW automatically falls back to other enabled tools or Claude's native capabilities
  • When enabled: Uses specialized tools for their specific strengths
  • Default: All tools disabled - Claude-only mode works out of the box

Optional CLI Tools (Enhanced Capabilities)

While CCW works with Claude alone, installing these tools provides enhanced analysis and extended context:

System Utilities

Tool Purpose Installation
ripgrep (rg) Fast code search macOS: brew install ripgrep
Linux: apt install ripgrep
Windows: winget install ripgrep
jq JSON processing macOS: brew install jq
Linux: apt install jq
Windows: winget install jq

External AI Tools

Configure these tools in ~/.claude/workflows/tool-control.yaml after installation:

Tool Purpose Installation
Gemini CLI AI analysis & documentation Follow official docs - Free quota, extended context
Codex CLI AI development & implementation Follow official docs - Autonomous development
Qwen Code AI architecture & code generation Follow official docs - Large context window

MCP (Model Context Protocol) tools provide advanced codebase analysis. Recommended installation - While CCW has fallback mechanisms, not installing MCP tools may lead to unexpected behavior or degraded performance in some workflows.

MCP Server Purpose Installation Guide
Exa MCP External API patterns & best practices Install Guide
Chrome DevTools MCP ⚠️ Required for UI workflows - URL mode design extraction Install Guide

Note

: Code Index MCP has been replaced by CCW's built-in CodexLens (mcp__ccw-tools__codex_lens). No additional installation required for code indexing.

Verify Installation

After installation, open Claude Code and check if the workflow commands are available by running:

/workflow:session:list

This command should be recognized in Claude Code's interface. If you see the workflow slash commands (e.g., /workflow:*, /cli:*), the installation was successful.

Troubleshooting

Permission Errors (npm global install)

Linux/macOS:

# Option 1: Use nvm to manage Node.js (recommended)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash

# Option 2: Fix npm permissions
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc

Windows: Run Command Prompt or PowerShell as Administrator

Workflow Commands Not Working

  • Verify installation: ls ~/.claude (should show agents/, commands/, workflows/)
  • Restart Claude Code after installation
  • Check /workflow:session:list command is recognized

ccw Command Not Found

# Check global install location
npm list -g --depth=0

# Ensure npm bin directory is in PATH
npm bin -g

Support