Automatically block a cheap AI model from being used as a delegation helper.
Require a written requirements list before letting the AI start a large unplanned task.
Prevent an AI session from ending while planned work items are still unfinished.
Route different kinds of coding work to the model tier best suited for the task.
| openwong2kim/iffable | 0marildo/imago | 0xdfi/glm-5.2-1m-4x-dgx-spark | |
|---|---|---|---|
| Stars | 3 | 3 | 3 |
| Language | Python | Python | Python |
| Setup difficulty | moderate | easy | hard |
| Complexity | — | 2/5 | 5/5 |
| Audience | developer | general | researcher |
Figures from each repo's GitHub metadata at analysis time.
Requires manually merging the printed hook configuration into your Claude Code settings file.
Iffable is a guardrail tool for Claude Code, the AI coding assistant, aimed at people on a subscription plan where the most capable model has a limited weekly usage cap. That top model, referred to in the README as Claude Fable 5, drains its quota quickly if it is left to handle every small task, so iffable tries to push simple work toward cheaper models automatically. The tool only turns itself on when a session was started using the Fable model. If a session starts on any other model, it stays inactive except for one rule that always applies: it blocks a certain cheap model from being spawned as a helper at all, no matter which main model is running. When active, iffable adds three checks. It blocks spawning that lowest tier helper model entirely. It also blocks a large, unplanned piece of delegated work from starting unless a written requirements list, called a ledger, already exists in the project. And it blocks the AI from ending its turn while that ledger still has unfinished items checked off as open. If every check fails to parse correctly or hits an internal error, the tool is designed to step aside quietly rather than block anything, so a bug in iffable itself can never lock up a session. When armed, iffable also injects a written policy describing which model tier should handle which kind of work: the top model for judgment calls and debugging, a strong second tier model for heavy reasoning tasks, a simple tier for routine work like formatting or renaming, and the cheapest tier banned outright. Installation is done by running a shell script that copies the tool's files into a folder in the user's home directory, after which the user manually wires it into their Claude Code configuration. A handful of environment variables let you override its automatic behavior. It is released under the Apache 2.0 license.
A guardrail for Claude Code that pushes routine work to cheaper AI models automatically, protecting a limited weekly quota on the most capable model.
Mainly Python. The stack also includes Python, Bash, Claude Code.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.