Repository Analysis

fengshao1227/ccg-workflow

多模型协作工作流引擎 — /ccg:go 一个命令,AI 自动分析意图、选择策略、编排 Codex + Gemini + Claude 协作执行

8.2 Low AI signal View on GitHub

Analysis Overview

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).

8.2
Adjusted Score
8.2
Raw Score
100%
Time Factor
2026-07-12
Last Push
5.7K
Stars
Go
Language
75.0K
Lines of Code
317
Files
226
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

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.

CRITICAL 0HIGH 4MEDIUM 156LOW 66

Directory Score Breakdown

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.

Pattern Findings

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.

Decorative Section Separators139 hits · 447 pts
SeverityFileLineSnippetContext
MEDIUM…lls/tools/override-refusal/scripts/refusal_rewriter.js18// ─── 通用同意模板 ─────────────────────────────────────────COMMENT
MEDIUM…lls/tools/override-refusal/scripts/refusal_rewriter.js22// ─── CLI 参数解析 ─────────────────────────────────────────COMMENT
MEDIUM…lls/tools/override-refusal/scripts/refusal_rewriter.js40// ─── 跨平台 slug ─────────────────────────────────────────COMMENT
MEDIUM…lls/tools/override-refusal/scripts/refusal_rewriter.js46// ─── 环境检测 ─────────────────────────────────────────────COMMENT
MEDIUM…lls/tools/override-refusal/scripts/refusal_rewriter.js65// ─── Claude 会话定位 ─────────────────────────────────────COMMENT
MEDIUM…lls/tools/override-refusal/scripts/refusal_rewriter.js92// ─── Codex 会话定位 ──────────────────────────────────────COMMENT
MEDIUM…lls/tools/override-refusal/scripts/refusal_rewriter.js128// ─── JSONL 解析与回写 ─────────────────────────────────────COMMENT
MEDIUM…lls/tools/override-refusal/scripts/refusal_rewriter.js139// ─── 消息类型判断 ─────────────────────────────────────────COMMENT
MEDIUM…lls/tools/override-refusal/scripts/refusal_rewriter.js151// ─── 整体替换为同意模板 ──────────────────────────────────COMMENT
MEDIUM…lls/tools/override-refusal/scripts/refusal_rewriter.js163// ─── 主流程 ───────────────────────────────────────────────COMMENT
MEDIUMsrc/utils/installer-template.ts46// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer-template.ts48// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer-mcp.ts9// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer-mcp.ts11// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer-mcp.ts70// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer-mcp.ts72// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer-mcp.ts134// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer-mcp.ts136// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer-mcp.ts217// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer-mcp.ts219// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer-mcp.ts248// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer-mcp.ts250// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer-mcp.ts282// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer-mcp.ts285// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer.ts57// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer.ts59// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer.ts68// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer.ts70// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer.ts178// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer.ts180// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer.ts12// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer.ts15// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer.ts93// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer.ts95// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer.ts215// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer.ts217// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer.ts858// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer.ts860// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer.ts913// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer.ts915// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer.ts1006// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer.ts1008// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer.ts1096// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer.ts1098// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer-data.ts3// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer-data.ts5// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer-data.ts36// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer-data.ts39// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer-data.ts42 // ── Smart Entry ──────────────────────────────────────COMMENT
MEDIUMsrc/utils/installer-data.ts45 // ── Independent Tools ────────────────────────────────COMMENT
MEDIUMsrc/utils/installer-data.ts49 // ── Git ──────────────────────────────────────────────COMMENT
MEDIUMsrc/utils/installer-data.ts55 // ── Spec (OpenSpec / OPSX) ───────────────────────────COMMENT
MEDIUMsrc/utils/installer-data.ts63// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer-data.ts66// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer-data.ts92// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer-data.ts94// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer-prompt.ts5// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/installer-prompt.ts7// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/skill-registry.ts14// ═══════════════════════════════════════════════════════COMMENT
MEDIUMsrc/utils/skill-registry.ts16// ═══════════════════════════════════════════════════════COMMENT
79 more matches not shown…
Structural Annotation Overuse42 hits · 76 pts
SeverityFileLineSnippetContext
LOWtemplates/codex/AGENTS.md200#### Step 1: 从 plan.md 拆分子任务COMMENT
LOWtemplates/codex/AGENTS.md206#### Step 2: 并行 spawn Layer 1COMMENT
LOWtemplates/codex/AGENTS.md224#### Step 3: Wait + Verify + CloseCOMMENT
LOWtemplates/codex/AGENTS.md238#### Step 4: Layer 2(有依赖的任务)COMMENT
LOWtemplates/codex/AGENTS.md242#### Step 5: 审查COMMENT
LOWtemplates/commands-legacy/codex-exec.md179### Step 1: Context VerificationCOMMENT
LOWtemplates/commands-legacy/codex-exec.md186### Step 2: ImplementationCOMMENT
LOWtemplates/commands-legacy/codex-exec.md196### Step 3: Self-VerificationCOMMENT
LOWtemplates/commands-legacy/enhance.md16### Step 1: 分析原始 PromptCOMMENT
LOWtemplates/commands-legacy/enhance.md24### Step 2: 增强 PromptCOMMENT
LOWtemplates/commands-legacy/enhance.md34### Step 3: 展示对比COMMENT
LOWtemplates/commands-legacy/enhance.md49### Step 4: 执行COMMENT
LOWtemplates/commands/agents/team-architect.md19### Step 1: 理解需求COMMENT
LOWtemplates/commands/agents/team-architect.md24### Step 2: 代码库扫描COMMENT
LOWtemplates/commands/agents/team-architect.md30### Step 3: 设计蓝图COMMENT
LOWtemplates/commands/agents/team-architect.md36### Step 4: 输出文件分配矩阵COMMENT
LOWtemplates/commands/agents/team-qa.md19### Step 1: 检测项目测试环境COMMENT
LOWtemplates/commands/agents/team-qa.md40### Step 2: 理解变更范围COMMENT
LOWtemplates/commands/agents/team-qa.md47### Step 3: 编写测试COMMENT
LOWtemplates/commands/agents/team-qa.md59### Step 4: 运行全量验证COMMENT
LOWtemplates/commands/agents/team-qa.md76### Step 5: 输出质量报告COMMENT
LOWtemplates/commands/agents/team-reviewer.md19### Step 1: 收集审查材料COMMENT
LOWtemplates/commands/agents/team-reviewer.md28### Step 2: 独立代码审查COMMENT
LOWtemplates/commands/agents/team-reviewer.md40### Step 3: 综合 Codex/Gemini 意见COMMENT
LOWtemplates/commands/agents/team-reviewer.md48### Step 4: 分级分类COMMENT
LOWtemplates/commands/agents/team-reviewer.md56### Step 5: 输出审查报告COMMENT
LOWtemplates/skills/impeccable/teach-impeccable/SKILL.md9## Step 1: Explore the CodebaseCOMMENT
LOWtemplates/skills/impeccable/teach-impeccable/SKILL.md22## Step 2: Ask UX-Focused QuestionsCOMMENT
LOWtemplates/skills/impeccable/teach-impeccable/SKILL.md47## Step 3: Write Design ContextCOMMENT
LOWtemplates/engine/strategies/full-collaborate.md175#### Step 1: 拆分子任务COMMENT
LOWtemplates/engine/strategies/full-collaborate.md181#### Step 2: 创建 Team(必须执行)COMMENT
LOWtemplates/engine/strategies/full-collaborate.md190#### Step 3: 并行 spawn Layer 1 BuildersCOMMENT
LOWtemplates/engine/strategies/full-collaborate.md210#### Step 4: 等待 Layer 1 → spawn Layer 2COMMENT
LOWtemplates/engine/strategies/full-collaborate.md216#### Step 5: spawn Reviewer 快检COMMENT
LOWtemplates/engine/strategies/full-collaborate.md229#### Step 6: shutdown + cleanupCOMMENT
LOWsrc/commands/init.ts193 // Step 0: Language selection (FIRST interactive step)COMMENT
LOWsrc/commands/update.ts247 // Step 1: Download latest packageCOMMENT
LOWsrc/commands/update.ts277 // Step 2: Auto-migrate from old directory structure (if needed)COMMENT
LOWsrc/commands/update.ts324 // Step 3: Back up existing files (move to *.ccg-update-bak)COMMENT
LOWsrc/commands/update.ts358 // Step 4: Install new workflows using the latest version via npxCOMMENT
LOWsrc/commands/update.ts371 // Step 5: Verify new installation actually produced filesCOMMENT
LOWsrc/commands/update.ts401 // Step 6: Cleanup or rollbackCOMMENT
Modern AI Meta-Vocabulary16 hits · 43 pts
SeverityFileLineSnippetContext
MEDIUMCHANGELOG.md79- **Claude review backend could block on tool permissions (#143)** — `codeagent-wrapper`'s claude backend only added `--CODE
MEDIUMCONTRIBUTING.md41│ └── skills/ # Quality gates + orchestrationCODE
MEDIUMCLAUDE.md566 │ ├── ai/ # Agent/RAG/LLM安全/Prompt工程CODE
MEDIUMtemplates/CLAUDE.md285### orchestration/multi-agent/COMMENT
MEDIUMtemplates/CLAUDE.md285### orchestration/multi-agent/COMMENT
MEDIUMtemplates/codex/config.toml11# multi_agent_v2: structured subagent orchestration with `wait` tool.COMMENT
MEDIUMtemplates/codex/hooks/ccg-workflow.py157 # --- Cross-phase guardrails ---COMMENT
MEDIUMtemplates/skills/SKILL.md33| **Multi-Agent** | Multi-agent coordination and task decomposition | [Multi-Agent](#multi-agent-orchestration) |CODE
MEDIUMtemplates/skills/SKILL.md33| **Multi-Agent** | Multi-agent coordination and task decomposition | [Multi-Agent](#multi-agent-orchestration) |CODE
MEDIUMtemplates/skills/domains/ai/rag-system.md6# 🔮 丹鼎秘典 · RAG 系统 (Retrieval-Augmented Generation)COMMENT
MEDIUMtemplates/skills/domains/ai/rag-system.md8## RAG 架构COMMENT
MEDIUMtemplates/skills/domains/ai/rag-system.md407## 完整 RAG PipelineCOMMENT
MEDIUMtemplates/skills/domains/ai/rag-system.md421# 对话式 RAGCOMMENT
MEDIUMtemplates/skills/domains/ai/rag-system.md464## 高级 RAG 模式COMMENT
MEDIUMtemplates/skills/domains/ai/rag-system.md466### Self-RAG(自我反思)COMMENT
MEDIUMtemplates/skills/domains/ai/agent-dev.md83## RAG 系统COMMENT
Magic Placeholder Names4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHCHANGELOG.md1139 "GEMINI_API_KEY": "your-api-key",CODE
HIGHCHANGELOG.md1140 "GOOGLE_API_KEY": "your-api-key"CODE
HIGHtemplates/skills/domains/ai/rag-system.md252co = cohere.Client("YOUR_API_KEY")CODE
HIGHsrc/utils/mcp.ts119 placeholder: string = 'YOUR_API_KEY',CODE
Verbosity Indicators7 hits · 11 pts
SeverityFileLineSnippetContext
LOWsrc/commands/init.ts193 // Step 0: Language selection (FIRST interactive step)COMMENT
LOWsrc/commands/update.ts247 // Step 1: Download latest packageCOMMENT
LOWsrc/commands/update.ts277 // Step 2: Auto-migrate from old directory structure (if needed)COMMENT
LOWsrc/commands/update.ts324 // Step 3: Back up existing files (move to *.ccg-update-bak)COMMENT
LOWsrc/commands/update.ts358 // Step 4: Install new workflows using the latest version via npxCOMMENT
LOWsrc/commands/update.ts371 // Step 5: Verify new installation actually produced filesCOMMENT
LOWsrc/commands/update.ts401 // Step 6: Cleanup or rollbackCOMMENT
Excessive Try-Catch Wrapping5 hits · 6 pts
SeverityFileLineSnippetContext
LOWtemplates/codex/hooks/ccg-workflow.py63 except Exception:CODE
LOWtemplates/codex/hooks/ccg-workflow.py108 except Exception:CODE
LOWtemplates/codex/hooks/ccg-workflow.py261 except Exception:CODE
MEDIUMtemplates/codex/hooks/ccg-workflow.py228def main():CODE
LOWtemplates/skills/domains/security/red-team.md43 except Exception as e:CODE
Hyper-Verbose Identifiers6 hits · 5 pts
SeverityFileLineSnippetContext
LOWsrc/utils/installer-template.ts205export function replaceHomePathsInTemplate(content: string, installDir: string): string {CODE
LOWsrc/utils/installer-mcp.ts302async function getCcgMcpServersFromClaude(): Promise<Record<string, any>> {CODE
LOWsrc/utils/installer.ts169async function downloadBinaryFromRelease(binaryName: string, destPath: string): Promise<boolean> {CODE
LOWsrc/utils/installer.ts453async function installSkillGeneratedCommands(ctx: InstallContext): Promise<void> {CODE
LOWsrc/utils/installer.ts754export function showBinaryDownloadWarning(binDir: string): void {CODE
LOWsrc/commands/config-mcp.ts129async function handleInstallContextWeaver(): Promise<void> {CODE
Unused Imports4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtemplates/codex/hooks/ccg-workflow.py12CODE
LOWtemplates/codex/hooks/ccg-workflow.py13CODE
LOWtemplates/codex/hooks/ccg-workflow.py15CODE
LOWtemplates/codex/hooks/ccg-workflow.py16CODE
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtemplates/codex/config.toml1# CCG Codex Project ConfigurationCOMMENT
LOWsrc/utils/installer-template.ts101 // Gemini model flag — inject at install time with line-aware substitution.COMMENT
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtemplates/codex/hooks/ccg-workflow.py68CODE