antibody 🦠💉
You: It's been eleven minutes. What's going on?
Claude: Oh, my bad! My grep didn't have a file, so it was waiting on stdin. I would have sat here until the heat death of the universe. 🙂
You: 😐
Makes you want to #@!$ scream, doesn't it?
And it's never just the once. It's the --id flag that was never a flag, for the fourth time this week. It's the heredoc that ate a backtick and turned your file into modern art. It's tail -5 a.log b.log, said with total confidence. It's the same retry, three times in a row, each one hopeful that this time the laws of physics will be different.
Friends, there is a cure. It's called antibody. (Side effects may include fewer apologies, shorter sessions, and an unfamiliar feeling of calm. Ask your doctor if antibody is right for you. Your doctor is antibody doctor.)
antibody is a Claude Code plugin that gives Claude an immune system for its own tool mistakes. It catches a failure the first time, remembers the cure, and hands it back the next time, often before the bad command even runs. The grep that would have waited forever gets refused in milliseconds, along with a polite note about which file it forgot.
How the immune system works
| |
|---|
| Capture 🔬 | Hooks log every failed tool call, interrupted call, killed background task and slow call to an event log. Sessions don't do any bookkeeping themselves. When a session commits, pushes, opens a PR or moves a card while its task list has sat unchanged for 15 minutes, it is reminded to update the list, so the progress you check isn't stuck on step one. |
| Recall 🧠 | When a call fails and the failure matches a known issue, antibody hands the fix straight back to the model in the same turn. That works in subagents too. |
| Prevent 🛡️ | Before a shell command runs, rules can rewrite it (a certain, mechanical fix), deny it (naming the right form), ask the person (in auto mode antibody steps aside and leaves the call to Claude Code's own permission checks; in modes that never check, the ask is refused), or warn. |
| Learn 📚 | A review command turns recent events, the "what worked next" pairs and session notes into issues and new rules. |
| Tolerate 🧘 | New rules start in shadow mode: they log what they would have done, and act only once real traffic shows they're right. Rules that misfire get demoted, because an immune system that attacks the host is called an autoimmune disease. |
Install
You need Claude Code and Node 18 or later (CI runs the suite on Linux, macOS and Windows). Three steps:
-
Install the plugin from a terminal (PowerShell, cmd or bash), not inside a Claude session:
claude plugin marketplace add MichaelLeeHobbs/antibody
claude plugin install antibody@antibody
claude plugin list should now show antibody@antibody as enabled. If adding the marketplace fails while cloning (git trying SSH without your keys), use claude plugin marketplace add https://github.com/MichaelLeeHobbs/antibody.git. In the terminal Claude UI, /plugin install antibody@antibody works too.
-
Start a new Claude session and run /antibody:setup. The CLI and the desktop app's Code tab both work; they share ~/.claude. Setup creates the data folder, checks the install, and gives you one command.
-
Run that command in your own terminal. It looks like node "<plugin folder>/bin/antibody.mjs" permissions --apply. It backs up ~/.claude/settings.json and ~/.claude/CLAUDE.md, then adds antibody's permission entries and the line that loads its learned rules. It only adds, never removes or changes your entries. It's yours to run because it changes your own settings: Claude Code's permission flow decides whether a session may do that (the opt-in protect-settings pack adds an antibody ask on top).
Then schedule the review daily: in the desktop app, a scheduled task with the prompt /antibody:review; otherwise antibody schedule prints an OS task. If the review hasn't run for two days, antibody reminds you.
To do it all by hand instead, see Setting up by hand.
Updating
When a new release is out, antibody says so at session start (the CLI shows it on screen; in the desktop app, Claude mentions it at the end of its first reply). To update, run these in your own terminal:
claude plugin marketplace update antibody
claude plugin update antibody@antibody
Then start a new Claude session (or run /reload-plugins) so the new version loads. Your data folder, settings and learned rules carry over.
If a release needs something from you, the next session start says what, and keeps saying it until you confirm. Once it's done, tell Claude (antibody asks you to approve that), or run the whats-new --seen command the notice prints. Every release is listed in CHANGELOG.md; "By hand" there is that step.