beancount-io: Instructions file for Claude Code

AGENTS.md

beancount-io AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from bex-co/beancount-io. It costs 5,509 tokens per session, scanned A, original, MIT.

Repository instructions for Beancount.io, a monorepo that contains several related applications and services. They tell coding agents how to follow shared and package-specific rules.

In plain words
What is it for?
Guiding code changes in the CLI, web client, mobile app, backend services, deployment files, and shared skills. They also document the project roadmap and repository-wide conventions.
Why use it?
They reduce mistakes when an agent works across many packages, such as using the right instructions and keeping Codex and Claude Code behavior consistent.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: PreToolUse hook event, but also the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is bex-co/beancount-io's own configuration. It tells Claude Code, Codex and OpenCode how to work on beancount-io 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 beancount-io configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bex-co/beancount-io. 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/bex-co/beancount-io/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/bex-co/beancount-io

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 beancount-io AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/bex-co/beancount-io/agents-md/github.svg)](https://agentmods.dev/instructions/bex-co/beancount-io/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/bex-co/beancount-io/agents-md"><img src="https://agentmods.dev/badge/instructions/bex-co/beancount-io/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 beancount-io AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/bex-co/beancount-io/agents-md"><img src="https://agentmods.dev/badge/instructions/bex-co/beancount-io/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,509 This file is loaded in full into every session.
When invoked 5,509 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.05509 $0.05509
Opus 5.5 $0.02204 $0.02204
Sonnet 5.5 $0.01102 $0.01102
Haiku 4.5 $0.00551 $0.00551

Measured yesterday against content hash 6224bd11ee59, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

beancount-io 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 · 137 lines

How it starts

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

Beancount.io Monorepo

Monorepo for Beancount.io — double-entry bookkeeping made easy.

This file holds repo-wide rules. Per-package guidance lives next to the code:

  • cli/AGENTS.md — Python CLI (bea with a bundled subprocess helper)
  • dashboard/AGENTS.md — web client
  • mobile/AGENTS.md — React Native app
  • backend-cluster/backend-v2/AGENTS.md — API gateway and background services
  • backend-cluster/ledger/AGENTS.md — rustledger-WASM ledger service
  • backend-cluster/idl/AGENTS.md — OpenAPI contracts and generated clients
  • deploy/AGENTS.md — local and hosted deployment targets
  • skills/AGENTS.md — customer-facing Beancount skills package
  • .agents/AGENTS.md — internal repository development skills

Codex and Claude Code compatibility

  • AGENTS.md is the single instruction file at every scope — a real file, never a symlink. There is no CLAUDE.md anywhere in this repo; never add one, and never keep a parallel copy of a scope's instructions under another name.
  • Claude Code reads AGENTS.md through its built-in agents-md plugin. The repo commits that setting in .claude/settings.json (pluginConfigs["agents-md@builtin"].options.instructionFiles = "claude-md-or-agents-md"), so a fresh clone picks up the guidance without local configuration. Codex reads AGENTS.md natively.
  • Internal development skills live in the real directory .agents/skills/ (Codex). The root .claude/skills must be a relative symlink to ../.agents/skills so Claude Code reads the same implementations. Edit .agents/skills/ only; do not create platform-specific copies.
  • Customer-facing beancount-* skills live separately, each at skills/<name>/SKILL.md. Their guides and examples live in docs/skills/ and their installer, checks, and tests in scripts/skills/; all three belong to the skills package documented by skills/AGENTS.md, and skills/ itself holds nothing but skill folders, README.md, AGENTS.md, and the shared MIT-0 LICENSE. Keep ledger workflows there and repository maintenance, QA, PM, and release workflows in .agents/skills/; do not mix the two trees or link the customer suite into the repository's development skill directory.
  • Slash commands are skills. Every internal /name workflow lives at .agents/skills/<name>/SKILL.md (with allowed-tools in its frontmatter when it needs pre-approved tools); there is no .claude/commands/ at the root. A command there would be invisible to Codex, and Claude Code lets a same-named skill shadow it anyway.
  • Write instructions and skills using behavior supported by both Claude Code and Codex. If platform-specific configuration or tooling is unavoidable, label it clearly and provide equivalent behavior for the other agent.
  • After changing instruction files, skills, or the shared-skill symlink, run python3 scripts/check-agent-guidance.py. It verifies every tracked scope is a real AGENTS.md, including nested feature guides, that no CLAUDE.md has crept back in, and that the development-skills link and separate customer skill directory are intact.

Read the full file on GitHub · 137 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 · 137 lines · 5,509 tokens per session scan A 6224bd11ee59

Subscribe to this mod's changes

beancount-io AGENTS.md is an instructions file published in the GitHub repository bex-co/beancount-io (808 stars, last pushed yesterday), licensed MIT. It adds 5,509 tokens to every session, about $0.0220 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-12-01.

Related

beancount-io AGENTS.md compared with instructions from other repositories

beancount-io AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
beancount-io AGENTS.mdbex-co/beancount-ioInstructions file808yesterdayMITA5,509Claude 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 file109kyesterdayMITA3,077GitHub Copilot