@@ -14,15 +14,16 @@ Codex Self-Evolution Plugin 是一个本地优先的 Codex 自我进化层。
1414
1515它解决的问题很直接:Codex 能完成当前任务,但默认不会把这次任务里学到的用户偏好、项目经验、排查路径和可复用流程带到下一次会话。
1616
17- 这个插件通过 Codex lifecycle hooks、后台 reviewer、定时 compiler 和标准 Codex Skills,把一次会话里的有效经验沉淀为下一次会话可以直接使用的上下文。
17+ 这个插件通过 Codex lifecycle hooks、后台 reviewer、定时 compiler、独立 skill synthesis 和标准 Codex Skills,把一次会话里的有效经验沉淀为下一次会话可以直接使用的上下文。
1818
1919核心闭环:
2020
2121``` text
2222SessionStart 注入背景
2323 -> Codex 正常工作
2424 -> Stop 阶段复盘会话
25- -> Compiler 晋升 memory / recall / skills
25+ -> Compiler 晋升 memory / recall
26+ -> Skill Synthesis 生成 csep-synth-* skills
2627 -> 下一次 Codex 会话自动获得更好的上下文
2728```
2829
@@ -115,6 +116,23 @@ scripts/uninstall-scheduler.sh
115116scripts/uninstall-codex-hook.sh
116117```
117118
119+ ### 安装 Skill Synthesis 调度器
120+
121+ Compiler 不再创建 generated skills,只负责晋升 memory 和 recall。可复用流程 skill 由独立全局命令合成:
122+
123+ ``` bash
124+ codex-self-evolution skill-synthesize --mode full --lookback-days 30 --dry-run
125+ codex-self-evolution skill-synthesize --mode incremental --lookback-hours 24
126+ ```
127+
128+ 安装独立的 4 小时 launchd 任务:
129+
130+ ``` bash
131+ scripts/install-skill-synthesis-scheduler.sh
132+ ```
133+
134+ Synthesized skills 只写入 ` ~/.codex/skills/csep-synth-* ` 。既有 ` csep-* ` compiler skills 是 legacy read-only artifacts。
135+
118136## 快速开始
119137
120138### 1. 检查运行状态
@@ -179,7 +197,8 @@ bucket 连续 drain 几轮,避免 5 分钟定时造成积压。如需回退旧
179197| --- | --- | --- |
180198| SessionStart | 读取稳定背景和 recall contract,注入当前会话 | ` USER.md ` 、` MEMORY.md ` 、recall policy |
181199| Stop Review | 对本次会话做结构化复盘 | pending ` SuggestionEnvelope ` |
182- | Compile | 批量归纳并晋升建议 | memory、recall、managed skills、receipt |
200+ | Compile | 批量归纳并晋升建议 | memory、recall、receipt |
201+ | Skill Synthesis | 周期性扫描历史证据并合成可复用流程 | ` ~/.codex/skills/csep-synth-* ` 、synthesis receipt |
183202| Next Session | 下次会话自动读取有效资产 | 更准的背景、更少重复解释 |
184203
185204![ Codex Self Evolution promotion pipeline] ( docs/assets/readme-compiler-promotion.png )
@@ -189,12 +208,17 @@ bucket 连续 drain 几轮,避免 5 分钟定时造成积压。如需回退旧
189208``` text
190209~/.codex-self-evolution/
191210├── .env.provider
211+ ├── skill_synthesis/
212+ │ ├── runs/
213+ │ ├── receipts/
214+ │ ├── evidence_index.json
215+ │ └── last_receipt.json
192216└── projects/
193217 └── -Users-you-code-repo/
194218 ├── suggestions/{pending,processing,done,failed,discarded}/
195219 ├── memory/
196220 ├── recall/
197- ├── skills/managed/
221+ ├── skills/managed/ # legacy compiler skill artifacts
198222 ├── compiler/
199223 ├── review/snapshots/
200224 └── scheduler/
@@ -208,7 +232,7 @@ bucket 连续 drain 几轮,避免 5 分钟定时造成积压。如需回退旧
208232| --- | --- |
209233| Memory | 长期稳定事实,例如用户偏好、环境约束、项目习惯。 |
210234| Recall | 与具体项目 / 任务相关的历史经验,用于按需召回。 |
211- | Generated Skills | 可复用操作流程,会投影到 ` ~/.codex/skills/csep-<skill-id>/SKILL.md ` ,让 Codex 像普通 skill 一样加载。 |
235+ | Generated Skills | 可复用操作流程,由 ` skill-synthesize ` 写入 ` ~/.codex/skills/csep-synth-* ` ,让 Codex 像普通 skill 一样加载。 |
212236| Receipts | compiler 执行记录,用于审计和排查。 |
213237| Review snapshots | Stop 阶段的标准化输入快照,用于复盘 reviewer 质量。 |
214238
0 commit comments