RepoResident CLAUDE.md

RepoResident CLAUDE.md is an instructions file for coding agents from ychamel/RepoResident. It costs 1,623 tokens per session, scanned C, original, MIT.

A repository instruction file that explains how an agent should work in the RepoResident codebase. It covers project routing, session procedures, delegation, and rules for checking source code before making changes.

In plain words
What is it for?
Use it to determine where to start, which project files to inspect, how to handle design and implementation decisions, and how to leave useful session records.
Why use it?
It gives future sessions a shared operating guide and helps them resume work with the repository's persistent state. It also reduces mistakes caused by guessing how project files or functions behave.

Instructions file

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/ychamel/reporesident/claude-md
Clone the repo
git clone --depth 1 https://github.com/ychamel/RepoResident

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 RepoResident CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ychamel/reporesident/claude-md.svg)](https://agentmods.dev/instructions/ychamel/reporesident/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/ychamel/reporesident/claude-md"><img src="https://agentmods.dev/badge/instructions/ychamel/reporesident/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,623 This file is loaded in full into every session.
When invoked 1,623 The same file — it is already loaded in full.
Security scan C 1 finding. 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.01623 $0.01623
Opus 5 $0.00812 $0.00812
Sonnet 5 $0.00325 $0.00325
Haiku 4.5 $0.00162 $0.00162

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

Security

Grade C, and why

RepoResident CLAUDE.md scanned grade C with 1 finding 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

## Delegation <!-- only if your tool can spawn subagents; otherwise ignore this section -->
CLAUDE.md · 105 lines

How it starts

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

Agent Operating Manual

You operate this repo through the harness in .agent/ — persistent state and procedures that let any session, on any model, pick up work with minimal context and leave the repo better than found. First session on this repo? .agent/STATE.md will route you to bootstrap.

Prime directives

  1. The user outranks this file; this file outranks habit. When rules conflict: Hard rules > active workflow > style sections.
  2. Correct and complete beats fast. No stubs, no placeholder code, no mock data outside tests, no silently narrowed scope. If you can't finish honestly, say exactly what's missing.
  3. Smallest sufficient context: .agent/MAP.md → area doc if one exists → grep → read only implicated files. Never read directories wholesale. Lost after ~3 file reads? Re-scope from MAP or the area doc instead of reading more code.
  4. Never call an API/function you haven't seen defined this session — read its definition first. Unsure how something behaves? Verify in source, not from memory.
  5. Code is truth; docs serve code. A wrong harness doc is a bug — fix it in passing (≤5 lines) or leave a flag: in the journal.
  6. Chat carries outcomes; files carry detail. Long analysis → .agent/scratch/, designs → .agent/designs/, lasting choices → .agent/DECISIONS.md, deferred bugs/work → .agent/ISSUES.md.

Session protocol

START: read .agent/STATE.md → classify the request (routing below) → open that one workflow file and follow it. Read only what the workflow tells you to read. DURING: after each completed slice/checkpoint, update the Active: line in STATE.md (crash insurance). END — mandatory whenever you changed anything:

  1. Rewrite .agent/STATE.md in full (template is inside it; Session +1).
  2. Append to .agent/journal/<YYYY-MM>.md: S<n> <YYYY-MM-DD> <workflow>: outcome + key files (≤4 lines; optionally flag: <debt/risk noticed>).
  3. Structure changed → update MAP.md. Lasting choice made → one line in DECISIONS.md.
  4. Tick your workflow's Done checklist in your final message. If the new Session number is a multiple of 10, add "maintenance due" to STATE Next: (run .agent/workflows/maintain.md now if the session has room).

Read the full file on GitHub · 105 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 · 105 lines · 1,623 tokens per session scan C bc4554f1c2f3

Subscribe to this mod's changes

RepoResident CLAUDE.md is an instructions file published in the GitHub repository ychamel/RepoResident (6 stars, last pushed 6d ago), licensed MIT. It adds 1,623 tokens to every session, about $0.0081 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.