﻿---
title: "安装与更新 Compound Engineering 插件"
summary: "安装 compound-engineering@compound-engineering-plugin，通过 $ce-plan 等技能开展工作。更新时刷新插件源并重新安装。"
category: skills
level: starter
surfaces: [cli, app, ide]
tags: ["plugins", "Compound Engineering", "Skills", "marketplace"]
canonical: /tips/compound-engineering-codex-plugin/
---

# 安装与更新 Compound Engineering 插件

安装 compound-engineering@compound-engineering-plugin，通过 $ce-plan 等技能开展工作。更新时刷新插件源并重新安装。

Compound Engineering 插件用 marketplace 加 EveryInc/compound-engineering-plugin，再 plugin add compound-engineering@compound-engineering-plugin。仓库 README 给 Codex CLI 单独一节：先登记自定义 marketplace，再装插件。内置精选目录里还没有这份。

清单 `.agents/plugins/marketplace.json` 的 name 是 `compound-engineering-plugin`，插件 name 是 `compound-engineering`，所以是 `compound-engineering@compound-engineering-plugin`。

```bash
codex plugin marketplace add EveryInc/compound-engineering-plugin
codex plugin add compound-engineering@compound-engineering-plugin
codex plugin list --json
```

也可以先 `codex`，进 `/plugins`，找 Compound Engineering marketplace，选 compound-engineering，点 Install。装完重启 Codex。CLI 动词是 `plugin add`，不是 `plugin install`；

原生插件安装对 Compound Engineering 是自包含的：评审、研究那类专长写在技能里的本地 prompt 资产，**不要**再跑 `bunx @every-env/compound-plugin install compound-engineering --to codex`。npm 包和旧 issue 还写三步（marketplace + bunx 写 agents + TUI），那是 Codex 还不能 `plugin add`、自定义 agent 还要转换器时的路径。现行 README 已改成两条 `add`。

非默认 profile 时，每一步都要对同一个 `CODEX_HOME`：

```bash
CODEX_HOME="$HOME/.codex/profiles/work" codex plugin marketplace add EveryInc/compound-engineering-plugin
CODEX_HOME="$HOME/.codex/profiles/work" codex plugin add compound-engineering@compound-engineering-plugin
```

marketplace 只让插件出现在目录里；真正启用技能的是 `plugin add`。启用状态记在当前 `CODEX_HOME`（默认 `~/.codex`）。

会话里调用技能用 `$ce-plan`、`$ce-brainstorm`、`$lfg`，**不是** README 给斜杠宿主写的 `/ce-plan`。`/goal` 仍是 Codex 内置命令，不要和 CE 技能搞混。装完可在项目里跑 `$ce-setup`，缺省会写仓库 `.compound-engineering/config.yaml`。

升级必须先刷新缓存的 marketplace，再重新 `plugin add`。布局改成仓根原生、只带 skills 之后，旧 snapshot 还指着 `plugins/compound-engineering`，只刷新插件会停在旧版。Codex **没有** `plugin update`：

```bash
codex plugin marketplace upgrade compound-engineering-plugin
codex plugin add compound-engineering@compound-engineering-plugin
```

名字以 `codex plugin marketplace list` 为准。

ChatGPT 桌面 / Codex App：内置 marketplace 还没有 CE。Plugins → Create 旁箭头 → Add marketplace，Source 填 `EveryInc/compound-engineering-plugin`，Git ref `main`，Sparse paths 留空。搜 Compound Engineering 再安装。修改后需退出并重新打开桌面应用。

以前用 Bun convert / `install --to codex` 的，可能在 `$CODEX_HOME/AGENTS.md`（默认 `~/.codex/AGENTS.md`）留下 `BEGIN COMPOUND CODEX TOOL MAP` 到 `END COMPOUND CODEX TOOL MAP` 那一块。现行技能直接点 Codex 工具名，这块是过期的 Claude 兼容映射，还可能误导子代理调度。原生安装**不会**写入它。只删这一对注释之间的托管块，不要改仓库 `AGENTS.md`，也不要补一张新 map。

0.154 起可先检查当前会话；未显示插件时再新开会话。IDE 扩展没有 `/plugins`，用 CLI 加完再到 TUI 或桌面去装。网页 Cloud 不读取本机 `CODEX_HOME` 插件缓存。

## 来源

- [EveryInc/compound-engineering-plugin](https://github.com/EveryInc/compound-engineering-plugin)
- [Compound Engineering · Upgrading](https://github.com/EveryInc/compound-engineering-plugin/blob/main/docs/install/upgrading.md)
- [Every · Compound engineering](https://every.to/chain-of-thought/compound-engineering-how-every-codes-with-agents)
