DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to stop a coding agent from breaking your written project rules with Abide

Hook Abide into your agent so each edit is checked against your instruction files and violations are repaired in the same turn.

Short answer: Run npx @coldtea/abide login, choose the key type, and paste your key once; then run npx @coldtea/abide init in your repo to install hooks into every agent found on the machine; For Codex, start codex, type /hooks, and accept the four Abide entries. All steps.

Credentials. The setup stores your TypeSafe or Vercel AI Gateway key in ~/.abide/.env or .env.local, so keep those files out of version control and protect the machine.

Who it is forA developer whose team keeps rules in AGENTS.md or CLAUDE.md that linters cannot check, and whose coding agent keeps ignoring them.

The problemRules such as 'never let a raw error reach a user' are not enforced by any tool, so the agent breaks them on many turns.

The outcomeThe agent is told which rule an edit broke, with the rule text and file, and fixes it before moving on.

What you need first

  • A TypeSafe API key from typesafe.ai, or a Vercel AI Gateway key
  • A terminal with npx available
  • A git repository with project instruction files such as AGENTS.md or CLAUDE.md
  • One or more supported agents installed: Claude Code, Codex, OpenCode or Pi

Steps

  1. Run npx @coldtea/abide login, choose the key type, and paste your key once.
  2. Run npx @coldtea/abide init in your repo to install hooks into every agent found on the machine.
  3. For Codex, start codex, type /hooks, and accept the four Abide entries. (inferred, check the README)
  4. Start your agent as usual, for example claude, and let its first turn compile your rules into .abide/rubric.json.
  5. Ask the agent for a change that one of your rules forbids and confirm it receives an Abide repair request.

Prompt for your agent

In the repo <repo-path>, install Abide with `npx @coldtea/abide init` and confirm that `.abide/rubric.json` was created after the first agent turn. Then ask the agent for an edit that breaks one rule in AGENTS.md and report the rule id and file that Abide names.

Caveat. Each edit or turn is sent as changed lines to TypeSafe under your key, and the README says a key is required before any check runs.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for coldteadotai/abide and "Stop a coding agent from breaking your written project rules"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer