CCG is a command-line workflow engine that coordinates Claude, Codex, Gemini, and other models as specialized collaborators on coding tasks. It is used to analyze requests, choose a strategy, delegate work to model-specific roles, and combine their results. The catalogue entries provide the skills, commands, agents, and plugin that implement this workflow.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/fengshao1227/ccg-workflowWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/fengshao1227/ccg-workflow/rollback)<a href="https://agentmods.dev/commands/fengshao1227/ccg-workflow/rollback"><img src="https://agentmods.dev/badge/commands/fengshao1227/ccg-workflow/rollback/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/fengshao1227/ccg-workflow/rollback"><img src="https://agentmods.dev/badge/commands/fengshao1227/ccg-workflow/rollback.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00022 | $0.00769 |
| Opus 5.5 | $0.00009 | $0.00308 |
| Sonnet 5.5 | $0.00004 | $0.00154 |
| Haiku 4.5 | $0.00002 | $0.00077 |
Grade A, and why
rollback scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
Copies of this mod
1 near-identical copy found in the catalogue:
- rollback — 100% identical, 0 lines differ
What it actually says
Rollback - 交互式 Git 回滚
安全地将分支回滚到指定历史版本,默认 dry-run 模式。
使用方法
/rollback [options]
选项
| 选项 | 说明 |
|---|---|
--branch <branch> |
要回滚的分支 |
--target <rev> |
目标版本(commit/tag/reflog) |
--mode reset|revert |
回滚模式 |
--depth <n> |
列出最近 n 个版本(默认 20) |
--dry-run |
只预览,不执行(默认) |
--yes |
跳过确认直接执行 |
执行工作流
🔍 阶段 1:同步远端
[模式:准备]
git fetch --all --prune
📋 阶段 2:选择分支
[模式:选择]
- 列出本地 + 远端分支
- 过滤受保护分支
- 用户选择或使用
--branch参数
📜 阶段 3:选择版本
[模式:选择]
- 显示最近 N 个版本(
git log --oneline) - 显示相关 tags(
git tag --merged) - 用户选择或使用
--target参数
⚙️ 阶段 4:选择模式
[模式:决策]
| 模式 | 说明 | 推送方式 |
|---|---|---|
reset |
硬回滚,改变历史 | --force-with-lease |
revert |
生成反向提交,保留历史 | 普通 push |
⛔ 阶段 5:最终确认
[模式:确认]
显示即将执行的命令,等待用户确认(除非 --yes)。
✅ 阶段 6:执行回滚
[模式:执行]
reset 模式:
git switch <branch>
git reset --hard <target>
revert 模式:
git switch <branch>
git revert --no-edit <target>..HEAD
安全护栏
- 备份:执行前自动记录当前 HEAD 到 reflog
- 保护分支:
main/master/production需额外确认 - dry-run 默认:防止误操作
- 禁止 --force:如需强推,手动执行
示例
# 全交互模式(dry-run)
/rollback
# 指定分支
/rollback --branch dev
# 完整指定,一键执行
/rollback --branch main --target v1.2.0 --mode reset --yes
# 生成反向提交
/rollback --branch release/v2.1 --target v2.0.5 --mode revert
注意事项
- reset vs revert:reset 改变历史,需强推;revert 更安全
- LFS/子模块:回滚前确保状态一致
- CI 触发:回滚后可能自动触发流水线
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 117 lines · 22 tokens per session scan A 26734c16106e
rollback is a command published in the GitHub repository fengshao1227/ccg-workflow (5,943 stars, last pushed 2d ago), licensed MIT. It adds 22 tokens to every session and 769 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
implement-issue
Implement a GitHub issue or GitLab issue and create a PR/MR.
respond-github
Respond to a GitHub issue/PR or GitLab issue/MR.
resolve-pr
Resolve PR review feedback — fetch unresolved threads, triage, dispatch resolver agents, reply + resolve via GraphQL.
ship
Ship: review gate, tests, version bump, changelog, conventional commit, docs update, PR. Complete pipeline from done to merged.
analyze-git
Perform a comprehensive analysis of the git repository to identify branches and worktrees that can be cleaned up. This is a READ-ONLY analysis - no deletions will be performed.
release-swarm
Orchestrate complex software releases using AI swarms that handle everything from changelog generation to multi-platform deployment.