belmont AGENTS.md

belmont AGENTS.md is an instructions file for Codex, OpenCode from blake-simpson/belmont. It costs 12,732 tokens per session, scanned C, original, Apache-2.0.

Repository instructions for Belmont, a software project, covering its helper agents, self-learning process, worktree handling, merging, and verification rules. An AGENTS.md file gives coding agents project-specific instructions.

In plain words
What is it for?
Use it when working on Belmont's automatic loops, agent skills, parallel work, workspace lifecycle, merge process, state model, or verification steps.
Why use it?
It tells agents which project knowledge to read before changing sensitive parts of the code and records rules that prevent unsafe or incomplete changes.

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/blake-simpson/belmont/agents-md
Clone the repo
git clone --depth 1 https://github.com/blake-simpson/belmont

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 belmont AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/blake-simpson/belmont/agents-md.svg)](https://agentmods.dev/instructions/blake-simpson/belmont/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/blake-simpson/belmont/agents-md"><img src="https://agentmods.dev/badge/instructions/blake-simpson/belmont/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 12,732 This file is loaded in full into every session.
When invoked 12,732 The same file — it is already loaded in full.
Security scan C 2 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.12732 $0.12732
Opus 5 $0.06366 $0.06366
Sonnet 5 $0.02546 $0.02546
Haiku 4.5 $0.01273 $0.01273

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

Security

Grade C, and why

belmont AGENTS.md scanned grade C with 2 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.

Tells the agent never to refusehighAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

because upgrading Belmont must never refuse a run that worked the day before

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `install.sh` (root) — Public curl-pipe-sh installer for end users.
AGENTS.md · 346 lines

How it starts

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

AGENTS

This file provides guidance to Ai Agents when working with code in this repository.

Self-learning loop — consult knowledge/KNOWLEDGE.md first

Belmont's architectural memory lives in the knowledge/ tree at the repo root. knowledge/KNOWLEDGE.md is a thin index that routes you to self-contained topic entries — one per concept — organised by domain. The index is cheap to read in full; entries are read on-demand based on what you're about to touch.

Rules:

  • Before designing a fix for any bug in the auto loop, skills, worktree lifecycle, merge strategy, verification, agent dispatch, or state model: read knowledge/KNOWLEDGE.md. Match the "Read when you're about to…" column to your task; open only the entries that match. Most sessions need 1–3 entries, not the whole tree.
  • Every entry has a stable skeleton (Why this mattersInvariantHow it's enforcedFailure mode if you break itDon't re-doEvidenceRevisions). Jump to Don't re-do before proposing a "why don't we just…" approach — a lot of them are already ruled out with reasoning.
  • Cross-domain entries live in knowledge/cross-cutting/ and carry a Domains: header line you can grep. Single-domain entries live in knowledge/<domain>/.
  • Amend, don't append. When you produce a durable insight (a new invariant, a design option deliberately rejected, a rough edge discovered), edit the relevant entry in place and add one line to its Revisions footer: YYYY-MM-DD — what changed. Do not add dated blocks at the top.
  • New concept → new entry. If a session uncovers a genuinely new topic that doesn't fit any existing entry, create knowledge/<domain>/<topic>.md following the skeleton, add a row to KNOWLEDGE.md's routing table. Do not inline new concepts into existing entries to avoid the file count going up — file count going up is fine when the concept is real.
  • Cross-topic chronology is git log -- knowledge/. There is no global decision log; it would duplicate git and bloat unbounded.
  • Treat AGENTS.md itself as live: if a change in a knowledge entry implies agents should approach work differently on first read, update the relevant section of AGENTS.md so the guidance is immediate. Keep AGENTS.md terse — prefer linking into the knowledge tree over duplicating detail.
  • When you update AGENTS.md, say so in your end-of-turn summary and note which entry motivated the change.

Read the full file on GitHub · 346 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 First seen · 346 lines · 12,732 tokens per session scan C 5e630ec131fb

Subscribe to this mod's changes

belmont AGENTS.md is an instructions file published in the GitHub repository blake-simpson/belmont (4 stars, last pushed 15d ago), licensed Apache-2.0. It adds 12,732 tokens to every session, about $0.0637 per session on Opus 5. A static security scan graded it C with 2 findings (tells the agent never to refuse, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.