claude-devtools: Agent for Claude Code

.claude/agents/claude-md-auditor.md

claude-md-auditor is an agent for Claude Code from matt1398/claude-devtools. It costs 527 tokens per session (2,604 once invoked), scanned A, original, MIT.

An autonomous documentation checker for CLAUDE.md files and .claude/rules files, which guide coding agents inside a project. It compares those instructions with the actual files and codebase structure.

In plain words
What is it for?
It is for auditing and correcting project guidance files while preserving their existing style and documenting only what the codebase actually contains.
Why use it?
It helps find documentation that became inaccurate after refactors, renamed files, new features, or directory changes. This reduces the chance that an agent follows outdated project instructions.

Agent for Claude Code

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

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

About the project

claude-devtools is a visual debugging application that reads Claude Code's locally saved logs and session transcripts and presents their hidden details. Developers use it to inspect tool inputs and outputs, file activity, token usage, subagents, context consumption, and team coordination. The catalogue entries add commands, hooks, agents, instructions, and settings for the tool.

matt1398/claude-devtools · 3,994 stars · on GitHub · claude-dev.tools

Reuse

Borrowing it

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

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 claude-md-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/matt1398/claude-devtools/claude-md-auditor/github.svg)](https://agentmods.dev/agents/matt1398/claude-devtools/claude-md-auditor)
Your own site
<a href="https://agentmods.dev/agents/matt1398/claude-devtools/claude-md-auditor"><img src="https://agentmods.dev/badge/agents/matt1398/claude-devtools/claude-md-auditor/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 claude-md-auditor

Your own site · 80×15
<a href="https://agentmods.dev/agents/matt1398/claude-devtools/claude-md-auditor"><img src="https://agentmods.dev/badge/agents/matt1398/claude-devtools/claude-md-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 527 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,604 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.00527 $0.02604
Opus 5.5 $0.00211 $0.01042
Sonnet 5.5 $0.00105 $0.00521
Haiku 4.5 $0.00053 $0.00260

Measured 1mo ago against content hash 55c4c2a7f17c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

claude-md-auditor 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 1mo 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/claude-md-auditor.md · 199 lines

How it starts

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

You are an elite CLAUDE.md auditor and documentation integrity specialist. Your sole purpose is to ensure every CLAUDE.md file and .claude/rules/*.md file in the project accurately reflects the current codebase state. You work autonomously: discover, analyze, and fix documentation drift without manual guidance.

You are methodical, thorough, and allergic to documentation that lies about the codebase.

Core Principles

  1. Truth from codebase, not docs — The filesystem is the source of truth. If a CLAUDE.md says a file exists but Glob can't find it, the doc is wrong.

  2. Max 200 lines per file — Keep files concise. Split if over limit.

  3. Parallel tool calls — Always batch independent Glob/Grep/Read calls in a single turn. Never sequentially read files that can be read in parallel. This is critical for performance.

  4. Surgical edits — Use Edit (not Write) for existing files. Change only what's wrong. Don't rewrite entire files when a few lines need fixing.

  5. No invention — Only document what actually exists. Never add aspirational content.

  6. Preserve voice and style — Match the existing writing style of each file. Don't introduce new formatting patterns unless the file has none.

  7. Delete stale entries — Remove references to files, functions, or patterns that no longer exist. Don't comment them out.

  8. Add missing entries — If the codebase has files/services/hooks not mentioned in docs, add them in the established style.

Process

Phase 1: Discovery (parallel)

Check your agent memory first. Previous audits may have notes about project conventions or recurring drift patterns.

Make ALL of these calls in a single turn:

  • Glob: **/CLAUDE.md
  • Glob: .claude/rules/*.md
  • Glob: src/**/*.ts (to understand actual structure)
  • Glob: src/**/*.tsx
  • Glob: test/**/*.test.ts

Then, in the next turn, read every discovered CLAUDE.md and rules file in a single parallel batch.

Phase 2: Cross-Reference Analysis

Read the full file on GitHub · 199 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. 1mo ago First seen · 199 lines · 527 tokens per session scan A 55c4c2a7f17c

Subscribe to this mod's changes

claude-md-auditor is an agent published in the GitHub repository matt1398/claude-devtools (3,994 stars, last pushed 1mo ago), licensed MIT. It adds 527 tokens to every session and 2,604 once invoked, about $0.0021 per session on Opus 5.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.

Related

Other agents, from other repositories

php-reviewer

PHP 8.5 and Clean Architecture code review specialist — DDD, hexagonal, PER-CS 3.0, PHPStan, security analysis.

TheBeardedBearSAS/claude-craft · 34 tokens

architecture-analyst

Analyzes system architecture, identifies patterns/anti-patterns, and provides strategic recommendations. Use for architectural reviews, refactoring planning, or system design decisions.

travisjneuman/.claude · 36 tokens

code-review

Multi-persona orchestrator for adversarial review of R, Python, Julia, or Stata research scripts. Runs an 11-category baseline checklist, then dispatches 3-6 specialist sub-agents (correctness, reproducibility, design, plus optional domain / performance / security) in parallel. Deduplicates findings across reviewers…

flonat/flonat-research · 398 tokens

ia-database-guardian

Reviews database schema, constraints, and migration code for safety. Use when PRs touch migrations, data models, ID mappings, enum conversions, backfills, or persistent data. Postgres-specific query, index, and type patterns defer to the ia-postgresql skill; this agent is the migration-safety review gate.

iliaal/whetstone · 69 tokens

spirit-check

Flags drift between a SPEC's interpretation and the user's verbatim ask — shape, scope and vocabulary inflation, dropped premises — reading ONLY the user's literal words and the SPEC's behavior contract, dispatched after SPEC writing alongside the adversarial reviewer that hunts holes instead.

Ashkaan/contextium · 55 tokens

ia-best-practices-researcher

Researches external framework docs, version-specific constraints, and industry conventions for any technology. Use when you need authoritative external documentation.

iliaal/whetstone · 34 tokens