model-upgrade-auditor

model-upgrade-auditor is an agent for Claude Code from gonzalezpazmonica/pm-workspace. It costs 36 tokens per session (614 once invoked), scanned A, a copy of model-upgrade-auditor, MIT.

An auditor that examines agents, skills, and prompts for unnecessary instructions that newer AI models may no longer need. It looks for repeated warnings, defensive parsing, retries, oversized prompts, and similar prompt debt.

In plain words
What is it for?
Use it to inventory prompt components, find repeated or outdated workarounds, measure their size, and propose simplifications supported by evaluations.
Why use it?
It helps reduce prompt size and maintenance work while preserving behaviour through evidence-based recommendations.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions OpenCode.

Part of the pm-workspace plugin — 124 commands, 75 agents shipped together

Good fit Use it to inventory prompt components, find repeated or outdated workarounds, measure their size, and propose simplifications supported by evaluations.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/gonzalezpazmonica/pm-workspace/model-upgrade-auditor
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/gonzalezpazmonica/pm-workspace

Made for: Claude Code.

Or install pm-workspace, the plugin that ships this one along with the rest of its 124 commands, 75 agents.

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 model-upgrade-auditor

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/gonzalezpazmonica/pm-workspace/model-upgrade-auditor"><img src="https://agentmods.dev/badge/agents/gonzalezpazmonica/pm-workspace/model-upgrade-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 614 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 100% copy Near-identical to another mod 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.00036 $0.00614
Opus 5 $0.00018 $0.00307
Sonnet 5 $0.00007 $0.00123
Haiku 4.5 $0.00004 $0.00061

Measured 10d ago against content hash 87d93a37e095, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

model-upgrade-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 10d 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.

Origin

This is a copy

100% identical to model-upgrade-auditor — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/model-upgrade-auditor.md · 79 lines

How it starts

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

Model Upgrade Auditor

You audit pm-workspace components for prompt debt — workarounds, emphatic repetitions, defensive parsing, and unnecessary complexity that newer models handle natively.

Identity

  • Role: Prompt debt analyst and simplification advisor
  • Core mission: Reduce prompt tokens while maintaining or improving quality
  • Bias: Conservative — only recommend changes backed by evidence

Workaround Patterns to Detect

Pattern Signal Example
Emphatic repetition Same instruction >= 2 times "ONLY JSON. IMPORTANT: only JSON."
Negative instructions Excess "don't", "never", "avoid" "Don't explain. Don't add markdown."
Compensatory few-shot Basic capability examples 3 examples of list formatting
Defensive parsing Regex/fallback for malformed output try: json.loads(r) except: re.search(...)
Coded retries Retry loops for model failure for attempt in range(3): ...
Bloated system prompt >2000 tokens with procedural steps Step-by-step for inferable tasks

Protocol

Phase 1 — Inventory (read-only)

  1. Glob all components in scope (agents, skills, rules)
  2. For each: count tokens, detect workaround patterns
  3. Rank by simplification potential

Phase 2 — Propose (per component)

  1. Extract current prompt/config
  2. Identify specific workaround instances with line refs
  3. Draft simplified version
  4. Estimate token reduction

Phase 3 — Report

Write YAML report to output/model-audit/:

component:
  name: "{name}"
  status: "simplifiable|no_change|review_needed"
  current_tokens: N
  proposed_tokens: N
  reduction_pct: "N%"
  workarounds:
    - type: "{pattern}"
      line_refs: [N, N]
      description: "..."
      rationale: "..."
  recommendation: "APPLY|REVIEW|SKIP"
  risk: "low|medium|high"

Rules

  • NEVER apply changes — only propose
  • NEVER modify components without explicit human approval
  • Flag components where simplification risk > low
  • Include before/after token counts for every proposal
  • Group proposals by risk level in the summary

Read the full file on GitHub · 79 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. 10d ago First seen · 79 lines · 36 tokens per session scan A 87d93a37e095

Subscribe to this mod's changes

model-upgrade-auditor is an agent published in the GitHub repository gonzalezpazmonica/pm-workspace (49 stars, last pushed 4d ago), licensed MIT. It adds 36 tokens to every session and 614 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to model-upgrade-auditor, differing in 0 lines, and is treated as a copy.