ccc is a CLI tool that enhances Claude Code with two core features:
- Supervisor Mode: ⭐ Automatic task review that ensures high-quality, deliverable work
- Seamless Provider Switching: Switch between Kimi, GLM, MiniMax, and other providers with one command
Better than ralph-claude-code:
- Supervisor Mode uses a Stop Hook triggered review with a strict framework that significantly improves task completion and quality.
- Unlike ralph's signal-based exit detection, ccc's Supervisor forks the full session context to evaluate actual work quality.
- This prevents fake completions where AI claims "done" but the result has poor quality or unresolved issues.
OS=$(uname -s | tr '[:upper:]' '[:lower:]'); ARCH=$(uname -m | sed -e 's/x86_64/amd64/' -e 's/aarch64/arm64/'); curl -LO "https://github.com/guyskk/claude-code-supervisor/releases/latest/download/ccc-${OS}-${ARCH}" && sudo install -m 755 "ccc-${OS}-${ARCH}" /usr/local/bin/ccc && rm "ccc-${OS}-${ARCH}" && ccc --versionOption B: Download from Releases
Download the binary for your platform (ccc-darwin-arm64, ccc-linux-amd64, etc.) and install to /usr/local/bin/.
If you already have ~/.claude/settings.json, the first time you run ccc it will prompt to migrate and automatically generate the ccc config at ~/.claude/ccc.json.
You can also create the config file manually:
{
"settings": {
"permissions": {
"defaultMode": "bypassPermissions"
}
},
"supervisor": {
"enabled": true
},
"providers": {
"glm": {
"env": {
"ANTHROPIC_BASE_URL": "https://open.bigmodel.cn/api/anthropic",
"ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY_HERE",
"ANTHROPIC_MODEL": "glm-4.7"
}
},
"kimi": {
"env": {
"ANTHROPIC_BASE_URL": "https://api.moonshot.cn/anthropic",
"ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY_HERE",
"ANTHROPIC_MODEL": "kimi-k2-thinking"
}
}
}
}Security Warning:
bypassPermissionsallows Claude Code to execute tools without confirmation. Only use this in trusted environments.Token Consumption:
supervisor.enabledsignificantly improves task completion but also increases token consumption.
# Show help
ccc --help
# Switch to a provider and run Claude Code
ccc glm
# Run with current provider
ccc
# Pass any Claude Code arguments
ccc glm -pVerify your provider configuration:
# Validate current provider
ccc validate
# Validate all providers
ccc validate --allSupervisor Mode is the most valuable feature of ccc. It automatically reviews the Agent's work after each stop and provides feedback if incomplete.
Default (config file): Set supervisor.enabled: true in your ccc.json (see Quick Start above).
Temporary override: Use the CCC_SUPERVISOR environment variable to temporarily override the config:
# Force enable (even if config.enabled = false)
export CCC_SUPERVISOR=1
ccc
# Force disable (even if config.enabled = true)
export CCC_SUPERVISOR=0
ccc- Agent completes a task and stops, triggering Claude Code's Stop Hook
- Supervisor (a Claude instance) performs a strict review
- If work is incomplete or low quality, Supervisor provides feedback
- Agent continues with the feedback
- This repeats until Supervisor confirms the work is complete
Config file location, default: ~/.claude/ccc.json
{
"settings": {
"permissions": {
"defaultMode": "bypassPermissions"
},
"alwaysThinkingEnabled": true
},
"supervisor": {
"enabled": true,
"max_iterations": 20,
"timeout_seconds": 600
},
"claude_args": ["--verbose"],
"current_provider": "glm",
"providers": {
"glm": {
"env": {
"ANTHROPIC_BASE_URL": "https://open.bigmodel.cn/api/anthropic",
"ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY_HERE",
"ANTHROPIC_MODEL": "glm-4.7"
}
},
"kimi": {
"env": {
"ANTHROPIC_BASE_URL": "https://api.moonshot.cn/anthropic",
"ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY_HERE",
"ANTHROPIC_MODEL": "kimi-k2-thinking",
"ANTHROPIC_SMALL_FAST_MODEL": "kimi-k2-0905-preview"
}
}
}
}| Field | Description |
|---|---|
settings |
Shared Claude Code config template for all providers |
supervisor |
Supervisor mode configuration (optional) |
claude_args |
Fixed arguments to pass to Claude Code (optional) |
current_provider |
Currently used provider (auto-managed by ccc) |
providers.{name} |
Provider-specific Claude Code configuration |
Each provider only needs to specify the fields it wants to override. Common fields:
| Field | Description |
|---|---|
env.ANTHROPIC_BASE_URL |
API endpoint URL |
env.ANTHROPIC_AUTH_TOKEN |
API key/token |
env.ANTHROPIC_MODEL |
Main model to use |
env.ANTHROPIC_SMALL_FAST_MODEL |
Fast model for quick tasks |
How merging works: Provider settings are deep-merged with the base template. Provider env takes precedence over settings.env.
| Field | Description | Default |
|---|---|---|
enabled |
Enable Supervisor mode | false |
max_iterations |
Maximum iterations before forcing stop | 20 |
timeout_seconds |
Timeout per supervisor call | 600 |
Can be overridden with CCC_SUPERVISOR=1 environment variable.
Create ~/.claude/SUPERVISOR.md to customize the Supervisor prompt. This file overrides the default review behavior with your own instructions.
| Variable | Description |
|---|---|
CCC_CONFIG_DIR |
Override config directory (default: ~/.claude/) |
CCC_SUPERVISOR |
Enable Supervisor mode ("1" = enable, "0" = disable) |
# Debug with custom config directory
CCC_CONFIG_DIR=./tmp ccc glm
# Enable Supervisor mode
export CCC_SUPERVISOR=1
ccc glm# Build for all platforms
./build.sh --all
# Build for specific platforms
./build.sh -p darwin-arm64,linux-amd64
# Custom output directory
./build.sh -o ./binSupported platforms: darwin-amd64, darwin-arm64, linux-amd64, linux-arm64
MIT License - see LICENSE file for details.