Sensibility
Sensibility gives Claude Code a second opinion it can ask for in half a second.
Claude makes lots of small calls while it works: does this diff match the ticket, is this commit message honest, is this shell command safe to run, did I actually finish what was asked. Sensibility lets Claude hand those calls to Jev, a model from TypeSafe that only answers questions. Jev doesn't write code or text. You give it some text and a few questions, and it returns a probability for each answer in about 0.5 s, for about $0.00005.
Sensibility also helps you pick a skill. Type /sensibility:which <prompt> and it prints the skill to put in front of your prompt. See Pick a skill for your prompt.
Sensibility also pulls the parts of a long file that matter for your goal into a short Markdown file. See Pull takeaways from a file.
Quick start
1. Install the plugin. In Claude Code:
/plugin marketplace add rajnandan1/sensibility
/plugin install sensibility@sensibility
2. Add your TypeSafe key. Get one at https://console.typesafe.ai/keys, then add this line to ~/.zshenv (or your shell's startup file):
export TYPESAFE_API_KEY=your-key-here
3. Restart Claude Code so it picks up the key and the plugin.
4. Try it. In any git repo with uncommitted changes, paste this with your own ticket text:
Use the sensibility judge to check my uncommitted change against this ticket: <paste the ticket>
Claude runs one command and reports a verdict (act, confirm or escalate) with the numbers behind it. If something is off, it tells you what.
5. Save a check you want to reuse. A battery is that check: a few questions in a JSON file, run again by name. You describe the rule. Claude writes the file and tries it on examples before saving.
Use the sensibility judge to save a battery called comment: keep a code comment only if it explains something the code itself can't
6. Use that check. Next time, ask the judge to run it by name:
/sensibility:judge check this comment with the comment battery: # increment the retry counter
You also need python3 3.9 or later on your PATH. macOS has it after xcode-select --install.
How it works
You only need four words:
- Jev: TypeSafe's judging model. It answers questions about some text. It never writes anything.
- Question: one thing you ask Jev. There are three kinds. A yes/no question returns the chance the answer is yes (0.93 means very likely). A pick-one question chooses from options you list. A score question places the text on levels you describe.
- Battery: a saved set of questions in a JSON file, reused by name.
scope, for example, asks three questions about a diff and a ticket.
- Gate: rules inside a battery that turn Jev's answers into one verdict:
act (go ahead), confirm (flag it, carry on) or escalate (stop and show you).
Sensibility uses them in two ways:
flowchart LR
subgraph ask ["When Claude asks"]
A[You or Claude] --> B["judge skill<br/>(/sensibility:judge)"]
end
subgraph auto ["Automatically"]
C["Bash command about to run"] --> D[Risk gate hook]
E["Claude ends its turn"] --> F[Finish gate hook]
end
B --> G[a battery, or questions written on the spot]
D --> H[risk battery]
F --> I[finish battery]
G --> J((Jev))
H --> J
I --> J
J --> K["answers + verdict"]
The judge skill runs when you or Claude ask for it. Every battery you run by hand goes through it, and it can also ask questions Claude writes on the spot.
The two gates are hooks. They run on their own, each with its own battery:
| Gate | Runs when | What it does | Default |
|---|
| Finish gate | Claude ends a turn | If Claude stopped short (offered to do the work instead of doing it, asked permission you already gave, ended on a plan), Claude gets one nudge to keep going. | off |
| Risk gate | Before every Bash command | If a command is risky and destructive, or risky and outside what you asked for, Claude Code stops and asks you first. | off |
To save a check of your own as a battery, see Batteries.
Things to ask Claude