Make Codex integration skill-first

This commit is contained in:
Kirill Kostarev
2026-06-12 16:51:54 +03:00
committed by carpedkm
parent 1b2652c6f8
commit 1953484822
8 changed files with 100 additions and 71 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ Synthesizes SkillOpt (validation-gated bounded text edits), Claude Dreams
Shipped as plugins for **three agents**, one engine + three thin shells:
- **Claude Code** — `.claude-plugin` + `/sleep` command + skill + hooks
- **Codex** — `~/.codex/prompts/sleep.md` + `~/.agents/skills` + `install.sh`
- **Codex** — user-level `skillopt-sleep` skill + shared runner + `install.sh`
- **Copilot** — a stdlib-only MCP server exposing `sleep_*` tools
## Design notes
+2 -2
View File
@@ -23,7 +23,7 @@ from scratch for this test. Two forms were used:
| Shell | What was run | Result |
|---|---|---|
| **Claude Code** (`scripts/sleep.sh`) | `harvest`, full `run`, `adopt` | harvest found 2 sessions → 2 tasks; `run` staged a proposal; `adopt` honored the safety contract (no live change when nothing was accepted) |
| **Codex** (`install.sh` + shared runner) | `install.sh` into a temp HOME | placed `~/.codex/prompts/sleep.md` and `~/.agents/skills/skillopt-sleep/SKILL.md` correctly |
| **Codex** (`install.sh` + shared runner) | `install.sh` into a temp HOME | placed the user-level `~/.agents/skills/skillopt-sleep/SKILL.md` skill correctly and did not install a deprecated custom prompt |
| **Copilot** (`mcp_server.py`) | `initialize``tools/list``tools/call sleep_harvest` | 5 tools listed; `sleep_harvest` returned real engine output (2 sessions → 2 tasks) |
### Genuine improvement (real model, fresh persona)
@@ -71,6 +71,6 @@ Shell checks:
# Copilot MCP server
printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' \
| SKILLOPT_SLEEP_REPO="$(pwd)" python3 plugins/copilot/mcp_server.py
# Codex installer (into a throwaway HOME)
# Codex skill installer (into a throwaway HOME)
HOME=$(mktemp -d) bash plugins/codex/install.sh
```