agent-brain AGENTS.md

agent-brain AGENTS.md is an instructions file for Codex, OpenCode from sandeep84397/agent-brain. It costs 241 tokens per session, scanned A, original, MIT.

Repository instructions for the `agent-brain` project, including setup rules and a protocol for coding agents to record plans and decisions.

In plain words
What is it for?
They guide roadmap checks, code exploration, decision logging, focused compatibility tests, and recording outcomes after review or testing.
Why use it?
They help agents use the project's virtual environment, keep setup repeatable, and preserve decisions between sessions.

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/sandeep84397/agent-brain/agents-md
Clone the repo
git clone --depth 1 https://github.com/sandeep84397/agent-brain

Made for: 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 agent-brain AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sandeep84397/agent-brain/agents-md.svg)](https://agentmods.dev/instructions/sandeep84397/agent-brain/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/sandeep84397/agent-brain/agents-md"><img src="https://agentmods.dev/badge/instructions/sandeep84397/agent-brain/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 241 This file is loaded in full into every session.
When invoked 241 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.00241 $0.00241
Opus 5 $0.00120 $0.00120
Sonnet 5 $0.00048 $0.00048
Haiku 4.5 $0.00024 $0.00024

Measured 4d ago against content hash cfa34ded3602, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agent-brain 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 · 15 lines

What it actually says

AGENTS.md

Repository Expectations

  • Use the installed brain venv for server commands when dependencies are not installed in the active shell: ~/.agent-brain/.venv/bin/python ~/.agent-brain/server.py <cmd>.
  • Run focused tests after changing setup, hooks, or compatibility helpers. For Codex compatibility, run python3 -m unittest tests.test_codex_setup -v.
  • Keep setup commands idempotent. Re-running ./setup.sh --codex, ./setup.sh --all, or project-link commands must not duplicate config blocks.

Agent Brain Protocol

  • Before non-trivial implementation work, call get_roadmap and pre_check when the agent-brain MCP server is available.
  • Before editing code, call log_decision so the choice is stored for later sessions.
  • Prefer query_san and get_san(file_path="<absolute path>") for code exploration when SAN briefs exist; use raw reads for exact edits, non-code files, or files without SAN.
  • After user review or test results, call log_outcome when a decision id is available.
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 First seen · 15 lines · 241 tokens per session scan A cfa34ded3602

Subscribe to this mod's changes

agent-brain AGENTS.md is an instructions file published in the GitHub repository sandeep84397/agent-brain (10 stars, last pushed 1mo ago), licensed MIT. It adds 241 tokens to every session, about $0.0012 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.