coldteadotai/abide

★ 176⑂ 9

Make your coding agent abide by all your project rules

About coldteadotai/abide

coldteadotai/abide is an open-source project on GitHub, mainly written in TypeScript. Make your coding agent abide by all your project rules It currently holds 176 stars and 9 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the Today's Trending board, currently at rank #84 with 0 new stars today.

GitHub Repository Details

Repository coldteadotai/abide · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

https://github.com/coldteadotai/abide/blob/HEAD/Abide, the officer who reads every edit

Abide

Coding agents break your rules from the very first edit. Abide catches every one and makes your agent fix it

https://github.com/coldteadotai/abide/blob/HEAD/Works with Claude Code, Codex and OpenCode https://github.com/coldteadotai/abide/blob/HEAD/MIT license

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.

---

npx @coldtea/abide login    # pick a key type, paste it once
npx @coldtea/abide init     # hooks into every agent on this machine

Then start claude, codex or opencode 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.

A rule caught and repaired inside a coding session

Not previously possible

Checking every edit or turn against every rule was never worth doing (economically and latency-wise) with an ordinary LLM. A check is about 2,500 tokens. At typical model prices that is a cent or more, and a few seconds, per edit, and the answer comes back as prose you then have to parse and cannot fully trust. Two hundred edits a day made it a non-starter.

Jev changes the arithmetic. It is a decision model, so it answers a typed question with a calibrated probability and nothing else. There is no free text, so there is nothing to make up. It is up to 100x cheaper than a typical LLM and answers in about 300 ms. That is what makes it reasonable to check every edit, every time.

Three minutes to the first catch

1. Get a TypeSafe API key at typesafe.ai, or use a Vercel AI Gateway key you already have. 2. Run npx @coldtea/abide login, pick which kind of key it is and where it lives, and paste it. It goes to ~/.abide/.env for every repo on the machine, or to .env.local in this repo, owner-only either way. A .env you already have at the repo root works too. 3. Run npx @coldtea/abide init in your repo. 4. Start your agent. Its first turn compiles your rules into .abide/rubric.json and tells you what it found. 5. Ask for something your rules forbid. An AGENTS.md that says "use Yup, never validate by hand" produces this the moment the agent writes a manual guard:

Abide: This edit appears to break a rule from this repository's instructions.
  • Rule "api-validation-uses-yup" from ~/.codex/AGENTS.md line 65: "When writing API endpoints, do NOT write input validations manually. Use Yup (with clear validation messages) + early return in the API handler". (0.86)
Repair apps/web/src/pages/api/logout.ts now, then continue with the task.

The agent repairs it before moving on. No human in the loop.

abide check on a violating diff

Agents

| Agent | Install | Where it lands | | ----------- | ---------------------------------- | ------------------------------------- | | Claude Code | npx @coldtea/abide init claude | ~/.claude/settings.json | | Codex | npx @coldtea/abide init codex | ~/.codex/hooks.json | | OpenCode | npx @coldtea/abide init opencode | ~/.config/opencode/plugins/abide.js |

init with no name installs into every agent it finds. Add --project to install into the repo instead, so teammates get it with the checkout.

Codex only: start codex, type /hooks, and accept the four abide entries. Codex asks this once for any new hook. Codex edits through apply_patch; abide reads the patch and judges every file in it.

OpenCode only: there are no hook processes, so abide runs as a plugin. Same checks, same messages: an edit that breaks a rule gets the repair request appended to its tool result, and a turn that ends with one gets a single follow-up message.

See what your codebase already breaks

abide audit src/

Every file is judged as if it had just been written. You get a table by rule and a list by file. On 33 API routes of a real Next.js app: 12 seconds, about a cent.

abide audit on 33 API routes

Commands

| Command | What it does | | ------------------------- | --------------------------------------------------------------------- | | abide login | store your TypeSafe or Vercel AI Gateway key, for you or this repo | | abide init [agent] | install the hooks (claude, codex, opencode, or every one found) | | abide audit [paths] | judge existing files, report by rule and by file | | abide check [paths] | check uncommitted changes the way the hooks would | | abide report | your rules, what fired, what never fires | | abide replay | judge this repo's past sessions in any of the three agents | | abide compile | compile the rubric now instead of at the next session | | abide calibrate | score every rule against your recent git history | | abide tune | rewrite the rules that never fire | | abide bench | latency and spend, measured on your machine | | abide uninstall [agent] | remove the hooks |

report, check, audit, bench and calibrate take --json.

The rubric is yours

.abide/rubric.json is a committed, readable file. Every verdict names a rule in it, and every rule quotes the line of your instruction file it came from. A wrong verdict is a rule you can rewrite.

abide report

Cost, privacy, safety

How it hooks in

Four hooks per agent. Session start: hash the instruction files, ask the agent to compile if they changed. Turn start: snapshot the working tree with git. After each edit: run the edit-phase rules on that hunk. End of turn: diff the whole turn against the snapshot and run the turn-phase rules, plus the edit-phase rules for anything a shell command wrote.

Uninstall

abide uninstall            # every agent it was installed into
abide uninstall codex      # one agent; add --project for a project-level install

Removes abide's own entries and nothing else. Rubric files and ~/.abide/.env stay until you delete them.

Layout

License

MIT

GitHub Stars & Activity

176Stars
9Forks
0Open issues
TypeScriptLanguage

GitHub Popularity

GitHub stars176
Forks9
Open issues0
Primary languageTypeScript
License-
Stars gained today0
Created-
Last pushed-

Trending History

Daily boardrank #84 · ▲ 0 stars

Related AI Projects

1

anthropics / claude-code

TypeScript★ 146,908⑂ 23,988▲ 483 stars
2

supermemoryai / supermemory

TypeScript★ 30,666⑂ 2,675▲ 392 stars
3

vercel-labs / json-render

TypeScript★ 16,987⑂ 905▲ 585 stars
4

krillinai / OpenCreator

TypeScript★ 11,870⑂ 1,179▲ 317 stars
5

Tencent / BrowserSkill

TypeScript★ 5,916⑂ 417▲ 612 stars
6

KnockOutEZ / wigolo

TypeScript★ 5,341⑂ 432▲ 31 stars
7

BuilderIO / agent-native

TypeScript★ 4,978⑂ 468▲ 89 stars
8

cloudflare / mcp-server-cloudflare

TypeScript★ 4,253⑂ 523▲ 40 stars

More AI Rankings