ccg-workflow 2.1.16 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +120 -270
- package/README.zh-CN.md +119 -269
- package/dist/cli.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/{ccg-workflow.CewMlBCj.mjs → ccg-workflow.81OoN8XX.mjs} +160 -34
- package/package.json +6 -30
- package/templates/commands/go.md +199 -0
- package/templates/commands-legacy/team.md +475 -0
- package/templates/engine/model-router.md +117 -0
- package/templates/engine/phase-guide.md +95 -0
- package/templates/engine/strategies/debug-investigate.md +156 -0
- package/templates/engine/strategies/deep-research.md +141 -0
- package/templates/engine/strategies/direct-fix.md +108 -0
- package/templates/engine/strategies/full-collaborate.md +291 -0
- package/templates/engine/strategies/git-action.md +43 -0
- package/templates/engine/strategies/guided-develop.md +208 -0
- package/templates/engine/strategies/optimize-measure.md +103 -0
- package/templates/engine/strategies/quick-implement.md +96 -0
- package/templates/engine/strategies/refactor-safely.md +157 -0
- package/templates/engine/strategies/review-audit.md +116 -0
- package/templates/hooks/session-start.js +100 -0
- package/templates/hooks/skill-router.js +144 -0
- package/templates/hooks/subagent-context.js +118 -0
- package/templates/hooks/task-utils.js +113 -0
- package/templates/hooks/workflow-state.js +39 -0
- package/templates/spec/backend/index.md +31 -0
- package/templates/spec/frontend/index.md +31 -0
- package/templates/spec/guides/index.md +30 -0
- /package/templates/{commands → commands-legacy}/analyze.md +0 -0
- /package/templates/{commands → commands-legacy}/backend.md +0 -0
- /package/templates/{commands → commands-legacy}/codex-exec.md +0 -0
- /package/templates/{commands → commands-legacy}/debug.md +0 -0
- /package/templates/{commands → commands-legacy}/enhance.md +0 -0
- /package/templates/{commands → commands-legacy}/execute.md +0 -0
- /package/templates/{commands → commands-legacy}/feat.md +0 -0
- /package/templates/{commands → commands-legacy}/frontend.md +0 -0
- /package/templates/{commands → commands-legacy}/optimize.md +0 -0
- /package/templates/{commands → commands-legacy}/plan.md +0 -0
- /package/templates/{commands → commands-legacy}/review.md +0 -0
- /package/templates/{commands → commands-legacy}/team-exec.md +0 -0
- /package/templates/{commands → commands-legacy}/team-plan.md +0 -0
- /package/templates/{commands → commands-legacy}/team-research.md +0 -0
- /package/templates/{commands → commands-legacy}/team-review.md +0 -0
- /package/templates/{commands → commands-legacy}/test.md +0 -0
- /package/templates/{commands → commands-legacy}/workflow.md +0 -0
package/README.md
CHANGED
|
@@ -1,341 +1,202 @@
|
|
|
1
1
|
# CCG - Claude + Codex + Gemini Multi-Model Collaboration
|
|
2
2
|
|
|
3
|
-
<div align="center">
|
|
4
|
-
|
|
5
|
-
<img src="assets/logo/ccg-logo-cropped.png" alt="CCG Workflow" width="400">
|
|
6
|
-
|
|
7
3
|
[](https://github.com/fengshao1227/ccg-workflow)
|
|
8
4
|
[](https://www.npmjs.com/package/ccg-workflow)
|
|
9
5
|
[](https://www.npmjs.com/package/ccg-workflow)
|
|
10
6
|
[](https://opensource.org/licenses/MIT)
|
|
11
|
-
[](https://claude.ai/code)
|
|
12
|
-
[]()
|
|
13
|
-
[](https://x.com/CCG_Workflow)
|
|
14
|
-

|
|
15
7
|
|
|
16
8
|
[简体中文](./README.zh-CN.md) | English
|
|
17
9
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
## ♥️ Sponsor
|
|
10
|
+
## Sponsor
|
|
21
11
|
|
|
22
|
-
[
|
|
12
|
+
[302.AI](https://share.302.ai/oUDqQ6) — Pay-as-you-go enterprise AI resource hub with the latest AI models and APIs.
|
|
23
13
|
|
|
24
|
-
[
|
|
14
|
+
[n1n.ai](https://api.n1n.ai/register?channel=c_ivgzug0w) — One API Key to access 500+ AI models.
|
|
25
15
|
|
|
26
16
|
---
|
|
27
17
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
---
|
|
18
|
+
CCG is a workflow engine for Claude Code that orchestrates multiple AI models (Codex, Gemini, Claude) with hook-based state tracking, automatic strategy selection, and Agent Teams parallel execution.
|
|
31
19
|
|
|
32
|
-
|
|
20
|
+
## What's new in v3.0
|
|
33
21
|
|
|
34
|
-
|
|
22
|
+
v3.0 is a ground-up rewrite. One command replaces 29.
|
|
35
23
|
|
|
36
|
-
-
|
|
37
|
-
- **
|
|
38
|
-
- **
|
|
39
|
-
- **
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
```
|
|
44
|
-
Claude Code (Orchestrator)
|
|
45
|
-
│
|
|
46
|
-
┌───┴───┐
|
|
47
|
-
↓ ↓
|
|
48
|
-
Codex Gemini
|
|
49
|
-
(Backend) (Frontend)
|
|
50
|
-
│ │
|
|
51
|
-
└───┬───┘
|
|
52
|
-
↓
|
|
53
|
-
Unified Patch
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
External models have no write access — they only return patches, which Claude reviews before applying.
|
|
57
|
-
|
|
58
|
-
> **🎬 [See CCG in action →](https://x.com/CCG_Workflow/status/2038923720610463876)** — Real multi-model collaboration demo on X
|
|
24
|
+
- `/ccg:go` — Describe what you want in plain language. The engine analyzes your intent, picks the right strategy, and executes it.
|
|
25
|
+
- **Hook engine** — Per-turn state injection keeps Claude on track even after context compaction. Session-start hooks inject full project context on every new session.
|
|
26
|
+
- **Task persistence** — Medium+ complexity tasks create `.ccg/tasks/` with persistent state. Phase gates enforce HARD STOP checkpoints.
|
|
27
|
+
- **Agent Teams** — Large tasks spawn parallel Builder teammates via TeamCreate. Each Builder gets isolated file ownership.
|
|
28
|
+
- **Quality gates** — `verify-security`, `verify-quality`, `verify-change` run as Skill invocations inside strategy verification phases.
|
|
29
|
+
- **Domain knowledge hooks** — When your message mentions security, caching, RAG, etc., the relevant knowledge file is auto-injected into context.
|
|
59
30
|
|
|
60
31
|
## Quick Start
|
|
61
32
|
|
|
62
|
-
### Prerequisites
|
|
63
|
-
|
|
64
|
-
| Dependency | Required | Notes |
|
|
65
|
-
|------------|----------|-------|
|
|
66
|
-
| **Node.js 20+** | Yes | `ora@9.x` requires Node >= 20. Node 18 causes `SyntaxError` |
|
|
67
|
-
| **Claude Code CLI** | Yes | [Install guide](#install-claude-code) |
|
|
68
|
-
| **jq** | Yes | Used for auto-authorization hook ([install](#install-jq)) |
|
|
69
|
-
| **Codex CLI** | No | Enables backend routing |
|
|
70
|
-
| **Gemini CLI** | No | Enables frontend routing |
|
|
71
|
-
|
|
72
|
-
### Installation
|
|
73
|
-
|
|
74
33
|
```bash
|
|
75
34
|
npx ccg-workflow
|
|
76
35
|
```
|
|
77
36
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
### Install jq
|
|
81
|
-
|
|
82
|
-
```bash
|
|
83
|
-
# macOS
|
|
84
|
-
brew install jq
|
|
37
|
+
Requires Node.js 20+ and Claude Code CLI. Codex CLI and Gemini CLI are optional (enable multi-model features).
|
|
85
38
|
|
|
86
|
-
|
|
87
|
-
sudo apt install jq
|
|
39
|
+
The installer walks through 4 steps: API config, model routing, MCP tools, performance mode. New users get a streamlined 2-step flow with sensible defaults.
|
|
88
40
|
|
|
89
|
-
|
|
90
|
-
sudo yum install jq
|
|
41
|
+
## How it works
|
|
91
42
|
|
|
92
|
-
# Windows
|
|
93
|
-
choco install jq # or: scoop install jq
|
|
94
43
|
```
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
44
|
+
You: /ccg:go add JWT authentication to this API
|
|
45
|
+
|
|
46
|
+
CCG Engine:
|
|
47
|
+
1. Reads project context (git status, tech stack, file structure)
|
|
48
|
+
2. Classifies: feature / L complexity / backend / high risk
|
|
49
|
+
3. Selects strategy: full-collaborate
|
|
50
|
+
4. Creates .ccg/tasks/add-jwt-auth/task.json
|
|
51
|
+
5. Launches dual-model analysis (Codex + Gemini in parallel)
|
|
52
|
+
6. Produces plan → HARD STOP for your approval
|
|
53
|
+
7. Spawns Agent Teams Builders for parallel implementation
|
|
54
|
+
8. Runs quality gates + dual-model cross-review
|
|
55
|
+
9. Reports results
|
|
56
|
+
|
|
57
|
+
Every turn, a hook injects:
|
|
58
|
+
<ccg-state>
|
|
59
|
+
Task: add-jwt-auth (in_progress)
|
|
60
|
+
Strategy: full-collaborate
|
|
61
|
+
Phase: 4-implementation
|
|
62
|
+
Next: Layer 1 Builders executing
|
|
63
|
+
</ccg-state>
|
|
100
64
|
```
|
|
101
65
|
|
|
102
|
-
|
|
66
|
+
## Strategies
|
|
103
67
|
|
|
104
|
-
|
|
68
|
+
The engine picks a strategy based on task type and complexity:
|
|
105
69
|
|
|
106
|
-
|
|
70
|
+
| Strategy | When | External models | Teams |
|
|
71
|
+
|----------|------|-----------------|-------|
|
|
72
|
+
| direct-fix | Simple bug, single file | No | No |
|
|
73
|
+
| quick-implement | Small feature, clear scope | No | No |
|
|
74
|
+
| guided-develop | Medium feature, needs planning | Single model | No |
|
|
75
|
+
| full-collaborate | Complex feature, multi-module | Dual model parallel | Yes |
|
|
76
|
+
| debug-investigate | Complex bug, unknown cause | Dual model diagnosis | No |
|
|
77
|
+
| refactor-safely | Code restructuring | Dual model review | No |
|
|
78
|
+
| deep-research | Technical research, comparison | Dual model exploration | No |
|
|
79
|
+
| optimize-measure | Performance optimization | Optional | No |
|
|
80
|
+
| review-audit | Code review | Dual model cross-review | No |
|
|
81
|
+
| git-action | commit, rollback, branches | No | No |
|
|
107
82
|
|
|
108
|
-
|
|
109
|
-
|---------|-------------|-------|
|
|
110
|
-
| `/ccg:workflow` | Full 6-phase development workflow | Codex + Gemini |
|
|
111
|
-
| `/ccg:plan` | Multi-model collaborative planning (Phase 1-2) | Codex + Gemini |
|
|
112
|
-
| `/ccg:execute` | Multi-model collaborative execution (Phase 3-5) | Codex + Gemini + Claude |
|
|
113
|
-
| `/ccg:codex-exec` | Codex full execution (plan → code → review) | Codex + multi-model review |
|
|
114
|
-
| `/ccg:feat` | Smart feature development | Auto-routed |
|
|
115
|
-
| `/ccg:frontend` | Frontend tasks (fast mode) | Gemini |
|
|
116
|
-
| `/ccg:backend` | Backend tasks (fast mode) | Codex |
|
|
83
|
+
Simple tasks run fast with no overhead. Complex tasks get the full engine.
|
|
117
84
|
|
|
118
|
-
|
|
85
|
+
## Commands
|
|
119
86
|
|
|
120
|
-
|
|
121
|
-
|---------|-------------|-------|
|
|
122
|
-
| `/ccg:analyze` | Technical analysis | Codex + Gemini |
|
|
123
|
-
| `/ccg:debug` | Problem diagnosis + fix | Codex + Gemini |
|
|
124
|
-
| `/ccg:optimize` | Performance optimization | Codex + Gemini |
|
|
125
|
-
| `/ccg:test` | Test generation | Auto-routed |
|
|
126
|
-
| `/ccg:review` | Code review (auto git diff) | Codex + Gemini |
|
|
127
|
-
| `/ccg:enhance` | Prompt enhancement | Built-in |
|
|
87
|
+
v3.0 default install: 13 commands. Legacy mode adds 18 more.
|
|
128
88
|
|
|
129
|
-
###
|
|
89
|
+
### Core
|
|
130
90
|
|
|
131
91
|
| Command | Description |
|
|
132
92
|
|---------|-------------|
|
|
133
|
-
| `/ccg:
|
|
134
|
-
| `/ccg:spec-research` | Requirements → Constraints |
|
|
135
|
-
| `/ccg:spec-plan` | Constraints → Zero-decision plan |
|
|
136
|
-
| `/ccg:spec-impl` | Execute plan + archive |
|
|
137
|
-
| `/ccg:spec-review` | Dual-model cross-review |
|
|
93
|
+
| `/ccg:go` | Smart entry — describe what you want, engine handles the rest |
|
|
138
94
|
|
|
139
|
-
###
|
|
95
|
+
### Git
|
|
140
96
|
|
|
141
97
|
| Command | Description |
|
|
142
98
|
|---------|-------------|
|
|
143
|
-
| `/ccg:
|
|
144
|
-
| `/ccg:team-plan` | Constraints → parallel implementation plan |
|
|
145
|
-
| `/ccg:team-exec` | Spawn Builder teammates for parallel coding |
|
|
146
|
-
| `/ccg:team-review` | Dual-model cross-review |
|
|
147
|
-
|
|
148
|
-
> **Prerequisite**: Enable Agent Teams in `settings.json`: `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`
|
|
149
|
-
|
|
150
|
-
### Git Tools
|
|
151
|
-
|
|
152
|
-
| Command | Description |
|
|
153
|
-
|---------|-------------|
|
|
154
|
-
| `/ccg:commit` | Smart commit (conventional commit format) |
|
|
99
|
+
| `/ccg:commit` | Smart conventional commit |
|
|
155
100
|
| `/ccg:rollback` | Interactive rollback |
|
|
156
101
|
| `/ccg:clean-branches` | Clean merged branches |
|
|
157
102
|
| `/ccg:worktree` | Worktree management |
|
|
158
103
|
|
|
159
|
-
### Project
|
|
104
|
+
### Project
|
|
160
105
|
|
|
161
106
|
| Command | Description |
|
|
162
107
|
|---------|-------------|
|
|
163
108
|
| `/ccg:init` | Initialize project CLAUDE.md |
|
|
164
|
-
| `/ccg:context` | Project context management
|
|
109
|
+
| `/ccg:context` | Project context management |
|
|
165
110
|
|
|
166
|
-
|
|
111
|
+
### OpenSpec
|
|
167
112
|
|
|
168
|
-
|
|
113
|
+
| Command | Description |
|
|
114
|
+
|---------|-------------|
|
|
115
|
+
| `/ccg:spec-init` | Initialize OPSX environment |
|
|
116
|
+
| `/ccg:spec-research` | Requirements → constraints |
|
|
117
|
+
| `/ccg:spec-plan` | Constraints → zero-decision plan |
|
|
118
|
+
| `/ccg:spec-impl` | Execute plan + archive |
|
|
119
|
+
| `/ccg:spec-review` | Dual-model cross-review |
|
|
169
120
|
|
|
170
|
-
|
|
171
|
-
# 1. Generate implementation plan
|
|
172
|
-
/ccg:plan implement user authentication
|
|
121
|
+
## Hook Engine
|
|
173
122
|
|
|
174
|
-
|
|
175
|
-
# Plan saved to .claude/plan/user-auth.md
|
|
123
|
+
CCG installs 4 hooks into `~/.claude/settings.json`:
|
|
176
124
|
|
|
177
|
-
|
|
178
|
-
|
|
125
|
+
| Hook | Event | Purpose |
|
|
126
|
+
|------|-------|---------|
|
|
127
|
+
| workflow-state.js | UserPromptSubmit | Injects task state breadcrumb every turn |
|
|
128
|
+
| session-start.js | SessionStart | Injects full project context on session start/clear/compact |
|
|
129
|
+
| subagent-context.js | PreToolUse (Bash/Agent) | Injects spec + task context into codeagent-wrapper calls and Team member spawns |
|
|
130
|
+
| skill-router.js | UserPromptSubmit | Auto-injects domain knowledge when keywords detected |
|
|
179
131
|
|
|
180
|
-
|
|
181
|
-
/ccg:codex-exec .claude/plan/user-auth.md
|
|
182
|
-
```
|
|
132
|
+
Hooks are JavaScript, zero dependencies, silent on failure.
|
|
183
133
|
|
|
184
|
-
|
|
134
|
+
## Task System
|
|
185
135
|
|
|
186
|
-
|
|
136
|
+
Medium+ complexity tasks create a persistent task directory:
|
|
187
137
|
|
|
188
|
-
```
|
|
189
|
-
/
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
138
|
+
```
|
|
139
|
+
.ccg/tasks/add-jwt-auth/
|
|
140
|
+
├── task.json # Status, strategy, current phase, gate
|
|
141
|
+
├── requirements.md # Enhanced requirements (full-collaborate)
|
|
142
|
+
├── plan.md # Approved implementation plan
|
|
143
|
+
├── context.jsonl # Spec files for sub-agent injection
|
|
144
|
+
├── review.md # Review results
|
|
145
|
+
└── research/ # Persisted research findings
|
|
194
146
|
```
|
|
195
147
|
|
|
196
|
-
|
|
148
|
+
The workflow-state hook reads `task.json` every turn and injects the current state. If context gets compacted, session-start re-injects the full task context. No state is lost.
|
|
197
149
|
|
|
198
|
-
|
|
150
|
+
## Spec System
|
|
199
151
|
|
|
200
|
-
|
|
152
|
+
Project-level coding standards in `.ccg/spec/`:
|
|
201
153
|
|
|
202
|
-
```
|
|
203
|
-
/
|
|
204
|
-
#
|
|
205
|
-
/
|
|
206
|
-
#
|
|
207
|
-
/ccg:team-exec # 3. Builders code in parallel
|
|
208
|
-
# /clear
|
|
209
|
-
/ccg:team-review # 4. Dual-model cross-review
|
|
154
|
+
```
|
|
155
|
+
.ccg/spec/
|
|
156
|
+
├── backend/index.md # Backend conventions
|
|
157
|
+
├── frontend/index.md # Frontend conventions
|
|
158
|
+
└── guides/index.md # Cross-module guidelines
|
|
210
159
|
```
|
|
211
160
|
|
|
212
|
-
|
|
161
|
+
The subagent-context hook reads `context.jsonl` and injects relevant spec files into every codeagent-wrapper call and Agent Team spawn. Sub-agents follow your project's standards without being told.
|
|
213
162
|
|
|
214
163
|
## Configuration
|
|
215
164
|
|
|
216
|
-
### Directory Structure
|
|
217
|
-
|
|
218
165
|
```
|
|
219
166
|
~/.claude/
|
|
220
|
-
├── commands/ccg/
|
|
221
|
-
├──
|
|
222
|
-
├──
|
|
223
|
-
├──
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
└── gemini/ # 7 Gemini expert prompts
|
|
167
|
+
├── commands/ccg/ # Slash commands
|
|
168
|
+
├── hooks/ccg/ # Hook scripts (4 files)
|
|
169
|
+
├── .ccg/
|
|
170
|
+
│ ├── config.toml # Model routing, MCP, performance
|
|
171
|
+
│ ├── engine/ # Strategy files + model router
|
|
172
|
+
│ └── prompts/ # Expert prompts (codex/gemini/claude)
|
|
173
|
+
├── skills/ccg/ # Quality gates + domain knowledge
|
|
174
|
+
└── bin/codeagent-wrapper # Multi-model execution bridge
|
|
229
175
|
```
|
|
230
176
|
|
|
231
177
|
### Environment Variables
|
|
232
178
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
| Variable | Description | Default | When to change |
|
|
236
|
-
|----------|-------------|---------|----------------|
|
|
237
|
-
| `CODEAGENT_POST_MESSAGE_DELAY` | Wait after Codex completion (sec) | `5` | Set to `1` if Codex process hangs |
|
|
238
|
-
| `CODEX_TIMEOUT` | Wrapper execution timeout (sec) | `7200` | Increase for very long tasks |
|
|
239
|
-
| `BASH_DEFAULT_TIMEOUT_MS` | Claude Code Bash timeout (ms) | `120000` | Increase if commands time out |
|
|
240
|
-
| `BASH_MAX_TIMEOUT_MS` | Claude Code Bash max timeout (ms) | `600000` | Increase for long builds |
|
|
241
|
-
|
|
242
|
-
<details>
|
|
243
|
-
<summary>Example settings.json</summary>
|
|
244
|
-
|
|
245
|
-
```json
|
|
246
|
-
{
|
|
247
|
-
"env": {
|
|
248
|
-
"CODEAGENT_POST_MESSAGE_DELAY": "1",
|
|
249
|
-
"CODEX_TIMEOUT": "7200",
|
|
250
|
-
"BASH_DEFAULT_TIMEOUT_MS": "600000",
|
|
251
|
-
"BASH_MAX_TIMEOUT_MS": "3600000"
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
```
|
|
255
|
-
|
|
256
|
-
</details>
|
|
257
|
-
|
|
258
|
-
### MCP Configuration
|
|
259
|
-
|
|
260
|
-
```bash
|
|
261
|
-
npx ccg-workflow menu # Select "Configure MCP"
|
|
262
|
-
```
|
|
263
|
-
|
|
264
|
-
**Code retrieval** (choose one):
|
|
265
|
-
- **ace-tool** (recommended) — Code search via `search_context`. [Official](https://augmentcode.com/) | [Third-party proxy](https://acemcp.heroman.wtf/)
|
|
266
|
-
- **fast-context** (recommended) — Windsurf Fast Context, AI-powered search without full-repo indexing. Requires Windsurf account
|
|
267
|
-
- **ContextWeaver** (alternative) — Local hybrid search, requires SiliconFlow API Key (free)
|
|
268
|
-
|
|
269
|
-
**Optional tools**:
|
|
270
|
-
- **Context7** — Latest library documentation (auto-installed)
|
|
271
|
-
- **Playwright** — Browser automation / testing
|
|
272
|
-
- **DeepWiki** — Knowledge base queries
|
|
273
|
-
- **Exa** — Search engine (requires API Key)
|
|
274
|
-
|
|
275
|
-
### Auto-Authorization Hook
|
|
276
|
-
|
|
277
|
-
CCG automatically installs a Hook to auto-authorize `codeagent-wrapper` commands (requires [jq](#install-jq)).
|
|
278
|
-
|
|
279
|
-
<details>
|
|
280
|
-
<summary>Manual setup (for versions before v1.7.71)</summary>
|
|
281
|
-
|
|
282
|
-
Add to `~/.claude/settings.json`:
|
|
283
|
-
|
|
284
|
-
```json
|
|
285
|
-
{
|
|
286
|
-
"hooks": {
|
|
287
|
-
"PreToolUse": [
|
|
288
|
-
{
|
|
289
|
-
"matcher": "Bash",
|
|
290
|
-
"hooks": [
|
|
291
|
-
{
|
|
292
|
-
"type": "command",
|
|
293
|
-
"command": "jq -r '.tool_input.command' 2>/dev/null | grep -q 'codeagent-wrapper' && echo '{\"hookSpecificOutput\": {\"hookEventName\": \"PreToolUse\", \"permissionDecision\": \"allow\", \"permissionDecisionReason\": \"codeagent-wrapper auto-approved\"}}' || true",
|
|
294
|
-
"timeout": 1
|
|
295
|
-
}
|
|
296
|
-
]
|
|
297
|
-
}
|
|
298
|
-
]
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
```
|
|
302
|
-
|
|
303
|
-
</details>
|
|
179
|
+
Set in `~/.claude/settings.json` under `"env"`:
|
|
304
180
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
- **ccusage** — Claude Code usage analytics
|
|
312
|
-
- **CCometixLine** — Status bar tool (Git + usage tracking)
|
|
181
|
+
| Variable | Default | Description |
|
|
182
|
+
|----------|---------|-------------|
|
|
183
|
+
| `CODEX_TIMEOUT` | `7200` | Wrapper timeout (seconds) |
|
|
184
|
+
| `CODEAGENT_POST_MESSAGE_DELAY` | `5` | Post-completion delay (seconds) |
|
|
185
|
+
| `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` | unset | Set to `1` to enable Agent Teams parallel execution |
|
|
313
186
|
|
|
314
187
|
## Update / Uninstall
|
|
315
188
|
|
|
316
189
|
```bash
|
|
317
|
-
# Update
|
|
318
|
-
npx ccg-workflow
|
|
319
|
-
npm install -g ccg-workflow@latest # npm global users
|
|
320
|
-
|
|
321
|
-
# Uninstall
|
|
322
|
-
npx ccg-workflow # Select "Uninstall"
|
|
323
|
-
npm uninstall -g ccg-workflow # npm global users need this extra step
|
|
190
|
+
npx ccg-workflow@latest # Update
|
|
191
|
+
npx ccg-workflow # Select "Uninstall" from menu
|
|
324
192
|
```
|
|
325
193
|
|
|
326
|
-
##
|
|
327
|
-
|
|
328
|
-
### Codex CLI 0.80.0 process does not exit
|
|
329
|
-
|
|
330
|
-
In `--json` mode, Codex does not automatically exit after output completion.
|
|
331
|
-
|
|
332
|
-
**Fix**: Set `CODEAGENT_POST_MESSAGE_DELAY=1` in your environment variables.
|
|
333
|
-
|
|
334
|
-
## Contributing
|
|
335
|
-
|
|
336
|
-
We welcome contributions! See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.
|
|
194
|
+
## Credits
|
|
337
195
|
|
|
338
|
-
|
|
196
|
+
- [cexll/myclaude](https://github.com/cexll/myclaude) — codeagent-wrapper inspiration
|
|
197
|
+
- [UfoMiao/zcf](https://github.com/UfoMiao/zcf) — Git tools reference
|
|
198
|
+
- [mindfold-ai/Trellis](https://github.com/mindfold-ai/Trellis) — Hook-based workflow state patterns
|
|
199
|
+
- [ace-tool](https://linux.do/t/topic/1344562) — MCP code retrieval
|
|
339
200
|
|
|
340
201
|
## Contributors
|
|
341
202
|
|
|
@@ -356,23 +217,12 @@ Looking for a place to start? Check out issues labeled [`good first issue`](http
|
|
|
356
217
|
</table>
|
|
357
218
|
<!-- readme: contributors -end -->
|
|
358
219
|
|
|
359
|
-
## Credits
|
|
360
|
-
|
|
361
|
-
- [cexll/myclaude](https://github.com/cexll/myclaude) — codeagent-wrapper
|
|
362
|
-
- [UfoMiao/zcf](https://github.com/UfoMiao/zcf) — Git tools
|
|
363
|
-
- [GudaStudio/skills](https://github.com/GuDaStudio/skills) — Routing design
|
|
364
|
-
- [ace-tool](https://linux.do/t/topic/1344562) — MCP tool
|
|
365
|
-
|
|
366
|
-
## Star History
|
|
367
|
-
|
|
368
|
-
[](https://www.star-history.com/#fengshao1227/ccg-workflow&type=timeline&legend=top-left)
|
|
369
|
-
|
|
370
220
|
## Contact
|
|
371
221
|
|
|
372
|
-
- **X (Twitter)**: [@CCG_Workflow](https://x.com/CCG_Workflow)
|
|
373
|
-
- **Email**: [fengshao1227@gmail.com](mailto:fengshao1227@gmail.com)
|
|
374
|
-
- **Issues**: [GitHub Issues](https://github.com/fengshao1227/ccg-workflow/issues)
|
|
375
|
-
- **
|
|
222
|
+
- **X (Twitter)**: [@CCG_Workflow](https://x.com/CCG_Workflow)
|
|
223
|
+
- **Email**: [fengshao1227@gmail.com](mailto:fengshao1227@gmail.com)
|
|
224
|
+
- **Issues**: [GitHub Issues](https://github.com/fengshao1227/ccg-workflow/issues)
|
|
225
|
+
- **Community**: [Linux.do](https://linux.do)
|
|
376
226
|
|
|
377
227
|
## License
|
|
378
228
|
|
|
@@ -380,4 +230,4 @@ MIT
|
|
|
380
230
|
|
|
381
231
|
---
|
|
382
232
|
|
|
383
|
-
|
|
233
|
+
v3.0.0 | [Issues](https://github.com/fengshao1227/ccg-workflow/issues) | [Contributing](./CONTRIBUTING.md)
|