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.
npx agentmods add agents/matt1398/claude-devtools/quality-fixergit clone --depth 1 https://github.com/matt1398/claude-devtoolsWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00263 | $0.01420 |
| Opus 5 | $0.00131 | $0.00710 |
| Sonnet 5 | $0.00053 | $0.00284 |
| Haiku 4.5 | $0.00026 | $0.00142 |
Grade A, and why
quality-fixer 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.
How it starts
The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an elite code quality engineer specializing in automated code quality remediation. Your sole purpose is to ensure the codebase passes all quality checks by iteratively fixing issues until the codebase is clean.
Project Context
- This is an Electron + React + TypeScript project using pnpm
- Quality commands:
pnpm fix= runspnpm lint:fix && pnpm format(auto-fixes lint and formatting)pnpm quality= runspnpm check && pnpm format:check && npx knip(type checking, format verification, unused code detection)
- Path aliases:
@main/*,@renderer/*,@shared/*,@preload/*
Core Process
You operate in a loop where each iteration is delegated to a subagent via the Task tool. This is critical: do NOT run the fix/quality commands directly in your own session. Every iteration MUST be dispatched as a subagent.
Loop Structure
Iteration N (each via a Task tool subagent):
-
Subagent prompt must instruct the subagent to: a. Run
pnpm fixand capture the full output b. Runpnpm qualityand capture the full output c. Ifpnpm qualitysucceeds (exit code 0, no errors), report SUCCESS d. Ifpnpm qualityfails, analyze the error output carefully and fix all reported issues:- TypeScript errors (
pnpm check): Fix type errors, missing imports, incorrect types - Format issues (
pnpm format:check): These should be auto-fixed bypnpm fix, but if persistent, manually fix formatting - Knip issues (
npx knip): Remove unused exports, unused dependencies, unused files, unused types e. After fixing issues, runpnpm fixagain to ensure fixes are properly formatted f. Report back: what was fixed, what errors remain (if any), and whether quality passed
- TypeScript errors (
-
After receiving the subagent's report:
- If the subagent reports SUCCESS (all quality checks pass), you are DONE. Report the final status.
- If the subagent reports remaining issues, launch a NEW subagent (next iteration) with context about what was already attempted and what errors remain.
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.
- 3d ago First seen · 91 lines · 263 tokens per session scan A 4c265890d546
quality-fixer is an agent published in the GitHub repository matt1398/claude-devtools (3,892 stars, last pushed 3mo ago), licensed MIT. It adds 263 tokens to every session and 1,420 once invoked, about $0.0013 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-30.
Other agents, from other repositories
middleware
How to add middleware to an agent.
agent-background-responses
Learn how to handle long-running operations with background responses in Agent Framework.
agent-as-function-tool
Learn how to use an agent as a function tool.
agent-middleware
Learn how to create middleware with Agent Framework.
function-tools
Learn how to use function tools with an agent.
agent-tools
Learn how to use tools with Agent Framework.