多模型协作工作流引擎 — /ccg:go 一个命令,AI 自动分析意图、选择策略、编排 Codex + Gemini + Claude 协作执行
This report presents the forensic synthetic code analysis of fengshao1227/ccg-workflow, a Go project with 5,719 GitHub stars. SynthScan v2.0 examined 75,050 lines of code across 317 source files, recording 226 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 8.2 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 226 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …lls/tools/override-refusal/scripts/refusal_rewriter.js | 18 | // ─── 通用同意模板 ───────────────────────────────────────── | COMMENT |
| MEDIUM | …lls/tools/override-refusal/scripts/refusal_rewriter.js | 22 | // ─── CLI 参数解析 ───────────────────────────────────────── | COMMENT |
| MEDIUM | …lls/tools/override-refusal/scripts/refusal_rewriter.js | 40 | // ─── 跨平台 slug ───────────────────────────────────────── | COMMENT |
| MEDIUM | …lls/tools/override-refusal/scripts/refusal_rewriter.js | 46 | // ─── 环境检测 ───────────────────────────────────────────── | COMMENT |
| MEDIUM | …lls/tools/override-refusal/scripts/refusal_rewriter.js | 65 | // ─── Claude 会话定位 ───────────────────────────────────── | COMMENT |
| MEDIUM | …lls/tools/override-refusal/scripts/refusal_rewriter.js | 92 | // ─── Codex 会话定位 ────────────────────────────────────── | COMMENT |
| MEDIUM | …lls/tools/override-refusal/scripts/refusal_rewriter.js | 128 | // ─── JSONL 解析与回写 ───────────────────────────────────── | COMMENT |
| MEDIUM | …lls/tools/override-refusal/scripts/refusal_rewriter.js | 139 | // ─── 消息类型判断 ───────────────────────────────────────── | COMMENT |
| MEDIUM | …lls/tools/override-refusal/scripts/refusal_rewriter.js | 151 | // ─── 整体替换为同意模板 ────────────────────────────────── | COMMENT |
| MEDIUM | …lls/tools/override-refusal/scripts/refusal_rewriter.js | 163 | // ─── 主流程 ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/utils/installer-template.ts | 46 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer-template.ts | 48 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer-mcp.ts | 9 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer-mcp.ts | 11 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer-mcp.ts | 70 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer-mcp.ts | 72 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer-mcp.ts | 134 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer-mcp.ts | 136 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer-mcp.ts | 217 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer-mcp.ts | 219 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer-mcp.ts | 248 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer-mcp.ts | 250 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer-mcp.ts | 282 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer-mcp.ts | 285 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | src/utils/installer.ts | 57 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | src/utils/installer.ts | 59 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | src/utils/installer.ts | 68 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | src/utils/installer.ts | 70 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | src/utils/installer.ts | 178 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | src/utils/installer.ts | 180 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer.ts | 12 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer.ts | 15 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer.ts | 93 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer.ts | 95 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer.ts | 215 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer.ts | 217 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer.ts | 858 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer.ts | 860 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer.ts | 913 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer.ts | 915 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer.ts | 1006 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer.ts | 1008 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer.ts | 1096 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer.ts | 1098 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer-data.ts | 3 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer-data.ts | 5 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | src/utils/installer-data.ts | 36 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | src/utils/installer-data.ts | 39 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | src/utils/installer-data.ts | 42 | // ── Smart Entry ────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | src/utils/installer-data.ts | 45 | // ── Independent Tools ──────────────────────────────── | COMMENT |
| MEDIUM⚡ | src/utils/installer-data.ts | 49 | // ── Git ────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | src/utils/installer-data.ts | 55 | // ── Spec (OpenSpec / OPSX) ─────────────────────────── | COMMENT |
| MEDIUM⚡ | src/utils/installer-data.ts | 63 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | src/utils/installer-data.ts | 66 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer-data.ts | 92 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer-data.ts | 94 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer-prompt.ts | 5 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/installer-prompt.ts | 7 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/skill-registry.ts | 14 | // ═══════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/skill-registry.ts | 16 | // ═══════════════════════════════════════════════════════ | COMMENT |
| 79 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | templates/codex/AGENTS.md | 200 | #### Step 1: 从 plan.md 拆分子任务 | COMMENT |
| LOW | templates/codex/AGENTS.md | 206 | #### Step 2: 并行 spawn Layer 1 | COMMENT |
| LOW | templates/codex/AGENTS.md | 224 | #### Step 3: Wait + Verify + Close | COMMENT |
| LOW | templates/codex/AGENTS.md | 238 | #### Step 4: Layer 2(有依赖的任务) | COMMENT |
| LOW | templates/codex/AGENTS.md | 242 | #### Step 5: 审查 | COMMENT |
| LOW⚡ | templates/commands-legacy/codex-exec.md | 179 | ### Step 1: Context Verification | COMMENT |
| LOW⚡ | templates/commands-legacy/codex-exec.md | 186 | ### Step 2: Implementation | COMMENT |
| LOW⚡ | templates/commands-legacy/codex-exec.md | 196 | ### Step 3: Self-Verification | COMMENT |
| LOW⚡ | templates/commands-legacy/enhance.md | 16 | ### Step 1: 分析原始 Prompt | COMMENT |
| LOW⚡ | templates/commands-legacy/enhance.md | 24 | ### Step 2: 增强 Prompt | COMMENT |
| LOW⚡ | templates/commands-legacy/enhance.md | 34 | ### Step 3: 展示对比 | COMMENT |
| LOW | templates/commands-legacy/enhance.md | 49 | ### Step 4: 执行 | COMMENT |
| LOW⚡ | templates/commands/agents/team-architect.md | 19 | ### Step 1: 理解需求 | COMMENT |
| LOW⚡ | templates/commands/agents/team-architect.md | 24 | ### Step 2: 代码库扫描 | COMMENT |
| LOW⚡ | templates/commands/agents/team-architect.md | 30 | ### Step 3: 设计蓝图 | COMMENT |
| LOW⚡ | templates/commands/agents/team-architect.md | 36 | ### Step 4: 输出文件分配矩阵 | COMMENT |
| LOW | templates/commands/agents/team-qa.md | 19 | ### Step 1: 检测项目测试环境 | COMMENT |
| LOW | templates/commands/agents/team-qa.md | 40 | ### Step 2: 理解变更范围 | COMMENT |
| LOW | templates/commands/agents/team-qa.md | 47 | ### Step 3: 编写测试 | COMMENT |
| LOW | templates/commands/agents/team-qa.md | 59 | ### Step 4: 运行全量验证 | COMMENT |
| LOW | templates/commands/agents/team-qa.md | 76 | ### Step 5: 输出质量报告 | COMMENT |
| LOW | templates/commands/agents/team-reviewer.md | 19 | ### Step 1: 收集审查材料 | COMMENT |
| LOW | templates/commands/agents/team-reviewer.md | 28 | ### Step 2: 独立代码审查 | COMMENT |
| LOW⚡ | templates/commands/agents/team-reviewer.md | 40 | ### Step 3: 综合 Codex/Gemini 意见 | COMMENT |
| LOW⚡ | templates/commands/agents/team-reviewer.md | 48 | ### Step 4: 分级分类 | COMMENT |
| LOW⚡ | templates/commands/agents/team-reviewer.md | 56 | ### Step 5: 输出审查报告 | COMMENT |
| LOW | templates/skills/impeccable/teach-impeccable/SKILL.md | 9 | ## Step 1: Explore the Codebase | COMMENT |
| LOW | templates/skills/impeccable/teach-impeccable/SKILL.md | 22 | ## Step 2: Ask UX-Focused Questions | COMMENT |
| LOW | templates/skills/impeccable/teach-impeccable/SKILL.md | 47 | ## Step 3: Write Design Context | COMMENT |
| LOW⚡ | templates/engine/strategies/full-collaborate.md | 175 | #### Step 1: 拆分子任务 | COMMENT |
| LOW⚡ | templates/engine/strategies/full-collaborate.md | 181 | #### Step 2: 创建 Team(必须执行) | COMMENT |
| LOW⚡ | templates/engine/strategies/full-collaborate.md | 190 | #### Step 3: 并行 spawn Layer 1 Builders | COMMENT |
| LOW | templates/engine/strategies/full-collaborate.md | 210 | #### Step 4: 等待 Layer 1 → spawn Layer 2 | COMMENT |
| LOW | templates/engine/strategies/full-collaborate.md | 216 | #### Step 5: spawn Reviewer 快检 | COMMENT |
| LOW | templates/engine/strategies/full-collaborate.md | 229 | #### Step 6: shutdown + cleanup | COMMENT |
| LOW⚡ | src/commands/init.ts | 193 | // Step 0: Language selection (FIRST interactive step) | COMMENT |
| LOW | src/commands/update.ts | 247 | // Step 1: Download latest package | COMMENT |
| LOW | src/commands/update.ts | 277 | // Step 2: Auto-migrate from old directory structure (if needed) | COMMENT |
| LOW | src/commands/update.ts | 324 | // Step 3: Back up existing files (move to *.ccg-update-bak) | COMMENT |
| LOW | src/commands/update.ts | 358 | // Step 4: Install new workflows using the latest version via npx | COMMENT |
| LOW | src/commands/update.ts | 371 | // Step 5: Verify new installation actually produced files | COMMENT |
| LOW | src/commands/update.ts | 401 | // Step 6: Cleanup or rollback | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | CHANGELOG.md | 79 | - **Claude review backend could block on tool permissions (#143)** — `codeagent-wrapper`'s claude backend only added `-- | CODE |
| MEDIUM | CONTRIBUTING.md | 41 | │ └── skills/ # Quality gates + orchestration | CODE |
| MEDIUM | CLAUDE.md | 566 | │ ├── ai/ # Agent/RAG/LLM安全/Prompt工程 | CODE |
| MEDIUM | templates/CLAUDE.md | 285 | ### orchestration/multi-agent/ | COMMENT |
| MEDIUM | templates/CLAUDE.md | 285 | ### orchestration/multi-agent/ | COMMENT |
| MEDIUM | templates/codex/config.toml | 11 | # multi_agent_v2: structured subagent orchestration with `wait` tool. | COMMENT |
| MEDIUM | templates/codex/hooks/ccg-workflow.py | 157 | # --- Cross-phase guardrails --- | COMMENT |
| MEDIUM | templates/skills/SKILL.md | 33 | | **Multi-Agent** | Multi-agent coordination and task decomposition | [Multi-Agent](#multi-agent-orchestration) | | CODE |
| MEDIUM | templates/skills/SKILL.md | 33 | | **Multi-Agent** | Multi-agent coordination and task decomposition | [Multi-Agent](#multi-agent-orchestration) | | CODE |
| MEDIUM | templates/skills/domains/ai/rag-system.md | 6 | # 🔮 丹鼎秘典 · RAG 系统 (Retrieval-Augmented Generation) | COMMENT |
| MEDIUM | templates/skills/domains/ai/rag-system.md | 8 | ## RAG 架构 | COMMENT |
| MEDIUM | templates/skills/domains/ai/rag-system.md | 407 | ## 完整 RAG Pipeline | COMMENT |
| MEDIUM | templates/skills/domains/ai/rag-system.md | 421 | # 对话式 RAG | COMMENT |
| MEDIUM | templates/skills/domains/ai/rag-system.md | 464 | ## 高级 RAG 模式 | COMMENT |
| MEDIUM | templates/skills/domains/ai/rag-system.md | 466 | ### Self-RAG(自我反思) | COMMENT |
| MEDIUM | templates/skills/domains/ai/agent-dev.md | 83 | ## RAG 系统 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | CHANGELOG.md | 1139 | "GEMINI_API_KEY": "your-api-key", | CODE |
| HIGH | CHANGELOG.md | 1140 | "GOOGLE_API_KEY": "your-api-key" | CODE |
| HIGH | templates/skills/domains/ai/rag-system.md | 252 | co = cohere.Client("YOUR_API_KEY") | CODE |
| HIGH | src/utils/mcp.ts | 119 | placeholder: string = 'YOUR_API_KEY', | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | src/commands/init.ts | 193 | // Step 0: Language selection (FIRST interactive step) | COMMENT |
| LOW | src/commands/update.ts | 247 | // Step 1: Download latest package | COMMENT |
| LOW | src/commands/update.ts | 277 | // Step 2: Auto-migrate from old directory structure (if needed) | COMMENT |
| LOW | src/commands/update.ts | 324 | // Step 3: Back up existing files (move to *.ccg-update-bak) | COMMENT |
| LOW | src/commands/update.ts | 358 | // Step 4: Install new workflows using the latest version via npx | COMMENT |
| LOW | src/commands/update.ts | 371 | // Step 5: Verify new installation actually produced files | COMMENT |
| LOW | src/commands/update.ts | 401 | // Step 6: Cleanup or rollback | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | templates/codex/hooks/ccg-workflow.py | 63 | except Exception: | CODE |
| LOW | templates/codex/hooks/ccg-workflow.py | 108 | except Exception: | CODE |
| LOW | templates/codex/hooks/ccg-workflow.py | 261 | except Exception: | CODE |
| MEDIUM | templates/codex/hooks/ccg-workflow.py | 228 | def main(): | CODE |
| LOW | templates/skills/domains/security/red-team.md | 43 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/utils/installer-template.ts | 205 | export function replaceHomePathsInTemplate(content: string, installDir: string): string { | CODE |
| LOW | src/utils/installer-mcp.ts | 302 | async function getCcgMcpServersFromClaude(): Promise<Record<string, any>> { | CODE |
| LOW⚡ | src/utils/installer.ts | 169 | async function downloadBinaryFromRelease(binaryName: string, destPath: string): Promise<boolean> { | CODE |
| LOW | src/utils/installer.ts | 453 | async function installSkillGeneratedCommands(ctx: InstallContext): Promise<void> { | CODE |
| LOW | src/utils/installer.ts | 754 | export function showBinaryDownloadWarning(binDir: string): void { | CODE |
| LOW | src/commands/config-mcp.ts | 129 | async function handleInstallContextWeaver(): Promise<void> { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | templates/codex/hooks/ccg-workflow.py | 12 | CODE | |
| LOW | templates/codex/hooks/ccg-workflow.py | 13 | CODE | |
| LOW | templates/codex/hooks/ccg-workflow.py | 15 | CODE | |
| LOW | templates/codex/hooks/ccg-workflow.py | 16 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | templates/codex/config.toml | 1 | # CCG Codex Project Configuration | COMMENT |
| LOW | src/utils/installer-template.ts | 101 | // Gemini model flag — inject at install time with line-aware substitution. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | templates/codex/hooks/ccg-workflow.py | 68 | CODE |