model-upgrade-auditor

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

An auditing agent that examines agents, skills, and prompts for unnecessary instructions and workarounds. It proposes simpler versions when evaluation evidence supports the change.

In plain words
What is it for?
It is for reviewing agent prompts, finding repeated or defensive instructions, and assessing whether newer models still need them.
Why use it?
It helps reduce prompt length and complexity without removing instructions that still improve results.

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 It is for reviewing agent prompts, finding repeated or defensive instructions, and assessing whether newer models still need them.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/gonzalezpazmonica/savia/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/savia

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/savia/model-upgrade-auditor/github.svg)](https://agentmods.dev/agents/gonzalezpazmonica/savia/model-upgrade-auditor)
Your own site
<a href="https://agentmods.dev/agents/gonzalezpazmonica/savia/model-upgrade-auditor"><img src="https://agentmods.dev/badge/agents/gonzalezpazmonica/savia/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/savia/model-upgrade-auditor"><img src="https://agentmods.dev/badge/agents/gonzalezpazmonica/savia/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 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.00036 $0.00614
Opus 5 $0.00018 $0.00307
Sonnet 5 $0.00007 $0.00123
Haiku 4.5 $0.00004 $0.00061

Measured 4d 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 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.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. 4d 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/savia (50 stars, last pushed today), 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. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.