Repository navigation
SeniorOS 0.7.0
The guard and the finish gate in Codex, tested in the Codex CLI itself.
Added
- Codex plugin hooks (
adapters/codex/, declared in.codex-plugin/plugin.json):- a
SessionStarthook with the routing rules; - a
PreToolUseguard that denies destructive commands. Codex hooks cannot ask the user, so the agent is told to show what would be lost and let the user run the command; - a
Stopfinish gate that sends the agent back on failing checks, at most twice per change set.
- a
- Codex marketplace (
.agents/plugins/marketplace.json).
Fixed
- The Codex plugin no longer loads
hooks/hooks.json, the Claude Code hooks, whoseaskanswer Codex treats as an error and ignores.
Verified
In Codex CLI 0.164.0 on Windows:
- the guard blocked
git reset --hard HEAD, even when the prompt claimed the user had confirmed; - after an edit that broke a test, with the instruction not to run tests, the finish gate sent the agent back. Its final answer reported the failing test instead of "Done".
Installing from GitHub brings exactly the three SeniorOS hooks. Not yet tested: Codex on macOS and Linux.
Install
codex plugin marketplace add joshsegatt/SeniorOS
codex plugin add senioros@seniorosThen open /hooks in Codex and trust the three SeniorOS hooks.
CLI: npm install -g senioros@0.7.0