modernization-flow

modernization-flow is a command for coding agents from griddynamics/rosetta. It costs 36 tokens per session (1,569 once invoked), scanned A, original, Apache-2.0.

Workflow for converting, modernizing, upgrading, or re-architecting code (e.g. C++→Java, monolith→microservices), etc.

Command

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.

agentmods
npx agentmods add commands/griddynamics/rosetta/modernization-flow
Clone the repo
git clone --depth 1 https://github.com/griddynamics/rosetta

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 modernization-flow

README.md
[![agentmods](https://agentmods.dev/badge/commands/griddynamics/rosetta/modernization-flow.svg)](https://agentmods.dev/commands/griddynamics/rosetta/modernization-flow)
Your own site
<a href="https://agentmods.dev/commands/griddynamics/rosetta/modernization-flow"><img src="https://agentmods.dev/badge/commands/griddynamics/rosetta/modernization-flow.svg" alt="Measured on agentmods" 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 1,569 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00036 $0.01569
Opus 5 $0.00018 $0.00785
Sonnet 5 $0.00007 $0.00314
Haiku 4.5 $0.00004 $0.00157

Measured today against content hash bfff2c7187dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

modernization-flow 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 today.

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.

plugins/core-copilot-light/commands/modernization-flow.md · 135 lines

How it starts

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

Modernization Flow - Execute Phases Sequentially

Context

This modernization process is designed to systematically analyze, specify, and implement code modernization/migration projects. The process is divided into phases that MUST be executed one-by-one.

Critical Requirements

  • ONE PHASE AT A TIME: Read one phase file, execute it completely, update state file, then move to next phase.
  • DO NOT SKIP PHASES: Each phase builds on the previous one.
  • STATE TRACKING: After each phase, update agents/modernization-flow-state.md with completion status, keep this document concise.
  • USER CONFIRMATION: Wait for user confirmation before proceeding to next phase.
  • Make sure to have todo tasks for each phase! Do not skip phases!
  • REMEMBER Do not put decisions/recommendations/suggestions/implementation code for the next phases in the output documents! The decisions are made at phase 6 and review at phase 7 AFTER full analysis. Respect that.
  • MUST Create and update files that ARE EXPLICITLY stated here, ASK for permission to create any other file!
  • MUST use grep/search on large files to read "table of contents" and then use line ranges to read what is needed.
  • MUST use only applicable phases according to the target of the modernization (acquire user approval first and store it in state), as those phases are for multi-project cross-tech modernization. Do not take shortcuts within the phase!
  • Prioritize ACCURACY over SPEED!
  • THIS is very large workflow: MUST use best matching available separate subagents for each phase, top level agent is orchestrator, orchestrator must be smart with reading/writing files (avoid, fallback to grep and reading line-ranges, as those are very large)
  • Phase subagents must contain additionally: "MUST APPLY PHASE <phase.md> — FULLY EXECUTE ALL STEPS", goal, context, original user request, inputs, expected outputs, and summary in the format useful for orchestrator, subagents must be informed they are used as subagents.

Read the full file on GitHub · 135 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. today First seen · 135 lines · 36 tokens per session scan A bfff2c7187dd

Subscribe to this mod's changes

modernization-flow is a command published in the GitHub repository griddynamics/rosetta (342 stars, last pushed today), licensed Apache-2.0. It adds 36 tokens to every session and 1,569 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.