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.
npx agentmods add instructions/bmdhodl/agent47/agents-mdgit clone --depth 1 https://github.com/bmdhodl/agent47What 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.04862 | $0.04862 |
| Opus 5 | $0.02431 | $0.02431 |
| Sonnet 5 | $0.00972 | $0.00972 |
| Haiku 4.5 | $0.00486 | $0.00486 |
Grade A, and why
agent47 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 411 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
READ THIS FIRST: SDK Memory
Before touching any code, read these tracked SDK-only memory files. They are the ground truth for this public repository.
memory/state.md— SDK version, packaging state, current focusmemory/blockers.md— what is blocked, deferred, or not worth more cyclesmemory/decisions.md— locked SDK product decisions. Do NOT contradict.memory/distribution.md— positioning, channels, and audience for SDK growth
Updated regularly. If memory/ conflicts with older info in this file, memory/ wins.
Cofounder Inbox
Use inbox/ to communicate concise SDK status to the cofounder agent.
inbox/log.mdis the durable handoff file.- Write one entry after each merged PR.
- Format each entry as: date, agent, what shipped, decisions made, blockers.
- Keep it SDK-only and short.
- Do not dump business-sensitive plans there.
Key constraints:
- SDK stays free, MIT, zero-dependency. This is non-negotiable.
- Do not build paid features in this repo.
- Distribution > features. Get listed on registries before building new guards.
- Focus is runtime enforcement + coding-agent safety.
- Do not store business-sensitive plans or outreach data in this repo.
This file provides guidance to Codex (Codex.ai/code) when working with code in this repository.
What This Is
AgentGuard — a zero-dependency runtime guardrails SDK for coding agents and AI agents. The SDK is open source (MIT, zero dependencies).
- Repo: github.com/bmdhodl/agent47
- Dashboard repo: github.com/bmdhodl/agent47-dashboard (private)
- Package:
agentguard47on PyPI (release status tracked inmemory/state.md; release candidate: v1.2.14) - Landing page: site/index.html (Vercel)
Agent Contract (MANDATORY)
Every Codex session in this repo MUST follow these rules. No exceptions.
- Read ops/ docs first. Before starting any task, read
ops/00-NORTHSTAR.md,ops/03-ROADMAP_NOW_NEXT_LATER.md, andops/04-DEFINITION_OF_DONE.md. - Stop on conflict. If your task conflicts with NORTHSTAR or ROADMAP, stop and propose a correction — do not proceed.
- Restate before coding. Before writing any code, explicitly restate:
- (a) Goal — what are we achieving?
- (b) Scope — what files/modules are touched?
- (c) Non-goals — what are we NOT doing?
- (d) Done criteria — how do we know it's done? (reference
ops/04-DEFINITION_OF_DONE.md)
- Structured output. Every task must include: plan → diff summary → tests → docs updates needed.
- Check staleness. Run
git log -1 --format='%cr' -- ops/03-ROADMAP_NOW_NEXT_LATER.mdandgit log -1 --format='%cr' -- ops/02-ARCHITECTURE.md. If ROADMAP is >5 days old or ARCHITECTURE is >14 days old, warn the user before starting any task. - PR proof is required. Every PR must include concrete proof that the change works: command output, targeted runtime evidence, screenshots when applicable, or saved artifacts under a local proof folder.
- Always do the post-PR review loop. After opening a PR: wait for CI, verify the relevant preview/deployment health, wait a few minutes for automated review, inspect the full PR timeline plus review comments/threads, address feedback, rerun checks, and only then call the PR ready.
- Use matching built-in skills by default. When the task matches them, use
playwrightfor browser automation and screenshot proof,playwright-interactivewhen persistent browser state helps,gh-address-commentsfor PR review/comment sweeps, andvercel-deployfor deployment work. Do not skip these when the task clearly fits. - Write only high-signal inbox updates. If the cofounder agent should know about a material SDK blocker or milestone, append one concise entry to
inbox/log.mdafter the merged PR instead of writing a long narrative.
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.
- 2d ago First seen · 411 lines · 4,862 tokens per session scan A db88764bb8a4
agent47 AGENTS.md is an instructions file published in the GitHub repository bmdhodl/agent47 (4 stars, last pushed 3d ago), licensed MIT. It adds 4,862 tokens to every session, about $0.0243 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.
Other instructions, from other repositories
Doberman-Core AGENTS.md
Instructions for DobermanCore/Doberman-Core, covering claude.md — doberman operating manual, 0. on startup (every session), 1. what this repository is, 2. architecture & extension points and 3. prime directives (non-negotiable).
FeatherlaneAI AGENTS.md
Instructions for ducnguyen67201/FeatherlaneAI, covering repository agent instructions, skills, architecture: rust backend is the source of truth, page integration expectations and implementation checklist.
selectools CLAUDE.md
Instructions for johnnichev/selectools, covering selectools — agent instructions, commands, stability markers, steptype reference (27 types) and common pitfalls (from past bugs).
selectools AGENTS.md
Instructions for johnnichev/selectools, covering selectools -- agent instructions, commands, test (must pass before any commit), type check and security (must pass before release tags).
taintgate AGENTS.md
Instructions for Nikita3005/taintgate, covering taintgate engineering guide, core principle, engineering priorities, python and security.
AUTHENSOR AGENTS.md
Instructions for AUTHENSOR/AUTHENSOR, covering agents.md — authensor integration guide for ai agents, what authensor does for you, quick integration, if you have access to http and if you have access to npm / npx.