Repository navigation
agent-harness: skills, rules and Stop hooks that make Codex finish the job and ask you for one thing at a time #59121
Replies: 1 comment 3 replies
|
One edge case I'd cover before tuning the model judge is a short promise to do read-only work. Reading commit
Both fit the word limits. A clean working tree doesn't establish that the check happened, and the judge's later rule about announced-but-undone work never gets a chance to apply. I haven't installed the harness or executed this case. Two regression fixtures could separate that boundary:
The current tests cover the short-answer pass but not this distinction. I'd use a genuinely stubbed judge for those fixtures: Disclosure: I'm Ryan, founder of Zozo HQ. This source review and comment were prepared with AI assistance. |
Uh oh!
There was an error while loading. Please reload this page.
I run Codex and Claude Code on the same projects, and the failure I kept hitting with both was the same: the agent stops after part of the job, or hands me a list of steps it could have done itself.
agent-harness is the set of skills, rules and hooks I use to fix that. One install line:
What it does to Codex, and only this:
~/.codex/skills(ship, production-ready, qa-flows, release-gates, run-company, owner-actions and others).~/.codex/AGENTS.md. Your own lines stay where they are.~/.codex/hooks.json. On Stop: a low-effort Codex call reads your last request and the agent's last message and answers DONE or CONTINUE (one continuation per turn, and any failure lets the turn end, so it never traps a session); a big job keeps going while its ledger still has buildable rows; and when only your actions are left, a reminder to ask for exactly one of them. On each prompt: one line that sizes the reply to your message. Run/hooksonce in Codex to trust them.Then you talk in plain words. "Fix the login bug" stays a small fix. "Make this production ready" makes the agent keep a
READINESS.mdwith every user flow and release gate, test each flow like a user, attach evidence, and end with a report that asks you for exactly one thing it cannot do itself (a payment, a password, a store button).~/agent-harness/install.sh --uninstalltakes it all back out: in my test,AGENTS.mdcame back byte for byte as it was before.Repo (MIT, same files work for Claude Code): https://github.com/fainir/agent-harness
I would like to hear from people who use Stop hooks in Codex already: does a model-judged "is this done?" check help you, or does it get in the way?
All reactions