What it does
- Stops your coding assistant from stating things it has not checked: invented library functions, "it works" without running anything, "done" with tasks still open.
- Blocks risky git actions outright: force-pushes, and AI credit lines in commit messages and GitHub PR/issue/release text.
- Keeps the main conversation responsive by pushing heavy commands and file edits to helper agents, and caps runaway agent spawning.
- Adds skills you can call by name for debugging to a proven root cause, reviewing risky changes, and writing a session handover.
- Works with Claude Code (plugin) and Codex (separate port). The core is a small Rust engine (
ah-engine), downloaded once and checked against a pinned sha256; a small Rust client, ah-hook, hands it every hook call. Node.js is not needed.
Install
Supported systems: macOS on Apple silicon. Linux (including WSL), Apple Intel Macs and native Windows are coming soon: not currently supported or tested.
Claude Code:
/plugin marketplace add talas9/anti-hall
/plugin install anti-hall@anti-hall
Codex (clone the repo, then run the installer; add --global for user-wide, --dry-run to preview):
git clone https://github.com/talas9/anti-hall.git && cd anti-hall
~/.anti-hall/ah-engine/bin/ah-engine install-codex
Add .anti-hall/ to your project's .gitignore: anti-hall keeps per-project session notes there (or run /anti-hall:doctor --repair, which excludes it locally).
Check it worked: ask "is anti-hall working" (runs the doctor skill), or run /anti-hall:settings.
Uninstall: see the documentation (below).
Enable Jev
Recommended: enable Jev, the optional classifier, for more accurate guards.
It gives guards such as the speculation check a model's second opinion on top of pattern matching, and it can only add blocks, never remove one. Costs: optional and off by default; needs your own Vercel AI Gateway or TypeSafe API key; sends the text a guard judges to the provider you choose; uses provider credits. Details: PRIVACY.md.
Enable: say "activate jev" (runs the jev skill). The full text and the measured result are in the Jev page of the documentation (below).
Advisor mode (optional) (Sonnet main + Opus advisor)
Recommended setup: run Sonnet as the main model and Opus as the advisor (the advisor tool). Hard decisions go to the advisor; the rest stays on Sonnet.
| Rule | Switch (default on) | Enforced |
|---|
| Retry | guards.advisorRetry | a second edit of the same file after a failed test or build, with no advisor call in between, is blocked once; also a second fix dispatch for one issue with no advisor call since the first (non-flagship main) |
| Thinking | guards.advisorThinking | non-flagship main: a fix/design/investigate/plan/review dispatch with no advisor call since your last message is nudged, the second is blocked once per task |
| Say-do | guards.advisorSayDo | non-flagship main: a turn that says it will ask the advisor and does not is blocked once at Stop |
| Plan | guards.advisorPlan | writing a plan file or calling ExitPlanMode with no advisor call since the task began is blocked once |
| Review | guards.advisorReview | a review-shaped agent spawn on Sonnet or Haiku is blocked once (use Opus, Fable or Codex) |