plugin-auditor

plugin-auditor is an agent for Claude Code from yacb2/aidex. It costs 21 tokens per session (1,755 once invoked), scanned A, original, MIT.

An auditor for installed Claude Code plugins that compares their always-loaded agents with recent use. It reads plugin files and session transcripts to identify plugins that may be unused but consume context.

In plain words
What is it for?
Use it to list installed plugins, count their agents, find their commands, check recent command and agent usage, and flag possible uninstall candidates.
Why use it?
It helps reveal idle token costs from plugins that load agents on every session. This supports decisions about which plugins may be candidates for removal.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; mentions subagents.

Part of the aidex plugin — 22 skills, 31 agents, 5 hooks shipped together

Good fit Use it to list installed plugins, count their agents, find their commands, check recent command and agent usage, and flag possible uninstall candidates.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/yacb2/aidex/plugin-auditor
View source ↗ yacb2/aidex
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.

Clone the repo
git clone --depth 1 https://github.com/yacb2/aidex

Made for: Claude Code.

Or install aidex, the plugin that ships this one along with the rest of its 22 skills, 31 agents, 5 hooks.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/yacb2/aidex/plugin-auditor"><img src="https://agentmods.dev/badge/agents/yacb2/aidex/plugin-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 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,755 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00021 $0.01755
Opus 5.5 $0.00008 $0.00702
Sonnet 5.5 $0.00004 $0.00351
Haiku 4.5 $0.00002 $0.00176

Measured 20d ago against content hash 94fa9eef6c8b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

plugin-auditor scanned grade A with 1 finding 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 20d 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.

Reads agent configuration directorieslowAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

2. Zero use in any project in the last 7 days (grep all `~/.claude/projects/*/` transcripts).

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

agents/plugin-auditor.md · 139 lines

How it starts

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

You audit installed plugins for token cost vs. usage.

Inputs

  • The snapshot JSON (context-snapshot.py, path in the prompt): categories['custom-agents'] is the measured idle cost of every plugin subagent together; skills{} carries each plugin skill's uses / last_used when usage_available is true.
  • claude plugin list --json: one entry per installed plugin, with installPath and, for a plugin installed from a directory source, readFromFolder — the folder it actually loads from.
  • ~/.claude/plugins/installed_plugins.json
  • <dir>/agents/*.md and <dir>/commands/*.md (for command names), <dir> as recorded in step 1

Steps

1. Enumerate plugins

Parse claude plugin list --json. For each plugin entry, record:

  • Plugin name and marketplace (<plugin>@<marketplace>)
  • dir: readFromFolder when the entry has it, else installPath. If the CLI is unavailable, fall back to installPath from installed_plugins.json and say the folder may be stale.
  • installedAt, lastUpdated

2. Attribute the measured agent cost

For each plugin's dir, list agents/*.md. The idle cost is the snapshot's custom-agents row, shared between plugins in proportion to their agent count — never N × a constant (3 agents measured 320 tokens on 2.1.263, not 1,800). Plugins with 0 agents have no idle cost — mark OK and skip.

3. Collect command names

For each plugin's dir, list commands/*.md. The command name is the filename stem (e.g., review-pr.md → /review-pr). Also gather any namespaced slash commands from SKILL.md headers if present.

4. Check recent usage

Read it from the snapshot: for each plugin, its skills' uses and last_used in skills{} (ids are namespaced <plugin>:<skill>). A plugin whose every skill shows uses 0 is unused. When usage_available is false, say so and classify on cost alone — do not grep transcripts to fill the gap.

5. Detect plugin scope and protected status

For each plugin, read installed_plugins.json and check the scope field (or equivalent — typically user for global installs, project for .claude/plugins/-local installs).

Read the full file on GitHub · 139 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. 20d ago Changed · -10 tokens per session 94fa9eef6c8b
  2. 1mo ago Changed · +2 lines 6b8a2ea4e531
  3. 1mo ago Changed · -2 lines 6b24197b8e33
  4. 1mo ago Changed · +1 lines 537a75b0193b
  5. 1mo ago Changed · -11 tokens per session b8be4ecd6798
  6. 2mo ago Changed · -1 lines · +17 tokens per session 9cd8731e5591
  7. 2mo ago Changed 43b80625a60b
  8. 2mo ago Changed · +3 lines cf8fd1cb3843
  9. 2mo ago Changed 0162a803aef2
  10. 3mo ago First seen · 136 lines · 25 tokens per session scan A 85d5b2dabbcd

Subscribe to this mod's changes

plugin-auditor is an agent published in the GitHub repository yacb2/aidex (2 stars, last pushed 7d ago), licensed MIT. It adds 21 tokens to every session and 1,755 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

plugin-auditor compared with agents from other repositories

plugin-auditor next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
plugin-auditoryacb2/aidexAgent27d agoMITA21Claude Code
ap-work-group-managerSpielewoy/autoprompt-skillAgent1.3k1mo agoMITA24Claude Code
ap-framework-generatorSpielewoy/autoprompt-skillAgent1.3k1mo agoMITA21Claude Code
ap-jurorSpielewoy/autoprompt-skillAgent1.3k1mo agoMITA24Claude Code
ap-managerSpielewoy/autoprompt-skillAgent1.3k1mo agoMITA22Claude Code
ap-re-anchorSpielewoy/autoprompt-skillAgent1.3k1mo agoMITA21Claude Code
ap-verifierSpielewoy/autoprompt-skillAgent1.3k1mo agoMITA23Claude Code