README

README is an agent for Claude Code from chrstian6/contractor. It costs 0 tokens per session (1,405 once invoked), scanned A, original, MIT.

A folder layout and naming guide for defining Claude Code agents and keeping their supporting documents together. Claude Code is a coding assistant that can load role-specific instructions from a project.

In plain words
What is it for?
Use it when organizing agent definitions, learning notes, executable support files, and project rules.
Why use it?
It prevents two agent definitions from colliding and makes all agent files easier to find and protect.

Agent for Claude Code

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 agents/chrstian6/contractor/readme
Clone the repo
git clone --depth 1 https://github.com/chrstian6/contractor

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 README

README.md
[![agentmods](https://agentmods.dev/badge/agents/chrstian6/contractor/readme.svg)](https://agentmods.dev/agents/chrstian6/contractor/readme)
Your own site
<a href="https://agentmods.dev/agents/chrstian6/contractor/readme"><img src="https://agentmods.dev/badge/agents/chrstian6/contractor/readme.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,405 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00000 $0.01405
Opus 5 $0.00000 $0.00702
Sonnet 5 $0.00000 $0.00281
Haiku 4.5 $0.00000 $0.00140

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

Security

Grade A, and why

README 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 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.

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.

template/.claude/agents/README.md · 119 lines

How it starts

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

The agent org — layout and conventions

One folder per agent. Claude Code loads .claude/agents/**/*.md recursively, so the nesting is free; a file is only treated as an agent definition if its frontmatter carries a name:. Everything else in the folder is a co-located doc.

.claude/agents/
  _lib/learn.sh            # the self-improvement loop, executable
  <agent>/
    AGENT.md               # the definition — has `name:` frontmatter, IS the agent
    LEARNINGS.md           # no frontmatter → a doc, not an agent. Append-only.

Why AGENT.md and not <agent>.md

Two files in the same directory whose frontmatter name matches collide — the loser is discarded silently and the winner follows unsorted readdir order, so which definition is live can differ between machines. One agent per folder makes that collision structurally impossible.

It also means a single glob — **/.claude/agents/**/AGENT.md — names every mandate in the org, which is what a deny rule needs to protect them all at once.

The definitions are RUN PROCEDURES, not prompts

Each AGENT.md is a numbered sequence of steps, each with a DONE WHEN line, bookended by a RECALL step and a LEARN step, and closed by a HARD STOPS block. This is deliberate:

  • A prose prompt is obeyed when remembered. A numbered step with a completion condition is checkable — by the agent, and by whoever reads the hand-back.
  • It matches the doctrine the rest of this repo already runs on: prefer a guard that executes over a guard that is written down . Where a step can be a command, it is written as a command.

When you edit a definition, keep the shape: steps in execution order, one DONE WHEN each, commands as commands.

Load in proportion to the task

An agent that loads everything it might need, every time, is not being thorough — it is being expensive, and whoever is waiting pays for it. Measured in a live run of one org's designer: ~121k tokens consumed before it had looked at a single screen, against a ~13k floor. The cause was two steps marked MANDATORY that never said how much.

Read the full file on GitHub · 119 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 · 119 lines · 0 tokens per session scan A 2fe3ceb95cde

Subscribe to this mod's changes

README is an agent published in the GitHub repository chrstian6/contractor (40 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,405 tokens. 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-30.