为什么需要
传统开发是「债务型」:每个 feature 加复杂度,每个 bug 修完留下一段没人懂的本地知识,下次改更慢。Compound Engineering 反过来——80% 时间做 brainstorm 和 plan,20% 才动手写代码,每个循环的产出自动沉淀给下一个循环。
核心是 6 步闭环:
/ce-brainstorm交互式问答,明确需求/ce-plan把需求拆成具体实施计划/ce-work在 worktree 里执行计划/ce-simplify-code简化刚写的代码/ce-code-review多 Agent 互相 Review/ce-compound把这次学到的写进docs/solutions/,下次自动读
第二条箭头是核心:今天 compound 写的 note,下周 brainstorm 和 plan 会自动读它,循环累加。每个 cycle 变简单,Agent 不需要重新学同一课。
怎么用
按官方文档装到 Claude Code:
/plugin marketplace add EveryInc/compound-engineering-plugin
/plugin install compound-engineering@compound-engineering
装完直接 /ce-ideate new drawing tools 启动。
插件同时支持 Codex、Cursor、OpenCode、GitHub Copilot 等主流编码 Agent。
配套技能
/ce-strategy上游锚点:维护STRATEGY.md,作为 ideate / brainstorm 的 grounding/ce-ideate没方向时先生成 5 个候选 idea 并打分/ce-debug修 bug 而非 feature 时跳过 brainstorm → plan/ce-product-pulse外圈:周期生成用户实际体验报告(usage、performance、errors)
使用案例
出海内容团队的周迭代:周一 /ce-product-pulse 看上周用户行为数据,自动生成 docs/pulse-reports/week-24.md;周二 /ce-ideate 基于报告产出 5 个新功能 idea,选最强的进 /ce-brainstorm;周三 /ce-plan 出实施方案;周四 /ce-work + /ce-simplify-code;周五 /ce-code-review + /ce-compound,沉淀这周学到的所有 pattern 到 docs/solutions/。下周的 brainstorm 直接读到这些 note,跳过重复学习。
注意事项
- 完全免费开源(MIT)
- 需要 Claude Code / Codex / Cursor 之一
- 第一次用会感觉「仪式感重」,但 2-3 个 cycle 后会发现循环本身就是知识积累
- 与 gstack、Ponytail 同类但更全面,倾向规格驱动 + 知识沉淀