AntiStallCodex uses Codex's lifecycle hook system instead of relying on the model to remember a rule while context gets crowded.
What it stops
The polite progress summary that quietly abandons the sprint.
Users arm it with one phrase: AntistallON. Turning it off is just as plain: AntistallOFF.
The hook installs globally, but it only acts when a sprint is armed for the current project directory.
Stop-hook flow
Stopping becomes a deliberate ticket, not a drift.
Without the gate
- Codex summarizes work while unfinished tasks remain.
- The session stops at a convenient boundary.
- The human returns to a half-finished job.
With AntiStallCodex
- The Stop hook checks for an armed sprint.
- No ticket means Codex gets a continuation prompt.
- Legitimate stops are logged as Done, Blocked, or Question.
Desktop ritual
Two words for the part you actually touch.
AntistallON
Arm a sprint with the specific outcome Codex should reach before stopping.
active sprintDone
Allow a clean stop when all authorized work is complete and verified.
disarmsBlocked
Allow a stop only when a human-only decision, credential, or external system prevents useful progress.
stays explicitAntistallOFF
Turn the gate off for the current project whenever you want normal stopping behavior.
off switchInstall
Clone, install, trust the hook.
git clone https://github.com/scottconverse/antistallcodex.git
python antistallcodex/install.py
# In Codex Desktop:
# open /hooks and trust AntiStallCodex
AntistallON: finish this task completely before stopping.
AntistallOFF