loadbearing: Instructions file for Claude Code

AGENTS.md

loadbearing AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from andypgray/loadbearing. It costs 6,853 tokens per session, scanned A, original, MIT.

Repository instructions for LoadBearing, a tool that checks and explains software architecture.

In plain words
What is it for?
Use them when modifying LoadBearing or its architecture documentation, running its checks, rendering artifacts, or reviewing structural changes.
Why use it?
They keep the repository's architecture rules, generated documents, tests, and diagrams synchronized as the code changes.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: SubagentStop hook event, but also the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/andypgray/loadbearing/agents-md"><img src="https://agentmods.dev/badge/instructions/andypgray/loadbearing/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6,853 This file is loaded in full into every session.
When invoked 6,853 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.06853 $0.06853
Opus 5.5 $0.02741 $0.02741
Sonnet 5.5 $0.01371 $0.01371
Haiku 4.5 $0.00685 $0.00685

Measured 1mo ago against content hash 6fc074d56c76, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

loadbearing 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 1mo 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 · 88 lines

How it starts

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

LoadBearing — architecture for agents

The self-hosting principle

A compiler that cannot compile itself is not trusted with anyone else's source. LoadBearing accepts the same test: this repository is the tool's own first consumer. The spec in arch/Zphil.LoadBearing.ArchSpec governs this code, and every read verb runs against this solution in CI: check, render, status, graph, explain. The xUnit adapter runs the same rules as individually named tests. The renderer writes sixteen committed artifacts here, the block below, the diagram in ARCHITECTURE.md, thirteen per-directory cards and the model file loadbearing.model.json, each recomposed by a test that fails on drift. One of those tests goes further and fails on a committed card that no rule placement produced, so a card orphaned by a spec change cannot sit here being read. CI re-renders the repository and requires a zero diff, unscoped, because a card written somewhere nobody predicted still has to be committed. Only baseline has no gate pointing at this repository: it is the human escape valve, and a gate that ran it would be moving the ratchet.

The feedback loop is live in this working copy rather than in a clone. A Stop hook, with a SubagentStop twin for workers, runs check when a turn ends and refuses the stop on a red rule, so the agent reads the report and keeps working instead of handing back code that breaks a law; a registered MCP server answers architecture queries in the same session. Claude Code sessions here read this file and the cards beside it too, through a local @AGENTS.md import and Claude Code's option to read both CLAUDE.md and AGENTS.md. That wiring is machine-local, so what a clone gets is hooks/: both wrappers, the config snippet, the launcher that keeps a warm server from holding this repository's build outputs, and what to paste where. The contract those wrappers implement does not rest on anyone's local setup. Tests execute them as real child processes across the whole exit-code mapping, and CI installs the packed global tool, walks the README quickstart end to end, and scaffolds the spec project the derive_spec recipe publishes — PackageReference and all — out of that same pack, once on a repository that pins package versions per project and again on one that manages them centrally, holding it green on conforming code, red on a violation, and red again when the one line that keeps a single csproj valid on both is deleted. The repository is the evidence for the product's claim: rules that cannot drift, prose that cannot rot.

Read the full file on GitHub · 88 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. 1mo ago Changed · +44 tokens per session 6fc074d56c76
  2. 1mo ago Changed · +11 lines · +1,569 tokens per session 13b042248347
  3. 1mo ago Changed · +1 lines · +291 tokens per session cbb6bdb5477f
  4. 2mo ago First seen · 76 lines · 4,949 tokens per session scan A 11877a58f621

Subscribe to this mod's changes

loadbearing AGENTS.md is an instructions file published in the GitHub repository andypgray/loadbearing (0 stars, last pushed 1mo ago), licensed MIT. It adds 6,853 tokens to every session, about $0.0274 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-08-31.

Related

loadbearing AGENTS.md compared with instructions from other repositories

loadbearing AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
loadbearing AGENTS.mdandypgray/loadbearingInstructions file01mo agoMITA6,853Claude Code, Codex, OpenCode
plan-forge api-patterns.instructions.mdsrnichols/plan-forgeInstructions file63d agoMITA2,049GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot