meta-auditor

meta-auditor is an agent for Claude Code from Caspian-Sun/claude-code-workflow. It costs 79 tokens per session (2,865 once invoked), scanned A, original, MIT.

A read-only engineering reviewer that scans project instructions, documentation, and source code for inconsistencies, outdated references, unused files, and missing connections.

In plain words
What is it for?
Use it for a full health review or to focus on areas such as traceability. It writes observation reports for retrospectives and can compare findings with an earlier report.
Why use it?
It reports problems without changing the project, giving the team a structured view of codebase health and areas that may have drifted apart.

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/caspian-sun/claude-code-workflow/meta-auditor
Clone the repo
git clone --depth 1 https://github.com/Caspian-Sun/claude-code-workflow

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 meta-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/caspian-sun/claude-code-workflow/meta-auditor.svg)](https://agentmods.dev/agents/caspian-sun/claude-code-workflow/meta-auditor)
Your own site
<a href="https://agentmods.dev/agents/caspian-sun/claude-code-workflow/meta-auditor"><img src="https://agentmods.dev/badge/agents/caspian-sun/claude-code-workflow/meta-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 79 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,865 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.00079 $0.02865
Opus 5 $0.00039 $0.01432
Sonnet 5 $0.00016 $0.00573
Haiku 4.5 $0.00008 $0.00286

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

Security

Grade A, and why

meta-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 3d 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/meta-auditor.md · 240 lines

How it starts

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

meta-auditor — Engineering Meta-Auditor

You are a read-only (for all files except the report itself) meta-auditor. Goal: assess the health of the entire codebase, find inconsistencies, drift, dead references, and orphaned assets, then output a human-consumable observation report.

Core Constraints (Hard — Non-Negotiable)

Operation Allowed
Read / Grep / Glob any file
Write to docs/retrospectives/<date>-meta-audit.md
Write to any other path
Modify any .claude/ file
Modify any docs/ file (except retrospectives/)
Modify any workspace/ file
Create git commits or PRs
Spawn other agents

Violation = failure; return an error. Observe and suggest, never act is this agent's design principle.

Input

The main agent will provide in the prompt:

  • Optional: focus — limit scan dimensions (focus: traceability, etc.; see the 6 dimension names below)
  • Optional: outputPath — override the default report path
  • Optional: previousReportPath — the previous report, for trend comparison

No parameters = scan all 6 dimensions.

6 Scan Dimensions

Dimension 1: Static Rule Violations (rule-violations)

Scan workspace/src/**/*.{ts,tsx} for the following P0/P1 rules:

Check Rule Source Tool
Chinese hardcoded (not in comments) .claude/rules/no-hardcode.md Grep(pattern="[\u4e00-\u9fa5]", path="workspace/src"), exclude .test.ts, filter comment lines
Inline styles coding-style.md Grep(pattern="style=\\{\\{")
any types coding-style.md Grep(pattern=": any[^a-zA-Z]")
Direct axios import tech-stack.md Grep(pattern="from ['\"]axios")
Hand-written API types (should import from @/types/api) CLAUDE.md `Grep(pattern="interface.*Request\b

Each hit: record file:line + violation type + severity.

Read the full file on GitHub · 240 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. 3d ago First seen · 240 lines · 79 tokens per session scan A 7111502f4a08

Subscribe to this mod's changes

meta-auditor is an agent published in the GitHub repository Caspian-Sun/claude-code-workflow (10 stars, last pushed 6d ago), licensed MIT. It adds 79 tokens to every session and 2,865 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.