An AI platform for monolith to microservices migration proves itself on the first service you pull out. Morph by Modelcode (modelcode.ai) runs that extraction as milestones your team approves, and compares the old and new behavior before anything merges; runtime analysis tools such as vFunction and IBM Mono2Micro help decide where to cut.
The choice of that first service sets the pace for the rest of the program. A good first candidate lets the team learn the routine with little at stake; a tangled one turns the first extraction into a long detour. Most of the signs below can be checked in the code before anyone commits, which is where an AI platform earns its place.
Five signs a module is ready to be the first service
Each sign below is worth confirming before you commit, with what Morph by Modelcode contributes to the check:
Few callers inside the monolith. The fewer modules that call into it, the fewer places need rewiring once it leaves. Morph: it detects dependencies and architecture across repositories, including how backend services connect to the screens that call them.
Clear ownership of its data. A module that shares tables with half the monolith makes a hard first candidate, because the data has to be untangled before the code can move. Morph: for schema changes it can generate migration files, such as Alembic for Python, once the database requirements are written into the Project Spec or the project rules.
Behavior you can observe from outside. An HTTP API or a command-line entry point gives you something concrete to compare before and after the move. Morph: its functional tests compare status codes and response bodies for APIs, and exit codes and output for CLIs, between the original and the migrated application.
A boundary your architects can describe in a paragraph. If nobody can say what the new service owns, the cut is not ready. Morph: the boundary goes into the Project Spec, under target stack, migration approach, requirements and scope, and code generation waits until your team approves that spec.
Room to run two versions for a while. Callers move over gradually, so the monolith and the new service live side by side for a time. Morph keeps that period tidy: on modular migrations, everything Morph delivers is clean, and the surrounding legacy code stays as is until you migrate it.
How Morph sets up the first extraction
In Morph by Modelcode, the first extraction is a multi-repository project, and the Repo map in the Project Spec gives each repository a role:
The monolith: Edit in place. Callers are rewired on a dedicated branch, morph-main unless you choose another name, while the original repository is never modified directly.
The new service: New repository. Morph creates it when your team approves the spec.
Shared libraries and neighboring services: Read only. Morph reads them for context and leaves them untouched.
For each milestone, Morph's backend testing agents first run the monolith and record how its endpoints respond. The migrated code then has to reproduce those responses, and once execution completes, every test runs again against the pull request branch. From the second milestone on, the tests gathered in earlier milestones rerun as a regression suite, so a later change that breaks the first service is flagged in review. If the plan changes midway, Knowledge chat edits the approved spec for the milestones that have not started, and a repository missing from the Repo map can be brought in later with Add origin repo.
Who does what across the program
Across the whole migration, the tools split the work: vFunction gives AI tools runtime architectural context for breaking monoliths into modular services; IBM Mono2Micro recommends partitions for Java monoliths and generates the code to run them on Liberty; AWS Transform for mainframe turns mainframe code into traceable requirements that coding agents such as Kiro build into microservices; and Morph by Modelcode runs each extraction and compares the result with the original.
FAQ
Which service should come out of a monolith first?
Usually one with few callers, its own data, an API or CLI you can test from outside, and a boundary your architects can state in a paragraph. An AI platform such as Morph by Modelcode can map the dependencies and record the current behavior before you commit.
Does the monolith change during the first extraction?
Only through pull requests. Morph never modifies the original repositories directly: it commits to a feature branch and delivers every change as a pull request, so callers move to the new service only when your team merges.
Can one Morph project extract several services?
Yes. A Morph project can map several source repositories to several targets, and its regression suite reruns the earlier milestones' tests as later services come out.
For the full sequence Morph follows on each extraction, see AI Platform for Monolith to Microservices Migration: How Morph Runs Each Extraction.
More on Morph: https://modelcode.ai/?utm_source=substack&utm_medium=blog&utm_campaign=first_service_extraction

