A real Codex workflow
Run Agent Immune System, inspect the findings, apply the patch, then compare completion time.
demo/workflow/*
Codex session
Use agent immune system to audit demo/workflow/AGENTS.before.md. Do not edit yet.
Instruction Health Score: 58/100. I found 4 instruction-health issues.
F1 shell rules block safe discovery -> Regenerate
F2 git/worktree rules overlap -> Regenerate
F3 browser proof rules are global -> Demote
F4 every mistake becomes a rule -> Replace
Apply the recommended instruction-health patch.
Applied patch: deleted 16 narrow rules, added 4 durable principles, kept active edits proposal-first.
Show before/after workflow impact.
Demo replay: completion time dropped from 8m20s to 5m00s. Agent interruptions dropped from 5 to 1.
Agent Immune System audit58/100
FindingRouteWhy
Shell rules block read-only discoveryRegenerateProtection became paralysis
Six git rules repeat one safety goalRegenerateDuplicate instruction cluster
Browser proof detail is globalDemoteBelongs in proof workflow
Every mistake becomes permanentReplaceCreates prompt scar tissue
Patch applied16 rules -> 4 principles

Before

- Never run commands without asking first.
- Always ask before reading files.
- Stop and ask before using rg.
- Always check the branch before editing.
- Always verify git status before editing.
- Stop if the worktree is dirty.
- Never touch unrelated files.
- Always create mobile proof for every visual change.

After

+ Proceed with safe read-only discovery.
+ Ask before destructive commands, external writes, credential access, or irreversible actions.
+ Before editing, confirm worktree safety: branch, metadata, dirty changes, writer collision.
+ Use browser proof when requested or when frontend changes need acceptance verification.
+ Treat mistakes as evidence, not automatic permanent rules.
Side-by-side demo replaybenchmark.json

Before cleanup

8:20
5 agent interruptions
3 duplicate rule clusters
2 autoimmune rules

After cleanup

5:00
1 agent interruption
0 duplicate rule clusters
0 autoimmune rules
40% faster in the demo replay

Stop adding scar tissue.

Run Agent Immune System before one more failed session becomes a permanent rule.

Use agent immune system to audit my AGENTS.md.
The 40% number is from the included deterministic demo fixture, not a universal performance guarantee.