Table of Contents
- tl;dr
- Core Concepts
- Project
- Repositories and Roles
- Build Environment
- Project Spec
- Milestones
- Tasks
- Rules
- Functional Testing
- Knowledge Hub
- Wiki
- Visual Diagrams
- Glossary
tl;dr
Morph turns your migration into a step-by-step pipeline:- Create a Project (pick your repo(s) and assign roles)
- Configure the Build Environment (lifecycle commands, env vars, validation)
- Define your Project Spec (what should change & how)
- Review and approve the Project Spec
- Generate a Roadmap of Milestones
- Execute each Milestone. During execution, Morph dynamically generates Tasks so progress is transparent and each deliverable is verifiable.
- Once milestone tasks are completed and verified, Morph produces a production-ready PR for that milestone.
Core Concepts
Project
A Project is the top-level container for a modernization effort. It defines:- Which repositories are in scope and their roles in the migration
- Which branch strategy to use for generated code (feature branch)
- The operational boundary for the Project Spec, milestones, and rules

Morph Project creation
- Modernizing a legacy Flask-based application to FastAPI
- Rewrite C++ CLI using Rust
- Java application version upgrade
- Migrating a backend and its shared library together
Repositories and Roles
A project can contain one or more repositories. Each repository has a defined role in the migration:| Role | Description |
|---|---|
| Modified | An existing repository that will be transformed during migration |
| New | A new repository created as part of the migration |
| Reference Only | A repository included for context but not modified |
| One-to-One Migration | Direct migration from one repository to another |
morph-) where generated code is committed.
The Project Overview — part of the Project Spec flow — captures the full picture: which repos you start with, which repos you end with, and each repo’s modernization role.
Build Environment
The Build Environment defines how your project builds, runs, and tests. This is configured during onboarding and is required before Morph can validate and execute migrations. There are two options:- Cloud — Morph provides a cloud-based build environment for projects with publicly accessible dependencies. Lifecycle configuration is auto-discovered.
- Self-hosted Daemon — A lightweight binary you run on your own infrastructure, necessary when your project depends on private registries, internal APIs, or on-premise services
- Scripts — Ordered shell scripts that install dependencies, build, run, health check, and test the application
- Environment variables — Variables your application needs at build or runtime, with optional encryption for secrets
- Lifecycle document — A markdown overview describing the application architecture and how scripts fit together
- Validation — An end-to-end run that executes each script in sequence to confirm everything works
Lifecycle Setup
How lifecycle configurations are discovered, reviewed, and validated
Project Spec
The Project Spec is the source-of-truth document for what “done” means. It captures migration requirements before implementation begins. You review and approve the Project Spec in the Knowledge Hub. The first time the Project Spec is generated, the Knowledge Hub opens automatically; after that, open Knowledge Hub from the sidebar. Select Project Spec in the tree, then use the chat to refine it with Morph before you approve. Typical contents include:- Target stack
- High-level migration plan
- Key design decisions
- Project overview (repos at start, repos at end, and their roles)
- Testing strategy

Project Spec in the Knowledge Hub
Milestone
A Milestone is a coherent, reviewable chunk of migration work. Milestones sequence the project into manageable steps with explicit scope, risks, and dependencies.- Functionally meaningful (not arbitrary file splits)
- Small enough to review safely
- Ordered so each one unlocks the next
Task
A Task is the smallest executable unit inside a milestone. Tasks translate milestone intent into specific implementation actions. Tasks usually map to one of:- File/module creation or migration
- Endpoint or data-model implementation
- Test implementation
- Refactor/fix work
Rules
Rules are custom instructions that apply across all milestones. They encode your team’s coding standards, library preferences, and patterns so that Morph follows them consistently throughout the migration. Rules can be added, edited, or removed at any point during the migration.Functional Testing
Functional Testing verifies that migrated code behaves identically to the original by comparing real outputs side by side. Morph automatically generates, runs, and validates these tests as part of the milestone lifecycle — no manual test authoring required. Functional testing supports multi-repo projects and covers three types of applications:- API testing — Compares HTTP responses (status codes, response bodies) between origin and target for each endpoint
- CLI testing — Compares exit codes and stdout/stderr output between origin and target for each command
- UI testing — Captures screenshots and video recordings of the target application’s frontend, with optional side-by-side comparison against the origin
Functional Testing
How functional tests are generated, verified, and reported
Knowledge Hub
The Knowledge Hub is the central repository of structured context that Morph agents read from and write to. It contains all wikis, rules, milestones, and the Project Spec in one place. The Knowledge Hub serves two purposes:- Agent-to-agent knowledge transfer — When one agent discovers a pattern or makes an architectural decision, it writes that knowledge back to the hub. Later agents read it and stay consistent.
- User-to-agent guidance — You can add documentation, coding standards, or design decisions at any time. The content you provide is broken down into structured wiki pages and rules that agents can consume efficiently.
Wiki
A Wiki page is a piece of project knowledge stored in the Knowledge Hub. Wikis capture architecture decisions, design patterns, integration notes, and other context that agents reference during execution. Unlike rules, wikis are treated as informational context rather than hard requirements.Visual Diagrams
Concept Relationship Diagram
Glossary
| Term | Definition |
|---|---|
| Project | Top-level modernization container for repos, branch strategy, and all migration artifacts. |
| Repository Role | The function a repository serves in the migration (Modified, New, Reference Only, One-to-One). |
| Build Environment | Configuration for how the project builds, runs, and tests — cloud or self-hosted. |
| Lifecycle Setup | Project-level configuration containing scripts, environment variables, and a lifecycle document. Maintained separately for origin and target. Auto-discovered for cloud projects. |
| Lifecycle Discovery | Automated process that analyzes a repository and discovers how to install, build, run, and test it. |
| Project Spec | Source-of-truth for what the migration must produce (also called Instructions). Reviewed and approved in the Knowledge Hub using chat (the Hub opens automatically the first time the spec is ready). |
| Milestone | Ordered, reviewable chunk of migration work with explicit scope and dependencies. |
| Task | Smallest actionable implementation unit within a milestone. |
| Rules | Custom instructions encoding team standards, applied across all milestones. |
| Functional Testing | Auto-generated tests that compare origin and target behavior side by side. Covers API, CLI, and UI testing. |
| Knowledge Hub | Central repository of structured context (wikis, rules, Project Spec, milestones) that agents read from and write to. |
| Wiki | Project knowledge page stored in the Knowledge Hub — architecture decisions, patterns, and integration notes. |
| Roadmap | The main screen in the Morph Platform listing the project’s milestones, with other project entities available via sidebar. |
| Project Overview | Summary of repos at start and repos at end, including each repo’s modernization role. Part of the Project Spec. |