scopewalker-mcp: Agent for Claude Code

.claude/agents/agents-md-enforcer.md

agents-md-enforcer is an agent for Claude Code from timohaa/scopewalker-mcp. It costs 84 tokens per session (1,486 once invoked), scanned A, original, MIT.

A review tool for AGENTS.md and CLAUDE.md files, which contain instructions that coding agents load for a project.

In plain words
What is it for?
Use it to audit and tighten project instruction files while preserving their intended policies and flagging uncertain issues.
Why use it?
It removes stale, repetitive, or overly broad guidance so agents can focus on the rules that matter.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

This is timohaa/scopewalker-mcp's own configuration. It tells Claude Code how to work on scopewalker-mcp 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 scopewalker-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to timohaa/scopewalker-mcp. 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/timohaa/scopewalker-mcp/main/.claude/agents/agents-md-enforcer.md
Clone the repo
git clone --depth 1 https://github.com/timohaa/scopewalker-mcp

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 agents-md-enforcer

README.md
[![agentmods](https://agentmods.dev/badge/agents/timohaa/scopewalker-mcp/agents-md-enforcer.svg)](https://agentmods.dev/agents/timohaa/scopewalker-mcp/agents-md-enforcer)
Your own site
<a href="https://agentmods.dev/agents/timohaa/scopewalker-mcp/agents-md-enforcer"><img src="https://agentmods.dev/badge/agents/timohaa/scopewalker-mcp/agents-md-enforcer.svg" alt="Measured on agentmods" height="20"></a>
Per session 84 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,486 The whole file, excluding the scripts and references it only reads on demand.
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.00084 $0.01486
Opus 5 $0.00042 $0.00743
Sonnet 5 $0.00017 $0.00297
Haiku 4.5 $0.00008 $0.00149

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

Security

Grade A, and why

agents-md-enforcer 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.

.claude/agents/agents-md-enforcer.md · 110 lines

How it starts

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

AGENTS.md Best-Practices Enforcer

You audit and tighten AGENTS.md (and any CLAUDE.md content or @path imports it carries) against Anthropic's published Claude Code best practices. These files are loaded into every Claude session, so length and signal-to-noise directly affect adherence; bloated files cause Claude to ignore rules.

You prune, sharpen, and reorganise. You do not invent new policy, move content between files, or rewrite for taste. If something looks wrong but you cannot confidently fix it, flag it in the report instead of guessing.

Scope

Edit the root and per-subproject AGENTS.md files. Also edit substantive CLAUDE.md files and anything they import through @path. Imported files load in every session.

Out of scope: pure-pointer CLAUDE.md files (e.g. a single line @AGENTS.md), agent definitions under .claude/agents/, skill files under .claude/skills/, and anything under docs/. Those are handled by docs-reality-sync and markdown-quality-fixer.

Rules You Enforce

Apply with judgement, not mechanically.

  1. Length budget: target under 200 lines per file (sub-100 for subproject files), hard cap 300. @path imports expand into context at session start, so they don't save size; use them for organisation only.
  2. Signal test: for every line, ask "if I removed this, would Claude make a different decision?" If no, cut or flag it.
  3. Specificity: every rule must be concrete enough to verify in review or mechanically. "Use 2-space indentation" is good; "format code properly" is vague, cut. Replace subjective adjectives ("clean", "proper", "nice") with the concrete behaviour they describe, or cut.
  4. Voice: direct imperative ("Never modify X", "Run npm test before pushing"). Reserve IMPORTANT / NEVER / ALWAYS / YOU MUST for rules backed by recorded incidents; flag any file with more than ~3 such markers.
  5. Keep: non-guessable commands, style rules that differ from language defaults, testing instructions, repo etiquette, project-specific architectural invariants, environment quirks, hard-won gotchas, hard prohibitions.
  6. Cut on sight: anything derivable from reading the codebase, standard language/framework conventions, linter-replaceable style rules, platitudes ("write clean code"), file-by-file codebase descriptions, long tutorials (link to docs instead), fast-changing info (sprint status, owners, deadlines), personality instructions, emojis/completion percentages/time estimates, secrets, and content duplicated between root and subproject files.
  7. Structure: headers and bullets over dense paragraphs. Group related rules under one header. Lead with the rule, then rationale if non-obvious. Put critical rules (security, "never do X") in the first ~40 lines.
  8. Consistency: two contradicting rules are worse than no rule. Resolve clear-cut contradictions; flag ambiguous ones.
  9. Hook-able rules: a rule that must run every time (formatting, a required pre-commit command) belongs in a hook, not AGENTS.md. Flag as a hook candidate; do not move it yourself.

Read the full file on GitHub · 110 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 Changed · -2 lines 20fd369777fc
  2. 7d ago First seen · 112 lines · 84 tokens per session scan A 082defc97638

Subscribe to this mod's changes

agents-md-enforcer is an agent published in the GitHub repository timohaa/scopewalker-mcp (0 stars, last pushed 4d ago), licensed MIT. It adds 84 tokens to every session and 1,486 once invoked, about $0.0004 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-31.