abcd: Instructions file for Claude Code

AGENTS.md

abcd AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from intentdriven/abcd. It costs 8,311 tokens per session, scanned A, original, MIT.

Instructions for a modular rules loader that activates only the project rules matching a user’s prompt. It supports default domains, repository-specific overrides, explicit activation, and a kill switch.

In plain words
What is it for?
Loading rules for areas such as commits, documentation, or roadmaps; inspecting active rules; overriding them per repository; and disabling or explicitly activating domains.
Why use it?
It keeps unrelated rules out of the agent’s context while still allowing teams to customize or deliberately activate rules when needed.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: UserPromptSubmit hook event, but also the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is intentdriven/abcd's own configuration. It tells Claude Code, Codex and OpenCode how to work on abcd itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything abcd configures →

Reuse

Borrowing it

Nothing to install: this file belongs to intentdriven/abcd. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/intentdriven/abcd/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/intentdriven/abcd

Made for: Claude Code, Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for abcd AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/intentdriven/abcd/agents-md/github.svg)](https://agentmods.dev/instructions/intentdriven/abcd/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/intentdriven/abcd/agents-md"><img src="https://agentmods.dev/badge/instructions/intentdriven/abcd/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for abcd AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/intentdriven/abcd/agents-md"><img src="https://agentmods.dev/badge/instructions/intentdriven/abcd/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8,311 This file is loaded in full into every session.
When invoked 8,311 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.08311 $0.08311
Opus 5.5 $0.03324 $0.03324
Sonnet 5.5 $0.01662 $0.01662
Haiku 4.5 $0.00831 $0.00831

Measured 4d ago against content hash 049bb60683ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

abcd AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 496 lines

How it starts

The opening of the file, as written. The whole thing — 496 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

Conventions-file check word: brindlewort. A session that can name it without reading any file loaded this file as its instructions (itd-2610030814013772).

abcd rule loader

This repository uses the abcd modular rules loader. On UserPromptSubmit, a hook recall-matches the prompt against keyword triggers declared in the plugin-bundled default domains, the machine's ~/.abcd.noindex/rules.json and <repo>/.abcd/rules.json, and injects only the matched domain rules, then the memory it recalls — instead of the full ruleset every turn. A prompt that matches no domain injects no rules. Output stays under the host's 10,000-character cap: a domain that does not fit shrinks to its first rule or the command alone, or waits a turn.

  • Inspect rules: abcd rules renders the active set; abcd rules <DOMAIN> (case-insensitive) scopes to one domain.
  • Per-repo overrides: edit <repo>/.abcd/rules.json. It is {"schema_version": 1, "disabled": false, "domains": {}} — add a domain key to override a default per-field (e.g. {"ROADMAP": {"state": "dormant"}} silences it while keeping its rules) or to declare a custom domain ({"recall": [...], "rules": [...]}). A domain left with no rules at all ({"rules": []}, or a custom domain declared without any) is SKIPPED with a diagnostic on stderr naming it — it would otherwise inject a heading-only block, which reads as a domain that says nothing. The rest of the file still loads; {"state": "dormant"} is the way to silence a domain deliberately.
  • Machine-wide overrides: ~/.abcd.noindex/rules.json takes the same schema and holds the conventions shared by every repo on the machine. The layers apply in order — bundled defaults, then ~/.abcd.noindex/rules.json, then <repo>/.abcd/rules.json — each replacing a field wholesale, so the repo wins a field both set and a repo dormant state or kill switch holds against a user layer. The file is read only when it is a regular file this account owns that no one else can write, within 256 KiB; a file failing that, or failing to parse or validate, fails the load loudly and the hook injects nothing. Absent, it costs nothing and nothing is created; a HOME or ~/.abcd.noindex this account cannot search reads as absent. A dotfiles-symlinked ~/.abcd.noindex can never host a rules.json: the file is refused behind a symlinked ~/.abcd.noindex, and only a symlinked ~/.abcd.noindex with no rules.json in it is spared, reading as absent.
  • Provenance: a domain an override names (rules replaced, state changed, or a custom domain) renders as ## NAME (user override) or ## NAME (repo override), after the last layer that named it, wherever it appears: the injected block, abcd rules, and the hook's diagnostic; abcd rules --json carries "source": "user" or "source": "repo" for it and "source": "bundled" for an untouched default.
  • Kill switch: set "disabled": true at the top of .abcd/rules.json; at the top of ~/.abcd.noindex/rules.json it silences every repo on the machine, and no repo file re-enables it.
  • Foreign-uid roots: the loader and the shell guard read .abcd/ from the repository root resolved for the session, never from a directory above the working tree. Where git cannot answer for that tree — a checkout owned by another uid, a container bind mount — the root is recovered from the .git marker instead, and a root the caller does not own is REFUSED: the session takes its own working directory as the root, nothing above it is read, and one line on stderr names what was refused. The refusal bounds the walk, not the working directory: a .abcd/ there is still read, so a session started AT the refused root reads that root's configuration, over ~/.abcd.noindex/rules.json for the rules. Re-admit such a checkout deliberately, from an account you control: mkdir -p ~/.abcd.noindex && printf '%s\n' '<checkout>' >> ~/.abcd.noindex/trusted-roots (one absolute path per line; # starts a comment). Only your home declares it — a file inside the checkout can never vouch for the checkout.
  • Explicit activation: start a prompt with *<DOMAIN> (e.g. *COMMITTING, *PII) to inject that domain unconditionally — overrides a dormant state, but never the kill switch.

Read the full file on GitHub · 496 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed · +1 tokens per session 049bb60683ec
  2. 7d ago Changed · +1 lines · +10 tokens per session 99fa7e330dbf
  3. 8d ago Changed · -1 lines · -5 tokens per session 9af5590e696d
  4. 16d ago Changed · +1 tokens per session 3c8d07933216
  5. 21d ago Changed · +1 tokens per session c4fd259d239f
  6. 23d ago Changed · +32 tokens per session 0edf25209454
  7. 25d ago Changed · +2 lines · +30 tokens per session b4081bc6e31b
  8. 26d ago Changed · +1 lines · +33 tokens per session 780001d6a58f
  9. 27d ago Changed · -3 lines · -49 tokens per session 726e0fe7ae03
  10. 1mo ago First seen · 496 lines · 8,257 tokens per session scan A b8fed01bcea0

Subscribe to this mod's changes

abcd AGENTS.md is an instructions file published in the GitHub repository intentdriven/abcd (4 stars, last pushed yesterday), licensed MIT. It adds 8,311 tokens to every session, about $0.0332 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

abcd AGENTS.md compared with instructions from other repositories

abcd AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
abcd AGENTS.mdintentdriven/abcdInstructions file4yesterdayMITA8,311Claude Code, Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109ktodayMITA3,077GitHub Copilot