多模型协作工作流引擎 — /ccg:go 一个命令,AI 自动分析意图、选择策略、编排 Codex + Gemini + Claude 协作执行
> /plugin marketplace add fengshao1227/ccg-workflow> /plugin install ccg@ccg
Repo: fengshao1227/ccg-workflow
What's inside
简体中文 | English | Documentation
Thanks to PackyCode for sponsoring this project! PackyCode is a stable, high-throughput API gateway for leading models — one domain, one key, automatic failover, 97% availability. Dedicated high-speed routes for Codex and Claude Code. Pay in RMB 1:1 with no FX markup or top-up fees; new users get a first-charge discount plus $1 in free credits, and eligible groups start from 20% of list price. Sign up here to get started.
💡 PackyCode also exposes an Anthropic-compatible endpoint, so it can serve as your API provider for Claude Code itself — run
npx ccg-workflow, pick PackyCode at Step 1, and paste your key.
Thanks to APIMart for sponsoring this project! APIMart is a low-cost API platform for AI image & video generation — GPT-Image-2 from $0.006/image, 160+ images per dollar. One async API covers both image and video: submit a task, get an ID, fetch results via polling or callback. Batch tens of thousands of images without timeouts, switch models without changing code. Pay-as-you-go with no monthly fee — sign up here to get started.
💡 APIMart also exposes an Anthropic-compatible endpoint, so it can serve as your API provider for Claude Code itself — run
npx ccg-workflow, pick APIMart at Step 1, and paste your key.
Gamma Remover — Free browser-local Gamma watermark remover for PDF & PPTX. No signup, instant results, 100% private. Your files never leave your device.
Install native skills independently, or select them during the CCG setup wizard. Each selected skill gets a ccg- entry; its scripts and references live in a versioned source cache.
npx ccg-workflow skills catalog
npx ccg-workflow skills install verify-quality seo-page-builder
npx ccg-workflow skills list --installed --json
npx ccg-workflow skills update
npx ccg-workflow skills remove seo-page-builder
# Codex native skills
npx ccg-workflow skills install verify-quality --target codex
# Configure the framework with a saved selection
npx ccg-workflow init --skills verify-quality,verify-security
npx ccg-workflow doctor --json
Claude Code uses /ccg-verify-quality; Codex uses $ccg-verify-quality. The manager exposes only selected entries, keeps supporting resources together, refuses ownership conflicts and preserves edited caches. The menu has S. Manage Skills and V. Doctor. Reinstalling retains the latest selection; --skills all selects the catalog and --skills none selects none. Existing full installations remain available as compatibility mode.
doctor --json returns a versioned report with check IDs, status, remediation, and failure/warning counts. It detects the actual Claude/Codex/Skills-only mode, validates the selected backends (including review routes), Hook registrations and managed skills. Failures exit with code 1. Version and filesystem checks establish configuration health; they do not call a model or prove vendor API access.
Standalone Codex mode checks its own CLI, configuration and installed files. Missing shared Claude routing is optional; missing external delegation tools are reported as warnings with setup instructions.
Model-action Hooks now follow the configured routes and concrete model IDs, avoid duplicate calls to one backend, and use native Agents for pure Claude setups. Native mode uses on-demand skill discovery; legacy knowledge excerpts have a fixed size limit.
Configure your provider in OpenCode with /connect, then query opencode models (or opencode models deepseek) for its actual model IDs. In CCG's model menu choose OpenCode and enter that provider/model. Keep Claude Code as the coordinator; the worker runs through the existing wrapper. CCG preserves the chosen model when changing routing, reinstalling or updating, and does not manage the provider credentials.
dsh-ccgThe same role matrix, running natively inside DeepSeek Harness. It ships inside this package — no second install, no second version to track.
npx ccg-workflow dsh install # every profile found; --profile <name> for one
npx ccg-workflow dsh list # which profiles have it
Or pick D. DeepSeek Harness from npx ccg-workflow.
Requires dsh 0.2.0-rc.2 or 0.2.1-alpha.2. After updating CCG, run npx ccg-workflow@latest dsh install again and restart dsh. Configuration now belongs to each profile's cordis.patch.yml; the CCG card is in Settings › Built-in plugins.
Seven role-pinned delegation tools, each on its own model with its own expert persona — and two things the Claude Code side cannot do as cleanly:
ccg_team hires a role as a colleague that stays alive across turns, owns its own files (a colliding hire is refused, not warned about), and reports back on its own. Every hire asks you to approve it first.No external CLI, no binary bridge, no cold-start tax — every hop is a provider API request. Source lives in dsh-ccg/; full README →
DSH Marketplace — a directory of DeepSeek Harness plugins. 2,500+ indexed across 14 categories, bilingual EN / 中文.
Not a sponsor — same author as CCG, built out of a plain annoyance: DSH plugins are multiplying fast, but figuring out what one does, whether it still installs, and what the command actually is meant opening one GitHub README after another. So the install commands here are put through a throwaway container first. A plugin only gets a check mark if it really installs — and if it can't, the listing says why (buried in a monorepo subdirectory, never published to npm, and so on). A verified index, not another awesome list.
dsh plugin --profile web add dshmarketplace-plugin # browse the store from inside DSH
npx dshmarketplace-cli add owner/repo # install any plugin from your shell
There is also a Python SDK and a public API. Early days — bug reports and plugin submissions are very welcome on GitHub.
CCG is a workflow engine for Claude Code. It turns Claude into a multi-model orchestrator — Claude stays in control while dispatching specialized work to Codex (OpenAI), Grok (xAI), Kimi Code (Moonshot), and Antigravity through a Go binary bridge.
One command. Describe what you want. The engine handles the rest.
npx ccg-workflow # Install in 60 seconds
Claude Code is the lead orchestrator. It analyzes your intent, selects a strategy, and manages the entire workflow. The Hook Engine injects state every turn so Claude never loses context — even after compaction. The codeagent-wrapper (a compiled Go binary) bridges Claude to external models for parallel analysis and review.
You: /ccg:go add JWT authentication to this API
CCG Engine:
1. Reads project context (git status, tech stack, file structure)
2. Classifies: feature / L complexity / backend / high risk
3. Selects strategy: full-collaborate
4. Creates .ccg/tasks/add-jwt-auth/task.json
5. Launches dual-model analysis (Codex + Gemini in parallel)
6. Produces plan → HARD STOP for your approval
7. Spawns Agent Teams Builders for parallel implementation
8. Runs quality gates + dual-model cross-review
9. Reports results
Every turn, a hook injects:
<ccg-state>
Task: add-jwt-auth (in_progress)
Strategy: full-collaborate
Phase: 4-implementation
</ccg-state>
The engine auto-selects the right strategy based on task type and complexity:
| Strategy | When | External Models | Agent Teams |
|---|---|---|---|
direct-fix | Simple bug, single file | — | — |
quick-implement | Small feature, clear scope | — | — |
guided-develop | Medium feature, needs planning | Single | — |
full-collaborate | Complex feature, multi-module | Dual parallel | ✓ |
debug-investigate | Complex bug, unknown cause | Dual diagnosis | — |
refactor-safely | Code restructuring | Dual review | — |
deep-research | Technical research | Dual exploration | — |
optimize-measure | Performance optimization | Optional | — |
review-audit | Code review | Dual cross-review | — |
git-action | commit, rollback, branches | — | — |
Simple tasks run fast with zero overhead. Complex tasks get the full engine.
4 JavaScript hooks inject state into every Claude Code session:
| Hook | Event | What it does |
|---|---|---|
workflow-state.js | Every turn | Injects current task state as breadcrumb |
session-start.js | Session start/compact | Re-injects full project context |
FAQ
ccg is a Claude Code plugin with 47 hand-picked skills for agent orchestration work, indexed on Flowy. Install it with the command on its page. It includes ccg-workflow, gen-docs, verify-change. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it