Claude Code hook
Abide
Make your coding agent abide by all your project rules
Install
npx @coldtea/abide login # pick a key type, paste it onceFound in the project README. Check it for setup steps after installing.
git clone https://github.com/coldteadotai/abide.gitFrom the README
Abide Coding agents break your rules from the very first edit. Abide catches every one and makes your agent fix it 1 in 13 turns break a rule no linter can catch · abide does · 300 ms per check · a tenth of a cent per turn Measured by replaying 93 real Claude Code sessions (1,256 edits, 147 turns) in two repos against their own AGENTS.md, for 22 cents. Jev flagged 39 edits and 15 turns; an independent reviewer confirmed 10 and 11. The turn-level catches (single-use abstractions, oversized files, duplicated logic) held up 11 times in 15. Method, per-rule table and what was wrong: benchmarks/replay. Then start claude, codex, opencode or pi as usual. That is the whole setup. What it does Your AGENTS.md, CLAUDE.md and the rest of your project instructions are full of rules no linter can check. "Never let a raw error reach a user." "Don't create premature abstractions." Nothing can script those, so nothing enforces them. In 93 real sessions, the agent broke one on 1 turn in 13, from the first edit on. https://github.com/user-attachments/assets/2d45f6b0-c889-474c-ab4a-8d019fdc7140 Abide enforces exactly those rules. On every edit (or turn) it asks Jev, TypeSafe's decision model, one question per rule and gets a probability back. Jev sees the rule and the diff, never the conversation, so edit 200 is checked like edit 1. Break a rule and the agent is told which one and fixes it in the same turn. - One call per edit, about 300 ms, a few thousandths of a cent. - Rules a linter could check are handed to your linter instead. - No built-in rules. No instruction files, nothing to enforce. - Your key, your data. Nothing here talks to a server of ours. Not previously possible Checking every edit or turn against every rule was never worth doing…
How hooks work
- Hooks are shell commands Claude Code runs at fixed points: before or after a tool call, when you submit a prompt, when Claude stops, on notifications and at session start.
- They are set in the hooks section of ~/.claude/settings.json (or .claude/settings.json for a project), or come bundled in a plugin.
- A hook can block a tool call, add context, or run a formatter or test. Read the scripts before you install them: they run on your machine with your permissions.
Details
- Repository
- coldteadotai/abide
- Type
- Hooks
- Language
- TypeScript
- License
- MIT
- Last updated
- 10 October 2026
- Topics
- claude-codeclaude-code-hooksclaude-code-pluginclaude-code-pluginsclaude-code-skillclaude-code-skillscodex-plugincodex-skillopencodeopencode-pluginopencode-skills
FAQ
What is Abide?
Make your coding agent abide by all your project rules It is a hook for Claude Code, from coldteadotai/abide on GitHub.
How do I install Abide?
Run npx @coldtea/abide login # pick a key type, paste it once, then follow the setup in the README.
Is Abide popular?
coldteadotai/abide has 621 GitHub stars and 48 forks. It was last updated on 10 October 2026.
More hooks
nWave
631nWave-ai/nWave
AI agents that guide you from idea to working code, with you in control at every step.
LSP Enforcement Kit
328nesaminua/claude-code-lsp-enforcement-kit
Hooks that steer Claude Code toward LSP-based navigation instead of grep to save tokens.
Lasso Claude Hooks
271lasso-security/claude-hooks
Security hooks from Lasso that scan tool output for prompt-injection attempts.
Taskmaster
533blader/taskmaster
Stop hook for Claude Code that keeps the agent working until all plans and user requests are 100% complete
Instagram Skills
728sergebulaev/instagram-skills
Instagram marketing skills for Claude Code and Codex: captions, carousels, hooks, hashtag strategy, and a weekly plan. Draft, humanize, and publish via Publora. MIT. Content engineering by Creative Content Crafts.
Grip
439guilyx/grip
A git hook that won't let you push code you can't explain. Quizzes you on your own diff. Works with Claude Code, Codex, Cursor.
Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.