abcd AGENTS.md

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 CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/intentdriven/abcd/agents-md
Clone the repo
git clone --depth 1 https://github.com/intentdriven/abcd

Made for: Codex, OpenCode.

Per session 3,564 This file is loaded in full into every session.
When invoked 3,564 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.03564 $0.03564
Opus 5 $0.01782 $0.01782
Sonnet 5 $0.00713 $0.00713
Haiku 4.5 $0.00356 $0.00356

Measured yesterday against content hash 12bfab5b6bed, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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 · 242 lines

How it starts

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

AGENTS.md

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 and <repo>/.abcd/rules.json, and injects only the matched domain rules into context — instead of force-loading the full ruleset every turn. A prompt that matches no domain injects nothing (zero added tokens).

  • 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": [...]}).
  • Kill switch: set "disabled": true at the top of .abcd/rules.json.
  • 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.

Default domains

COMMITTING, DOCUMENTATION, ROADMAP, ISSUES, INTENTS, LIFEBOAT, PII, OPINIONS. Each carries recall keywords and its rules, bundled in the abcd binary; a repo overrides them per-field via .abcd/rules.json. OPINIONS points at the canonical conventions under .abcd/development/principles/ rather than copying them.

Reset triggers

SessionStart and PreCompact clear the per-session dedup ledger, so a matched domain re-injects on the next prompt (the event-driven refresh that recovers after compaction). Within a session the hook does not re-inject unchanged rules.

Read the full file on GitHub · 242 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. yesterday First seen · 242 lines · 3,564 tokens per session scan A 12bfab5b6bed

Subscribe to this mod's changes

abcd AGENTS.md is an instructions file published in the GitHub repository intentdriven/abcd (3 stars, last pushed 2d ago), licensed MIT. It adds 3,564 tokens to every session, about $0.0178 per session on Opus 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.