model-based-agentic-software-engineering: Instructions file for Claude Code

CLAUDE.md

model-based-agentic-software-engineering CLAUDE.md is an instructions file for Claude Code from davisjam/model-based-agentic-software-engineering. It costs 32,137 tokens per session, scanned C, original, MIT.

Repository instructions for a catalogue of 85 design patterns that help govern groups of autonomous coding agents and limit their failures.

In plain words
What is it for?
Use them when editing the catalogue site, its landing pages, entry pages, or the book, especially when adding or revising governance concepts.
Why use it?
They explain how the preview website and the fuller book should stay consistent when content is added or changed.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions subagents.

This is davisjam/model-based-agentic-software-engineering's own configuration. It tells Claude Code how to work on model-based-agentic-software-engineering 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 model-based-agentic-software-engineering configures →

Reuse

Borrowing it

Nothing to install: this file belongs to davisjam/model-based-agentic-software-engineering. 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/davisjam/model-based-agentic-software-engineering/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/davisjam/model-based-agentic-software-engineering

Made for: Claude Code.

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 model-based-agentic-software-engineering CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/davisjam/model-based-agentic-software-engineering/claude-md/github.svg)](https://agentmods.dev/instructions/davisjam/model-based-agentic-software-engineering/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/davisjam/model-based-agentic-software-engineering/claude-md"><img src="https://agentmods.dev/badge/instructions/davisjam/model-based-agentic-software-engineering/claude-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 model-based-agentic-software-engineering CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/davisjam/model-based-agentic-software-engineering/claude-md"><img src="https://agentmods.dev/badge/instructions/davisjam/model-based-agentic-software-engineering/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32,137 This file is loaded in full into every session.
When invoked 32,137 The same file — it is already loaded in full.
Security scan C 3 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.32137 $0.32137
Opus 5.5 $0.12855 $0.12855
Sonnet 5.5 $0.06427 $0.06427
Haiku 4.5 $0.03214 $0.03214

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

Security

Grade C, and why

model-based-agentic-software-engineering CLAUDE.md scanned grade C with 3 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 today.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

`rm -rf` leaves dangling worktree registrations behind.

Makes network callslowCapability

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

- **The honest end-to-end check is the PUBLISHED PAGE**, not the pipeline: `curl` the URL and

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

`-C`; reach for it rather than `subprocess.run(["git", …], cwd=…)`.
CLAUDE.md · 1,499 lines

How it starts

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

CLAUDE.md — agent-governance-mechanisms

This repo is a pattern catalogue: 85 governance mechanisms that keep a fleet of autonomous coding agents productive while bounding their failures, each written as a Gang-of-Four-style design pattern. It is published as a static GitHub Pages site and embedded in a parent repo as a git submodule.

catalog.py is the one tool — stdlib-only, no dependencies (so python3 catalog.py … runs on a fresh checkout with nothing installed). Do not add pip dependencies; keep it clone-and-run.

Site is a preview; the book claims and expands

The published site — the landing, the catalogue views, the entry pages — is a preview: concise framings and entry points. The book (under book/) is where each idea is claimed and expanded. Two jobs, one for each surface.

The standing implication: book coverage ⊇ site framings. Any conceptual framing that appears on the site should have a fuller treatment in the book. When you add a framing to the site's landing prose (the LANDING_INTRO, the schools, the ways, the spectrum axis) or an entry page, either the book already expands it or you owe it a home there. Site-only material is limited to adoption and navigation — DIY-vs-install, the nav cards, the quick-start; those need no book counterpart. Everything conceptual does.

What is a mechanism?

A mechanism is a recurring, failure-killing pattern of governance — written like a Gang-of-Four design pattern: the failure class it prevents, the shape that prevents it, and why it is not just the cheaper thing everyone already does. A mechanism earns its own entry only when it clears three bars:

  1. It kills a failure class, not a one-off bug. If you can't name the recurring failure, it isn't a mechanism yet.
  2. It's distinct. It does something the naive or adjacent alternative can't — every entry must survive its own "Why it's not just [X]" section. Two entries built on the same pattern are distinct only when they vary a named axis (lock cardinality, object model, enforcement scope, domain); if nothing varies, merge them.
  3. Its examples instantiate it. Every example — in Motivation, in "Why it's not just…", in Known uses — must be a real case of this mechanism, not a sibling's. (A relational config-field ⊆ sample check is a coherence lint, not a per-source semantic lint — so cite it under coherence only.) An example borrowed from a neighbour blurs the exact boundary the catalogue exists to draw.

Read the full file on GitHub · 1,499 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. today Changed · +16 lines · +336 tokens per session 9ae792e9c5ed
  2. 12d ago Changed · +65 lines · +1,314 tokens per session 16615f8b5e85
  3. 13d ago Changed · +69 lines · +1,508 tokens per session scan A → C fddc6a6a94c9
  4. 19d ago Changed · +34 lines · +716 tokens per session 51d309915e25
  5. 20d ago Changed · +56 lines · +1,253 tokens per session ce311e4c8f18
  6. 24d ago Changed · +26 lines · +601 tokens per session 562e911b7130
  7. 25d ago Changed · +92 lines · +2,035 tokens per session afe0f00a636e
  8. 26d ago Changed · +145 lines · +3,191 tokens per session eaba464ddc15
  9. 27d ago Changed · +40 lines · +817 tokens per session 84952cc70bd1
  10. 28d ago First seen · 956 lines · 20,366 tokens per session scan A 4b9581f4872a

Subscribe to this mod's changes

model-based-agentic-software-engineering CLAUDE.md is an instructions file published in the GitHub repository davisjam/model-based-agentic-software-engineering (64 stars, last pushed yesterday), licensed MIT. It adds 32,137 tokens to every session, about $0.1285 per session on Opus 5.5. A static security scan graded it C with 3 findings (recursive force delete, makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

model-based-agentic-software-engineering CLAUDE.md compared with instructions from other repositories

model-based-agentic-software-engineering CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
model-based-agentic-software-engineering CLAUDE.mddavisjam/model-based-agentic-software-engineeringInstructions file64yesterdayMITC32,137Claude Code
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 file150kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109kyesterdayMITA3,077GitHub Copilot