{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "coldteadotai-abide--enforce-project-rules-in-coding-agent",
 "repo": "coldteadotai/abide",
 "repo_url": "https://github.com/coldteadotai/abide",
 "repo_slug": "coldteadotai-abide",
 "title": "Stop a coding agent from breaking your written project rules",
 "page_title": "How to stop a coding agent from breaking your written project rules with Abide",
 "summary": "Hook Abide into your agent so each edit is checked against your instruction files and violations are repaired in the same turn.",
 "who": "A developer whose team keeps rules in AGENTS.md or CLAUDE.md that linters cannot check, and whose coding agent keeps ignoring them.",
 "problem": "Rules such as 'never let a raw error reach a user' are not enforced by any tool, so the agent breaks them on many turns.",
 "outcome": "The agent is told which rule an edit broke, with the rule text and file, and fixes it before moving on.",
 "steps": [
  "Run `npx @coldtea/abide login`, choose the key type, and paste your key once.",
  "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. (inferred, check the README)",
  "Start your agent as usual, for example `claude`, and let its first turn compile your rules into `.abide/rubric.json`.",
  "Ask the agent for a change that one of your rules forbids and confirm it receives an Abide repair request."
 ],
 "agent_prompt": "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.",
 "agents": [
  "claude-code",
  "codex"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "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.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "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."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/coldteadotai-abide/enforce-project-rules-in-coding-agent/",
 "md": "https://dedupedai.com/use-cases/coldteadotai-abide/enforce-project-rules-in-coding-agent/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/coldteadotai-abide--enforce-project-rules-in-coding-agent.json",
 "api_version": "v1"
}
