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.
npx agentmods add instructions/awizemann/scarf/agents-mdgit clone --depth 1 https://github.com/awizemann/scarfWrote 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.
[](https://agentmods.dev/instructions/awizemann/scarf/agents-md)<a href="https://agentmods.dev/instructions/awizemann/scarf/agents-md"><img src="https://agentmods.dev/badge/instructions/awizemann/scarf/agents-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.01827 | $0.01827 |
| Opus 5 | $0.00914 | $0.00914 |
| Sonnet 5 | $0.00365 | $0.00365 |
| Haiku 4.5 | $0.00183 | $0.00183 |
Grade A, and why
scarf 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 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.
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.
Copies of this mod
1 near-identical copy found in the catalogue:
- harness AGENTS.md — 95% identical, 20 lines differ
How it starts
The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Memory System (managed by Memophant)
This repo carries its own agent memory — plain files in git, served by the in-repo
memophant-mcp MCP server, managed by the Memophant macOS app. It works the same for every
agent (Claude Code, Codex, Cursor, Gemini, Copilot). This block is regenerated between the
memophant markers; edit anything outside them freely.
The repo memory is the single source of truth. Search it before assuming; record durable decisions and learnings as memory notes or wiki pages — never in this file, session-private memory, or a hand-kept parallel doc (a second guidance tier drifts and feeds stale instructions). Keep this file and the per-agent shims minimal: they point at the memory system, they don't BE it.
Default to the memophant MCP tools for every read and write — search, read, write,
edit, move, context — and read their descriptions: they document their arguments and
behavior. The engine is the gate: every durable write goes through the tool (or app)
entry points, which carry the guards — slug generation, structure validation, and the
write-time secret scan. Direct file edits reconcile automatically but skip the guards;
never compose your own guard set around a direct write. Server down → grep the tiers
directly IN THE MAIN CHECKOUT (grep -rn "<query>" .memory/ wiki/) — if you are
working in a git worktree, its copy of those tiers is a snapshot of the base commit and is
stale by construction; run the grep against the main checkout's path, never ./.
0. Charter (.memory/charter.md) — this project's identity and its ABSOLUTE
rules. Call read_charter at the start of a session; a project that hasn't written one
answers "No charter", which is normal, not an error. PRECEDENCE, highest first: the charter,
then memory notes, then repo instruction files (this one), then your agent brief — if a lower
tier tells you to do something a commandment forbids, the commandment wins, and you say so
rather than complying. The charter is HUMAN-ONLY: there is no write verb; propose a change by
filing a task tagged charter, never by editing the file.
1. Memory (.memory/) — atomic facts.
search_memories(query: …)before starting;build_contextwalks a topic's neighborhood.- Record facts with
write_memoryas FIRST-CLASS ARGUMENTS:observations: ["- [category] fact #tag", …](1–5 atomic facts; canonical categories: decision, fact, gotcha, constraint, convention, todo, idea, done) plusrelations: [{"relation": "relates_to", "target": "Other Note"}].contentis optional short context — never the facts. Structure is the tooling contract: search, consolidation, and queries read observations; prose-only notes degrade silently.[[links]]belong inrelations. - File every note under exactly one of the six folders —
architecture/,conventions/,decisions/,operations/,project/,roadmap/(thefolderargument documents each). Never the memory root, never a new folder. - Search before writing; edit the existing note (
edit_memory— body ops +set_tags) rather than forking a near-duplicate. - Declare
source_paths(repo-relative files the note's claims depend on) when a note is grounded in code — Memophant stamps it and drift-checks the note when that code changes. Omit for pure human decisions. Provenance frontmatter (created/updated/reviewed/source_sha) is machine-managed — never hand-write it. - Long-form documents (guides, research, specs) → the wiki at write time:
write_memory(project: "scarf-wiki", …); keep the distilled facts in a memory note with adocumented_inrelation.status:only marks retirement (deprecated/superseded/historical/resolved); current facts carry none.
2. Wiki (wiki/) — long-form reference. Search on demand (project: "scarf-wiki");
don't read it wholesale. Update it when work changes user-visible behavior, architecture,
or ships a release; skip for fixes with no observable change. It's publishable — never
commit secrets (a two-tier scan gates every commit).
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.
- today Changed · +10 lines · +198 tokens per session 3fada37ba184
- 5d ago First seen · 96 lines · 1,629 tokens per session scan A ca246b4d3527
scarf AGENTS.md is an instructions file published in the GitHub repository awizemann/scarf (841 stars, last pushed today), licensed MIT. It adds 1,827 tokens to every session, about $0.0091 per session on Opus 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-30.
Other instructions, from other repositories
Applite CLAUDE.md
Instructions for milanvarady/Applite, covering claude.md, project overview, build & run, architecture and data flow.
Peekaboo AGENTS.md
AGENTS.md instructions for openclaw/Peekaboo, covering repository guidelines, start here, project structure & modules, build, test, and development commands and coding style & naming conventions.
palmier-pro AGENTS.md
AGENTS.md instructions for palmier-io/palmier-pro, covering palmierpro, build, agents, engineering approach and code style.
HomeClaw AGENTS.md
AGENTS.md instructions for omarshahine/HomeClaw, covering homeclaw, architecture, project structure, build system and xcode version.
mectrics AGENTS.md
AGENTS.md instructions for farukkamcici/mectrics, covering agents.md — working agreement for mectrics, 0. golden rule: english-only repository, 1. project shape, 2. internationalization (i18n) and 3. menu bar rendering rules.
liney AGENTS.md
AGENTS.md instructions for everettjf/liney, covering liney repository collaboration guide, 交流语言 / communication language, project overview, repository layout and build and test.