@FakeMaidenMaker: 炸裂! compound-engineering-plugin 这个插件让代码越写越好,拒绝 AI 技术债! 它把资源分配反过来——80% 放在规划和评审,20% 才是执行。 Every 官方出品,GitHub 已经冲到 20K+ sta…
摘要
compound-engineering-plugin 是一个 AI 编程插件,通过将80%资源分配在规划与评审、20%在执行上来避免技术债,包含37个skill和51个agent,支持Claude Code、Codex、Cursor三大平台。
查看缓存全文
缓存时间: 2026/06/08 05:18
炸裂! compound-engineering-plugin 这个插件让代码越写越好,拒绝 AI 技术债!
它把资源分配反过来——80% 放在规划和评审,20% 才是执行。
Every 官方出品,GitHub 已经冲到 20K+ stars,完美支持 Claude Code、Codex、Cursor 三大平台
大部分人的代码库是这样的:项目越老,改动越怕。每加一个功能,下一次改动就慢一点。技术债不是某次偷懒的结果,是开发节奏本身在持续产出摩擦。
核心循环这样转: 先用 /ce-brainstorm 把需求交互问清楚 /ce-plan 出实现计划 /ce-work 按计划执行(带 worktree 和任务追踪) /ce-code-review 多 agent 并行评审 最后一步最有记忆点——/ce-compound,把这次踩的坑沉淀成文档,下一个 agent 进来直接获取经验。
整套插件含 37 个 skill + 51 个 agent,还带 /ce-debug(系统化复现定位修复)、/ce-strategy(维护产品战略锚点)、/ce-product-pulse(生成用户使用情况报告)。
安装也不复杂,Claude Code 里两条命令: /plugin marketplace add EveryInc/compound-engineering-plugin /plugin install compound-engineering
GitHub:
EveryInc/compound-engineering-plugin
Source: https://github.com/EveryInc/compound-engineering-plugin
Compound Engineering
AI skills and agents that make each unit of engineering work easier than the last.
Philosophy
Each unit of engineering work should make subsequent units easier – not harder.
Traditional development accumulates technical debt. Every feature adds complexity. Every bug fix leaves behind a little more local knowledge that someone has to rediscover later. The codebase gets larger, the context gets harder to hold, and the next change becomes slower.
Compound engineering inverts this. 80% is in planning and review, 20% is in execution:
- Plan thoroughly before writing code with
/ce-brainstormand/ce-plan - Review to catch issues and calibrate judgment with
/ce-code-reviewand/ce-doc-review - Codify knowledge so it is reusable with
/ce-compound - Keep quality high so future changes are easy
The point is not ceremony. The point is leverage. A good brainstorm makes the plan sharper. A good plan makes execution smaller. A good review catches the pattern, not just the bug. A good compound note means the next agent does not have to learn the same lesson from scratch.
Learn more
- Full component reference - all agents and skills
- Compound engineering: how Every codes with agents
- The story behind compounding engineering
Workflow
/ce-strategy is upstream of the loop – it captures the product’s target problem, approach, persona, metrics, and tracks as a short durable anchor at STRATEGY.md. Ideate, brainstorm, and plan read it as grounding when present, so strategy choices flow into feature conception, prioritization, and spec.
The core loop is: brainstorm the requirements, plan the implementation, work through the plan, review the result, compound the learning, then repeat with better context.
Use /ce-ideate before the loop when you want the agent to generate and critique bigger ideas before choosing one to brainstorm. It produces a ranked ideation artifact, not requirements, plans, or code.
| Skill | Purpose |
|---|---|
/ce-strategy | Create or maintain STRATEGY.md – the product’s target problem, approach, persona, key metrics, and tracks. Read as grounding by ideate, brainstorm, and plan |
/ce-ideate | Optional big-picture ideation: generate and critically evaluate grounded ideas, then route the strongest one into brainstorming |
/ce-brainstorm | Interactive Q&A to think through a feature or problem and write a right-sized requirements doc before planning |
/ce-plan | Turn feature ideas into detailed implementation plans |
/ce-work | Execute plans with worktrees and task tracking |
/ce-debug | Systematically reproduce failures, trace root cause, and implement fixes |
/ce-code-review | Multi-agent code review before merging |
/ce-compound | Document learnings to make future work easier |
/ce-product-pulse | Generate a single-page, time-windowed pulse report on usage, performance, errors, and followups. Saves to docs/pulse-reports/ |
/ce-product-pulse is the read-side companion – a time-windowed report on what users actually experienced and how the product performed over a given window (24h, 7d, etc.), saved to docs/pulse-reports/ so past pulses form a browseable timeline of user outcomes. The next strategy update and the next brainstorm get real signal to anchor to.
Each cycle compounds: brainstorms sharpen plans, plans inform future plans, reviews catch more issues, patterns get documented.
Quick Example
A typical cycle starts by turning a rough idea into a requirements doc, then planning from that doc before handing execution to /ce-work:
/ce-brainstorm "make background job retries safer"
/ce-plan docs/brainstorms/background-job-retry-safety-requirements.md
/ce-work
/ce-code-review
/ce-compound
For a focused bug investigation:
/ce-debug "the checkout webhook sometimes creates duplicate invoices"
/ce-code-review
/ce-compound
Getting Started
After installing, run /ce-setup in any project. It checks your environment, installs missing tools, and bootstraps project config.
The compound-engineering plugin currently ships 37 skills and 51 agents. See the full component reference for the complete inventory.
Install
Claude Code
/plugin marketplace add EveryInc/compound-engineering-plugin
/plugin install compound-engineering
Cursor
In Cursor Agent chat, install from the plugin marketplace:
/add-plugin compound-engineering
Or search for “compound engineering” in the plugin marketplace.
Codex
Three steps: register the marketplace, install the agent set, then install the plugin through Codex’s TUI.
-
Register the marketplace with Codex:
codex plugin marketplace add EveryInc/compound-engineering-plugin -
Install the Compound Engineering agents (Codex’s plugin spec does not register custom agents yet):
bunx @every-env/compound-plugin install compound-engineering --to codex -
Install the plugin through Codex’s TUI: launch
codex, run/plugins, find the Compound Engineering marketplace, select the compound-engineering plugin, and choose Install. Restart Codex after install completes. Codex’s CLI can register marketplaces, but it does not currently expose a plugin-install subcommand for plugins from an added marketplace – the/pluginsTUI install is required for CE skills.
All three steps are needed. The marketplace registration plus TUI install handles skills; the Bun step adds the review, research, and workflow agents that skills like $ce-code-review, $ce-plan, and $ce-work spawn in Codex. Without the agent step, delegating skills will report missing agents.
For a non-default Codex profile, run every Codex-related step against the same CODEX_HOME. This example installs CE into a work profile:
CODEX_HOME="$HOME/.codex/profiles/work" codex plugin marketplace add EveryInc/compound-engineering-plugin
CODEX_HOME="$HOME/.codex/profiles/work" bunx @every-env/compound-plugin install compound-engineering --to codex
CODEX_HOME="$HOME/.codex/profiles/work" codex
Inside Codex, run /plugins, select Compound Engineering, then install compound-engineering. The marketplace step only makes the plugin available; the TUI install is what activates the native CE skills for that profile.
For local development from this checkout, register the current worktree and use the local CLI:
CODEX_HOME="$HOME/.codex/profiles/work" codex plugin marketplace add "$PWD"
CODEX_HOME="$HOME/.codex/profiles/work" bun run src/index.ts install ./plugins/compound-engineering --to codex
CODEX_HOME="$HOME/.codex/profiles/work" codex
Heads up: once Codex’s native plugin spec supports custom agents, the Bun agent step goes away. The TUI install alone will be sufficient.
If you previously used the Bun-only Codex install, back up stale CE artifacts before switching:
bunx @every-env/compound-plugin cleanup --target codex
GitHub Copilot
For VS Code Copilot Agent Plugins:
- Run
Chat: Install Plugin from Sourcefrom the VS Code command palette - Use
EveryInc/compound-engineering-pluginfor the repo - Select
compound-engineeringwhen VS Code shows the plugins in this repository
For Copilot CLI, use:
Inside Copilot CLI:
/plugin marketplace add EveryInc/compound-engineering-plugin
/plugin install compound-engineering@compound-engineering-plugin
From a shell with the copilot binary:
copilot plugin marketplace add EveryInc/compound-engineering-plugin
copilot plugin install compound-engineering@compound-engineering-plugin
Copilot CLI reads the existing Claude-compatible plugin manifests, so no separate Bun install step is needed.
If you previously used the old Bun Copilot install, back up stale CE artifacts before switching to the native plugin:
bunx @every-env/compound-plugin cleanup --target copilot
Factory Droid
From a shell with the droid binary:
droid plugin marketplace add https://github.com/EveryInc/compound-engineering-plugin
droid plugin install compound-engineering@compound-engineering-plugin
Droid uses plugin@marketplace plugin IDs; here compound-engineering is the plugin and compound-engineering-plugin is the marketplace name. Droid installs the existing Claude Code-compatible plugin and translates the format automatically, so no Bun install step is needed.
If you previously used the old Bun Droid install, back up stale CE artifacts before switching to the native plugin:
bunx @every-env/compound-plugin cleanup --target droid
Qwen Code
qwen extensions install EveryInc/compound-engineering-plugin:compound-engineering
Qwen Code installs Claude Code-compatible plugins directly from GitHub and converts the plugin format during install, so no Bun install step is needed.
If you previously used the old Bun Qwen install, back up stale CE artifacts before switching to the native extension:
bunx @every-env/compound-plugin cleanup --target qwen
OpenCode, Pi, Gemini, and Kiro
This repo includes a Bun/TypeScript installer that converts the Compound Engineering plugin to OpenCode, Pi, Gemini CLI, and Kiro CLI.
bunx @every-env/compound-plugin install compound-engineering --to opencode
bunx @every-env/compound-plugin install compound-engineering --to pi
bunx @every-env/compound-plugin install compound-engineering --to gemini
bunx @every-env/compound-plugin install compound-engineering --to kiro
Pi prerequisites. Pi does not ship a native subagent primitive, so the Pi install depends on nicobailon/pi-subagents (required) and recommends edlsh/pi-ask-user for richer blocking user questions:
pi install npm:pi-subagents # required — provides the `subagent` tool used by skills that dispatch parallel agents
pi install npm:pi-ask-user # recommended — provides the `ask_user` tool; skills fall back to numbered options in chat when it is missing
To auto-detect custom-install targets and install to all:
bunx @every-env/compound-plugin install compound-engineering --to all
The custom install targets run CE legacy cleanup during install. To run cleanup manually for a specific target:
bunx @every-env/compound-plugin cleanup --target codex
bunx @every-env/compound-plugin cleanup --target opencode
bunx @every-env/compound-plugin cleanup --target pi
bunx @every-env/compound-plugin cleanup --target gemini
bunx @every-env/compound-plugin cleanup --target kiro
bunx @every-env/compound-plugin cleanup --target copilot # old Bun installs only
bunx @every-env/compound-plugin cleanup --target droid # old Bun installs only
bunx @every-env/compound-plugin cleanup --target qwen # old Bun installs only
bunx @every-env/compound-plugin cleanup --target windsurf # deprecated legacy installs only
Cleanup moves known CE artifacts into a compound-engineering/legacy-backup/ directory under the target root.
Local Development
bun install
bun test
bun run release:validate
From your local checkout
For active development – edits to the plugin source are reflected immediately.
Claude Code – add a shell alias so your local copy loads alongside your normal plugins:
alias cce='claude --plugin-dir ~/Code/compound-engineering-plugin/plugins/compound-engineering'
Run cce instead of claude to test your changes. Your production install stays untouched.
Codex and other targets – run the local CLI against your checkout:
# from the repo root
bun run src/index.ts install ./plugins/compound-engineering --to codex
# same pattern for other targets
bun run src/index.ts install ./plugins/compound-engineering --to opencode
From a pushed branch
For testing someone else’s branch or your own branch from a worktree, without switching checkouts. Uses --branch to clone the branch to a deterministic cache directory.
Unpushed local branches: If the branch exists only in a local worktree and has not been pushed, point
--plugin-dirdirectly at the worktree path instead (e.g.claude --plugin-dir /path/to/worktree/plugins/compound-engineering).
Claude Code – use plugin-path to get the cached clone path:
# from the repo root
bun run src/index.ts plugin-path compound-engineering --branch feat/new-agents
# Output:
# claude --plugin-dir ~/.cache/compound-engineering/branches/compound-engineering-feat~new-agents/plugins/compound-engineering
The cache path is deterministic. Re-running updates the checkout to the latest commit on that branch.
Codex, OpenCode, and other targets – pass --branch to install:
# from the repo root
bun run src/index.ts install compound-engineering --to codex --branch feat/new-agents
# works with any target
bun run src/index.ts install compound-engineering --to opencode --branch feat/new-agents
# combine with --also for multiple targets
bun run src/index.ts install compound-engineering --to codex --also opencode --branch feat/new-agents
Both features use the COMPOUND_PLUGIN_GITHUB_SOURCE env var to resolve the repository, defaulting to https://github.com/EveryInc/compound-engineering-plugin.
Shell aliases
Add to ~/.zshrc or ~/.bashrc. All aliases use the local CLI so there is no dependency on npm publishing. plugin-path prints just the path to stdout, so it composes with $().
CE_REPO=~/Code/compound-engineering-plugin
ce-cli() { bun run "$CE_REPO/src/index.ts" "$@"; }
# --- Local checkout (active development) ---
alias cce='claude --plugin-dir $CE_REPO/plugins/compound-engineering'
codex-ce() {
ce-cli install "$CE_REPO/plugins/compound-engineering" --to codex "$@"
}
# --- Pushed branch (testing PRs, worktree workflows) ---
ccb() {
claude --plugin-dir "$(ce-cli plugin-path compound-engineering --branch "$1")" "${@:2}"
}
codex-ceb() {
ce-cli install compound-engineering --to codex --branch "$1" "${@:2}"
}
Usage:
cce # local checkout with Claude Code
codex-ce # install local checkout to Codex
ccb feat/new-agents # test a pushed branch with Claude Code
ccb feat/new-agents --verbose # extra flags forwarded to claude
codex-ceb feat/new-agents # install a pushed branch to Codex
Codex installs keep generated plugin skills isolated under ~/.codex/skills/compound-engineering/ and do not write new files into ~/.agents. The installer removes old CE-managed .agents/skills symlinks when it can prove they point back to CE’s Codex-managed store, which prevents stale Codex installs from shadowing Copilot’s native plugin install.
Troubleshooting
Codex skills work but review or research delegation fails
Run the agent install step:
bunx @every-env/compound-plugin install compound-engineering --to codex
Native Codex plugin install handles skills. The Bun step installs the custom agents those skills delegate to.
Codex shows stale or duplicate CE skills
Back up old Bun-installed artifacts before switching to the native Codex plugin flow:
bunx @every-env/compound-plugin cleanup --target codex
Copilot, Droid, or Qwen loads stale CE skills
Back up old Bun-installed artifacts before using the native plugin path:
bunx @every-env/compound-plugin cleanup --target copilot
bunx @every-env/compound-plugin cleanup --target droid
bunx @every-env/compound-plugin cleanup --target qwen
Limitations
Codex native plugin install currently handles skills, not custom agents. The documented Bun followup is required until Codex supports agents in its native plugin spec.
OpenCode, Pi, Gemini, and Kiro installs are converter-backed and may change as those target formats evolve.
Release versions are owned by release automation. Routine feature PRs should not hand-bump plugin or marketplace manifest versions.
FAQ
Do I need Bun for Claude Code?
No. Claude Code installs directly from the plugin marketplace. Bun is only needed for converter-backed targets, Codex’s current agent followup, local development, and cleanup of old converted installs.
Why does Codex need a separate Bun step?
Codex’s native plugin flow installs skills from the Codex plugin manifest. It does not currently install the custom reviewer, researcher, and workflow agents that Compound Engineering skills delegate to. The Bun step fills that gap.
Where do I see all available skills and agents?
Read the Compound Engineering plugin README. It lists the current skill and agent inventory.
Where is release history?
GitHub Releases are the canonical release-notes surface. The root CHANGELOG.md points to that history.
Contributing
Contributions are welcome. Issues, bug reports, and pull requests all help make this better, and we genuinely appreciate them — bug reports especially.
A note on what to expect: Compound Engineering is opinionated by design. It’s maintained by @kieranklaassen and @tmchow, and its direction reflects a specific point of view about how AI-assisted engineering should work. So while we welcome help, we can’t promise to accept every change — some proposals won’t fit that vision even when they’re good ideas on their own.
Open an issue or send a PR, and we’ll fold in what moves the plugin in the right direction. We just want to be upfront that not everything will land.
License
相似文章
@VincentLogic: 发现个十万星级炸裂开源项目! agency-agents —— 直接给你配140个AI员工的“数字机构”,GitHub 近十万 star 不是吹的! 这可不是单个 AI 工具,而是一整套岗位说明书级别的多智能体集合: 14 个部门全覆盖:…
介绍一个GitHub近十万星的开源项目agency-agents,它提供涵盖14个部门的140个专业化AI员工角色,可直接集成到Claude Code等AI编程助手中使用。
@sitinme: 一个给 Claude Code 装了一套“增强插件包”的开源项目——oh-my-claudecode,把原本单兵作战的 Claude Code,升级成更像一个有分工、有流程、有自动化能力的 AI 开发团队。 很多人用 Claude Cod…
oh-my-claudecode 是一个开源项目,为 Claude Code 提供增强插件包,将其升级为具备任务分工、自动化流程和团队协作能力的 AI 开发团队,适合重度用户和复杂项目。
@chenggeshuo: 装上这个官方插件,Claude Code直接脱胎换骨! Anthropic悄悄放了个大招:claude-code-setup插件,把原生版从"能用"直接拉满到"神级开发环境"。自动扫描你的项目,一键配置hooks、skills、MCP服务…
Anthropic发布了claude-code-setup官方插件,可以自动扫描项目并配置hooks、skills、MCP服务等,将Claude Code从基础可用提升为强大的开发环境。
@nurijanian: 我最喜欢的AI工程技能: - Compound Engineering: https://github.com/EveryInc/compound-engineering-plugin……
本文介绍了Compound Engineering,这是一个用于AI辅助软件开发的插件,强调规划、审查和编码化以降低技术债务。
@ai_super_niko: 1/5 用 Claude Code 写代码,切到 Codex 做 review,再切回来改。 每次切换都是一次思路谋杀。 你不是在写代码,你在疲于奔命。 直到 OpenAI 给竞争对手 Claude Code,出了一个官方插件:`code…
OpenAI 为竞争对手 Claude Code 推出了官方插件 codex-plugin-cc,用于在 Claude Code 中集成 Codex 进行代码审查,引发了关于工作流切换效率的讨论。