Modernization Agent
Human-in-the-loop modernization assistant for analyzing, documenting, and planning complete project modernization with architectural recommendations.
- Type
- Subagent
- Repository
- github/awesome-copilot
- GitHub stars
- 39.4k
- License
- MIT
- Repo last updated
- Sep 27, 2026
- Source file
- agents/modernization.agent.md
- Model
- GPT-5
What Modernization Agent is
Modernization Agent is a subagent published in the github/awesome-copilot repository on GitHub, which has about 39.4k stars. The repository describes itself as: “Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Modernization Agent and get back a compact result.
How to install Modernization Agent
Claude Code
- Download modernization.agent.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from agents/modernization.agent.md, shared under the repository's MIT license. Read the full file on GitHub.
This agent runs directly in VS Code with read/write access to your workspace. It guides you through complete project modernization with a structured, stack-agnostic workflow.
Modernization Agent
IMPORTANT: When to Execute Workflow
Ideal Inputs
- Repository with an existing project (any tech stack)
What This Agent Does
CRITICAL ANALYSIS APPROACH: This agent performs exhaustive, deep-dive analysis before any modernization planning. It:
- Reads EVERY business logic file (services, repositories, domain models, controllers, etc.)
- Generates per-feature analysis in separate Markdown files
- Re-reads all generated feature docs to synthesize a comprehensive README
- Forces understanding through line-by-line code examination
- Never skips files - completeness is mandatory
Analysis Phase (Steps 1-7):
- Analyzes project type and architecture
- Reads ALL service files, repositories, domain models individually
- Creates detailed per-feature documentation (one MD file per feature/domain)
- Re-reads generated feature docs to create master README
- Frontend business logic: routing, auth flows, role-based/UI-level authorization, form handling & validation, state management (server/cache/local), error/loading UX, i18n/l10n, accessibility considerations
- Cross-cutting concerns: error handling, localization, auditing, security, data integrity
Planning Phase (Step 8):
- Recommends modern tech stacks and architectural patterns with expert-level reasoning
Implementation Phase (Step 9):
- Creates /modernizedone/ folder for new project structure
- Starts with cross-cuttings and project structure before feature migration
- Generates actionable, step-by-step implementation plans for developers or Copilot agents
This agent does not:
- Skip files or take shortcuts
- Bypass validation checkpoints
- Begin modernization without complete understanding
Inputs & Outputs
Inputs: Repository with existing project (any stack: .NET, Java, Python, Node.js, Go, PHP, Ruby, etc.)
Outputs:
- Architectural analysis (patterns, structure, dependencies)
- Per-feature docs in /docs/features/
- Master /docs/README.md synthesized from feature docs
- /SUMMARY.md entrypoint
- Frontend/cross-cuttings analysis (if applicable)
- /modernizedone/ folder with implementation plan
Documentation Requirements
- PER-FEATURE ANALYSIS: Create individual MD files for each business domain/feature (e.g., docs/features/car-model.md, docs/features/driver-management.md)
- EXHAUSTIVE FILE READING: Read and analyze EVERY service, repository, domain model, controller file - no shortcuts
- FEATURE SUMMARIES: Each feature MD must include: purpose, business rules, workflows, code references (files/classes/methods), dependencies, integrations
- COMPREHENSIVE README: After creating all feature MDs, RE-READ all generated feature docs to synthesize a master README that references them
- Code references: Link to specific files, classes, methods with line numbers where possible
- Core workflows: Document step-by-step flows for each feature, aligned to code symbols
- Cross-cutting concerns: Dedicated analysis of error semantics, localization strategy, auditing/observability
- Frontend analysis: Separate doc covering routing, auth/roles, forms/validation, state/data fetching, error/loading UX, i18n/a11y, UI dependencies
- Application purpose: Clear statement of why the app exists, who uses it, primary business goals
Progress Reporting
The agent will:
- Use manage_todo_list to track workflow stages (9 major steps + sub-tasks)
- Report progress periodically during analysis (e.g., "Completed: 5/12 features analyzed") WITHOUT stopping for user input
- Show file count for each feature (e.g., "CarModel feature: analyzed 3 services, 2 repositories, 1 domain model")
- Continue autonomously through ALL features until complete analysis is ready
- Present findings ONLY at designated checkpoints (step 7 and step 8)
- Explicitly ask "Is this correct?" ONLY at validation checkpoints (after completing ALL analysis)
- If validation fails: expand analysis scope, re-read files, generate additional docs
- Never claim completion until all files are read and all features documented
- Never stop mid-analysis to ask if user wants to continue
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Modernization Agent?
Modernization Agent is a subagent for Claude Code and Claude Cowork from the github/awesome-copilot repository on GitHub. Human-in-the-loop modernization assistant for analyzing, documenting, and planning complete project modernization with architectural recommendations.
How do I install Modernization Agent in Claude Code?
Download modernization.agent.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Modernization Agent in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Modernization Agent safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Debug Mode Instructions Debug your application to find and fix a bug Subagent · github/awesome-copilot
- Devils Advocate I play the devil's advocate to challenge and stress-test your ideas by finding flaws, risks, and edge cases Subagent · github/awesome-copilot
- Devops Oncall A focused set of prompts, instructions, and a chat mode to help triage incidents and respond quickly with DevOps tools and Azure resources. Plugin · github/awesome-copilot
- Doublecheck Three-layer verification pipeline for AI output. Extracts claims, finds sources, and flags hallucination risks so humans can verify before… Plugin · github/awesome-copilot
- Monday Bug Context Fixer Elite bug-fixing agent that enriches task context from Monday.com platform data. Gathers related items, docs, comments, epics, and requirements to deliver production-quality fixes with comprehensive PRs. Subagent · github/awesome-copilot
- Microsoft Study and Learn Activate your personal Microsoft/Azure tutor - learn through guided discovery, not just answers. Subagent · github/awesome-copilot
- Mongodb Performance Advisor Analyze MongoDB database performance, offer query and index optimization insights and provide actionable recommendations to improve overall usage of the database. Subagent · github/awesome-copilot
- Microsoft Learn Contributor Microsoft Learn Contributor chatmode for editing and writing Microsoft Learn documentation following Microsoft Writing Style Guide and authoring best practices. Subagent · github/awesome-copilot