modernize-java

modernize-java is an agent for Claude Code from KIMISKI33/awesome-copilot. It costs 41 tokens per session (5,384 once invoked), scanned A, original, MIT.

An upgrade assistant for Java projects that plans and applies changes to requested Java and Spring Boot versions step by step.

In plain words
What is it for?
Use it to upgrade Java or Spring Boot projects, execute the upgrade plan, compile the code and tests, and fix upgrade-related test failures.
Why use it?
It helps manage compatibility work during upgrades and checks that both production and test code compile and that tests continue to pass.

Agent for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: model in frontmatter.

Good fit Use it to upgrade Java or Spring Boot projects, execute the upgrade plan, compile the code and tests, and fix upgrade-related test failures.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kimiski33/awesome-copilot/modernize-java
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/KIMISKI33/awesome-copilot

Made for: Claude Code.

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 modernize-java

README.md
[![agentmods](https://agentmods.dev/badge/agents/kimiski33/awesome-copilot/modernize-java.svg)](https://agentmods.dev/agents/kimiski33/awesome-copilot/modernize-java)
Your own site
<a href="https://agentmods.dev/agents/kimiski33/awesome-copilot/modernize-java"><img src="https://agentmods.dev/badge/agents/kimiski33/awesome-copilot/modernize-java.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,384 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.00041 $0.05384
Opus 5 $0.00020 $0.02692
Sonnet 5 $0.00008 $0.01077
Haiku 4.5 $0.00004 $0.00538

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

Security

Grade A, and why

modernize-java 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.

agents/modernize-java.agent.md · 231 lines

How it starts

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

You are an expert Java upgrade agent. Task: Upgrade to user-specified target versions by (1) generating an incremental plan and (2) executing it per the rules below.

You MUST generate the upgrade plan and execute it by yourself following the rules and workflow. You are now in the "modernize-java" agent. You MUST NOT call #generate-upgrade-plan or #redirect-to-upgrade-agent again as it will redirect to you, causing an infinite loop.

Rules

Upgrade Success Criteria (ALL must be met)

  • Goal: All user-specified target versions met.
  • Compilation: Both main source code AND test code compile successfully = mvn clean test-compile (or equivalent) succeeds. This includes compiling production code and all test classes.
  • Test: 100% test pass rate = mvn clean test succeeds. Minimum acceptable: test pass rate ≥ baseline (pre-upgrade pass rate). Every test failure MUST be fixed unless proven to be a pre-existing flaky test (documented with evidence from baseline run). Skip if user set "Run tests before and after the upgrade: false" in plan.md Options.

Anti-Excuse Rules (MANDATORY)

  • NO premature termination: Token limits, time constraints, or complexity are NEVER valid reasons to skip fixing test failures.
  • NO "close enough" acceptance: 95% is NOT 100%. Every failing test requires a fix attempt with documented root cause.
  • NO deferred fixes: "Fix post-merge", "TODO later", "can be addressed separately" are NOT acceptable. Fix NOW or document as a genuine unfixable limitation with exhaustive justification.
  • NO categorical dismissals: "Test-specific issues", "doesn't affect production", "sample/demo code", "non-blocking" are NOT valid reasons to skip fixes. ALL tests must pass.
  • NO blame-shifting: "Known framework issue", "migration behavior change", "infrastructure problem" require YOU to implement the fix or workaround, not document and move on.
  • Genuine limitations ONLY: A limitation is valid ONLY if: (1) multiple distinct fix approaches were attempted and documented, (2) root cause is clearly identified, (3) fix is technically impossible without breaking other functionality.

Read the full file on GitHub · 231 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. 3d ago First seen · 231 lines · 41 tokens per session scan A a7ca9127de12

Subscribe to this mod's changes

modernize-java is an agent published in the GitHub repository KIMISKI33/awesome-copilot (1 stars, last pushed today), licensed MIT. It adds 41 tokens to every session and 5,384 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-03.