Configuration Reference - CCG Workflow Setup
This reference covers the full file layout, configuration options, and environment variables for CCG Workflow.
Installation Directory Structure
Section titled “Installation Directory Structure”The complete file layout after CCG installation:
~/.claude/├── commands/ccg/ # Slash commands (13 .md files)│ ├── go.md # /ccg:go smart entry point│ ├── commit.md # /ccg:commit│ ├── rollback.md # /ccg:rollback│ ├── clean-branches.md # /ccg:clean-branches│ ├── worktree.md # /ccg:worktree│ ├── init.md # /ccg:init│ ├── context.md # /ccg:context│ ├── spec-init.md # /ccg:spec-init│ ├── spec-research.md # /ccg:spec-research│ ├── spec-plan.md # /ccg:spec-plan│ ├── spec-impl.md # /ccg:spec-impl│ └── spec-review.md # /ccg:spec-review│├── hooks/ccg/ # Hook scripts (4 .js files)│ ├── workflow-state.js # Per-turn state injection│ ├── session-start.js # Session startup context│ ├── subagent-context.js # Sub-agent spec injection│ └── skill-router.js # Domain knowledge auto-routing│├── .ccg/│ ├── config.toml # CCG main configuration│ ├── engine/ # Strategy engine│ │ ├── strategies/ # 10 strategy definition files│ │ └── router.js # Model router│ └── prompts/ # Expert prompts│ ├── codex/ # Codex experts (6)│ └── gemini/ # Gemini experts (7)│├── skills/ccg/ # Quality gates + domain knowledge│ ├── tools/│ │ ├── verify-security/│ │ ├── verify-quality/│ │ ├── verify-change/│ │ ├── verify-module/│ │ └── gen-docs/│ ├── orchestration/│ │ └── multi-agent/│ └── domains/ # Domain knowledge files│ ├── security/│ ├── architecture/│ ├── ai/│ ├── devops/│ └── development/│├── bin/│ └── codeagent-wrapper # Multi-model execution bridge (compiled Go binary)│└── settings.json # Hook registration + env varsconfig.toml
Section titled “config.toml”The main configuration file lives at ~/.claude/.ccg/config.toml:
[models]# Model routing configurationfrontend = "gemini" # Route frontend tasks to Geminibackend = "codex" # Route backend tasks to Codex
[mcp]# MCP tool configurationprovider = "fast-context" # fast-context / ace-tool / context-weaver
[performance]# Performance modeparallel = true # Enable dual-model parallel executiontimeout = 7200 # Wrapper timeout (seconds)Environment Variables
Section titled “Environment Variables”Set in the "env" field of ~/.claude/settings.json:
| Variable | Default | Description |
|---|---|---|
CODEX_TIMEOUT | 7200 | codeagent-wrapper timeout in seconds |
CODEAGENT_POST_MESSAGE_DELAY | 5 | Delay after wrapper execution completes (seconds) |
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS | unset | Set to 1 to enable Agent Teams parallel execution |
settings.json Structure
Section titled “settings.json Structure”The installer modifies ~/.claude/settings.json to add hook registrations and environment variables:
{ "hooks": { "UserPromptSubmit": [ { "type": "command", "command": "node ~/.claude/hooks/ccg/workflow-state.js" }, { "type": "command", "command": "node ~/.claude/hooks/ccg/skill-router.js" } ], "SessionStart": [ { "type": "command", "command": "node ~/.claude/hooks/ccg/session-start.js" } ], "PreToolUse": [ { "type": "command", "command": "node ~/.claude/hooks/ccg/subagent-context.js" } ] }, "env": { "CODEX_TIMEOUT": "7200", "CODEAGENT_POST_MESSAGE_DELAY": "5" }, "permissions": { "allow": [ "Bash(node ~/.claude/hooks/ccg/*)", "Bash(~/.claude/bin/codeagent-wrapper*)" ] }}Project-Level Configuration
Section titled “Project-Level Configuration”The .ccg/ directory in your project root stores task state and coding standards:
<project-root>/└── .ccg/ ├── tasks/ # Task persistence directory │ └── <task-slug>/ │ ├── task.json │ ├── plan.md │ └── ... └── spec/ # Project coding standards ├── backend/index.md ├── frontend/index.md └── guides/index.mdUpdating and Uninstalling
Section titled “Updating and Uninstalling”# Update to the latest versionnpx ccg-workflow@latest
# Open the interactive menu (includes uninstall option)npx ccg-workflowThe uninstaller cleanly removes all installed files: commands, hooks, config, skills, and binaries. It does not affect non-CCG configurations in ~/.claude/settings.json.