Skip to content

Install CCG Workflow - Multi-Model AI Coding Setup Guide

CCG Workflow installs as a set of hooks, commands, and configuration files into your Claude Code environment. The setup wizard handles everything in under a minute.

DependencyVersionRequiredPurpose
Node.js20+YesRuns CCG CLI and hooks
Claude Code CLILatestYesHost environment for CCG
jqAnyYesJSON parsing in hook scripts
Codex CLILatestOptionalEnables backend analysis routing
Gemini CLILatestOptionalEnables frontend analysis routing
Terminal window
npx ccg-workflow

The first run launches the interactive setup wizard. No global install needed.

Terminal window
npm install -g ccg-workflow
ccg-workflow

The installer guides you through the following steps:

Choose your interface language on first launch (Chinese / English).

Configure how external models authenticate:

  • Official login — Use Codex / Gemini CLI’s built-in authentication
  • API Key — Enter a third-party API key
  • Skip — Configure later through the interactive menu

Select which external models to enable:

  • Codex CLI (backend analysis)
  • Gemini CLI (frontend analysis)
  • Both (recommended for full dual-model collaboration)

Choose MCP services to configure:

  • fast-context — Natural language code retrieval
  • ace-tool — Semantic code search
  • context7 — Live library documentation queries
  • Standard mode — Suitable for most projects
  • High-performance mode — Enables Agent Teams parallel execution (requires CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1)

After installation, the following files are written to ~/.claude/:

~/.claude/
├── commands/ccg/ # 13 slash commands (.md files)
├── hooks/ccg/ # 4 hook scripts (.js files)
│ ├── workflow-state.js
│ ├── session-start.js
│ ├── subagent-context.js
│ └── skill-router.js
├── .ccg/
│ ├── config.toml # Model routing, MCP, performance config
│ ├── engine/ # Strategy files + model router
│ └── prompts/ # Expert prompts for external models
├── skills/ccg/ # Quality gates + domain knowledge files
├── bin/codeagent-wrapper # Multi-model execution bridge (Go binary)
└── settings.json # Hook registration + env vars (appended)

After installation, type the following in a Claude Code session:

/ccg:go hello

If the engine begins analyzing your intent, the installation was successful.

Terminal window
npx ccg-workflow@latest

When the installer detects an existing configuration, it performs an incremental update without overwriting your custom settings.

Terminal window
npx ccg-workflow
# Select "Uninstall" from the interactive menu

Uninstallation removes all CCG-installed files (commands, hooks, config) but does not affect the Claude Code CLI itself.