Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add thevibeworks/claude-code-docs/plugin install code-modernizationWrote 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/commands/thevibeworks/claude-code-docs/modernize-uplift)<a href="https://agentmods.dev/commands/thevibeworks/claude-code-docs/modernize-uplift"><img src="https://agentmods.dev/badge/commands/thevibeworks/claude-code-docs/modernize-uplift/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/commands/thevibeworks/claude-code-docs/modernize-uplift"><img src="https://agentmods.dev/badge/commands/thevibeworks/claude-code-docs/modernize-uplift.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.00039 | $0.04992 |
| Opus 5.5 | $0.00016 | $0.01997 |
| Sonnet 5.5 | $0.00008 | $0.00998 |
| Haiku 4.5 | $0.00004 | $0.00499 |
Grade A, and why
modernize-uplift 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.
This is a copy
100% identical to modernize-uplift — 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.
How it starts
The opening of the file, as written. The whole thing — 273 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Uplift $system from $source_version to $target_version: same stack, newer version.
The code is legacy/$system, often a symlink to where it really lives: say where it points (readlink legacy/$system) in one line before you start. If legacy/$system does not exist, stop and say so: nothing can run without the code, so the fix is /code-modernization:modernize $system --source <path to the code>. Run every subagent in the foreground and wait for its result: never end your turn while one is still running. Stop any server or other process you started (a legacy app on a local port, a watcher) before you finish, and say you did.
This is not transform, which extracts intent and rewrites idiomatically. Here the code is good
and only needs to run on a newer runtime. Preserve structure and make the smallest diffs that compile
and behave identically on the target, driven by the known breaking changes between the two
versions, not by re-deriving business logic. The optional fourth argument $project_pattern scopes the
work to matching projects.
The strong case is a real dual run. If both runtimes execute here, one test suite runs on both and
the equivalence proof is a differential test. It is not always available: .NET can multi-target one
test project (net48 and the target) but net48 runs only on Windows or Mono; for Java it is the whole build
run under two JDK toolchains; Python 2 cannot import an un-rewritten module under Python 3. When both
cannot run here, equivalence falls back, as in transform, to characterization tests pinned to
recorded outputs on the target only. That is fine, but label it honestly (Step 0.3, Step 7).
Step 0 — Toolchain and version pinning (fail fast)
- Pin the version pair exactly. If the versions were not given, take them from
analysis/$system/INTENT.mdor the brief. If either version is missing or vague (".NET" with no number), stop and ask. Check that the target is supported as${CLAUDE_PLUGIN_ROOT}/references/target-versions.mdsays: looked up, never remembered, and the versions you offer when you ask are looked up too. When the move spans several major versions or two things at once (a JDK and a framework: Java 8 with Spring 4 to a newer JDK with Spring Boot), split it into hops that each build and pass their tests before the next starts (for example Java 8, 11, 17, then the target), name the order in the plan, and treat each hop as its own pilot. - Target runtime, required. Verify it builds and tests (
dotnet --versionand adotnet testsmoke;mvnorgradle;python3 -Vandpytest). - Source runtime, the baseline oracle. Verify the old version also runs here. If it does not (common in CI and sandboxes: no .NET Framework on Linux), say so: dual run degrades to target-only and equivalence falls back to recorded outputs. Note it in the plan and in UPLIFT_NOTES.
- Can the existing test suite run on $target_version as-is? This reshapes the plan. A test
framework whose runner does not support the target (NUnit 2 or MSTest v1 on modern .NET, JUnit 4
without the vintage engine,
noseon Python 3) makes the test migration a prerequisite, not a leaf: nothing migrated can be validated until the tests that validate it run. Read the framework and version from the test manifests and check them against the target. If the answer is no, it is an explicit early phase in Step 2 and in the brief. - Detect the ecosystem migration tool, and distinguish present, runnable here and
actually ran: most need a working restore and build (often network), so installed is not the
same as produced findings. Never fold a tool's findings into the catalog unless it ran; say
"coverage lost: needs restore and network, unavailable here" instead. .NET:
dotnet upgrade-assistant(also applies changes in place;apiportanalyzes compiled assemblies and is archived, so optional). Java and Spring: OpenRewrite (mvn rewrite:dryRunis headless and emits a patch: the most reliable). Python:pyupgrade(2to3is removed in 3.13,python-modernizeis abandoned). JS and Angular:ng update(edits in place, needs a clean git tree andnode_modules). - Where the tests point. Before running any suite, read its configuration for the databases, queues and services it connects to. If any is not a local or throwaway instance, stop and ask which environment to use: the baseline and the proof both run the old code against it.
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.
- 10d ago Changed · +3 lines · -3 tokens per session ca7ad8dcc25e
- 2mo ago Changed · -151 lines · -2 tokens per session 1ab1c23e031a
- 2mo ago First seen · 421 lines · 44 tokens per session scan A 7630f9109cd7
modernize-uplift is a command published in the GitHub repository thevibeworks/claude-code-docs (183 stars, last pushed today), licensed MIT. It adds 39 tokens to every session and 4,992 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to modernize-uplift, differing in 0 lines, and is treated as a copy.
modernize-uplift compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| modernize-upliftthevibeworks/claude-code-docs | Command | 183 | today | MIT | A | 39 | Claude Code |
| reconciledork-labs/dorkos | Command | 11 | today | MIT | A | 10 | Claude Code |
| reviewdork-labs/dorkos | Command | 11 | today | MIT | A | 21 | Claude Code |
| auditdork-labs/dorkos | Command | 11 | today | MIT | A | 30 | Claude Code |
| createdork-labs/dorkos | Command | 11 | today | MIT | A | 6 | Claude Code |
| from-specdork-labs/dorkos | Command | 11 | today | MIT | A | 8 | Claude Code |
| curatedork-labs/dorkos | Command | 11 | today | MIT | A | 21 | Claude Code |