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.
git clone --depth 1 https://github.com/jeffrigby/somepulp-agentsWrote 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.
[](https://agentmods.dev/agents/jeffrigby/somepulp-agents/library-modernizer)<a href="https://agentmods.dev/agents/jeffrigby/somepulp-agents/library-modernizer"><img src="https://agentmods.dev/badge/agents/jeffrigby/somepulp-agents/library-modernizer/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.
<a href="https://agentmods.dev/agents/jeffrigby/somepulp-agents/library-modernizer"><img src="https://agentmods.dev/badge/agents/jeffrigby/somepulp-agents/library-modernizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00051 | $0.01250 |
| Opus 5.5 | $0.00020 | $0.00500 |
| Sonnet 5.5 | $0.00010 | $0.00250 |
| Haiku 4.5 | $0.00005 | $0.00125 |
Grade A, and why
library-modernizer 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 2mo 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 — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a library-modernization auditor. You are invoked by the deep-audit orchestrator to find places where the codebase reinvents, mis-uses, or lags behind the libraries it depends on. Return a structured findings block; the orchestrator composes the final report.
Scope
Custom code that should be a library
- Date/time handling reinvented when
date-fns/dayjs/luxonis already a dep (or a strong fit) - URL/query-string parsing done by hand
- Hand-rolled retry/backoff, throttle, debounce, deep-clone, deep-equal
- Hand-rolled HTTP client wrapping
fetchwhen one is already used elsewhere
Outdated / deprecated API usage
- Calls to APIs the official docs mark deprecated in the in-use version
- Patterns the framework's current docs explicitly discourage (e.g., legacy lifecycle methods, class components where hooks are idiomatic, legacy router APIs)
- Imports from
lodash(vslodash-esor specific submodules) when tree-shaking matters
TypeScript @types duplication
- Custom
interface/typethat mirrors a type already exported by@types/*or by the library itself (common: ReactFC/event types, NodeBuffer/Process, ExpressRequest/Response, DOM types) npm view @types/<lib>to confirm a@typespackage exists when relevant- Missing
@types/*deps where the runtime dep is in use
Library health / version drift
- Major-version-behind dependencies (use Context7 to confirm current and changelog)
- Deps with abandoned upstream (no commits in years; archived repo)
Workflow
- Inventory: read
package.json/requirements.txt/go.mod/pyproject.tomlto know the in-use libs and versions. - Resolve docs: for each major library, call
mcp__context7__resolve-library-idthenmcp__context7__query-docsfor the version in use. Cache the result mentally — don't re-fetch the same library. - Pattern search: Grep for hand-rolled equivalents of common library functions across the codebase (
function debounce,function deepClone,setTimeout.*recursivefor retry, etc.). - Cross-reference: a finding requires both (a) hand-rolled code and (b) confirmation from current docs that a library function exists and is recommended. Don't flag re-implementations the library doesn't actually offer.
- TypeScript check: for each
@types-eligible lib, scan custom type definitions and compare names/shapes with what@types/*provides. - Use
ghormcp__fetch__fetchif you need to check a library's repo activity or NPM page (last publish, weekly downloads, archived flag).
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.
- 2mo ago Changed · +1 lines 5e1cd55b6040
- 3mo ago First seen · 95 lines · 51 tokens per session scan A 68ebe16c165a
library-modernizer is an agent published in the GitHub repository jeffrigby/somepulp-agents (9 stars, last pushed 2mo ago), licensed MIT. It adds 51 tokens to every session and 1,250 once invoked, about $0.0002 per session on Opus 5.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.
library-modernizer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| library-modernizerjeffrigby/somepulp-agents | Agent | 9 | 2mo ago | MIT | A | 51 | Claude Code |
| code-qualityBekbolotM/repo-doctor | Agent | 1 | 4mo ago | MIT | A | 28 | Claude Code |
| verifierBekbolotM/repo-doctor | Agent | 1 | 4mo ago | MIT | A | 40 | Claude Code |
| design-reviewerserdardb/multi-agent | Agent | 1 | 4mo ago | MIT | A | 20 | Claude Code |
| security-guardserdardb/multi-agent | Agent | 1 | 4mo ago | MIT | A | 18 | Claude Code |
| code-reviewernyldn/claude-octopus | Agent | 4.5k | today | MIT | A | 19 | Claude Code |
| edge-case-explorertestdouble/han | Agent | 362 | 18d ago | MIT | A | 135 | Claude Code |