Project Knowledge is where all structured project context lives in the product — the Project Spec, Project Setup (lifecycle scripts, environment variables, dependencies, Dockerfile), milestones, wikis, and rules — together with Knowledge chat for conversing with . You open it from the Roadmap: under Modernization, click Project Knowledge. The first time your project starts, opens this drawer for you so you can go through onboarding — discovering and validating the application’s lifecycle alongside the agent — and later review and approve the Project Spec. Throughout the migration, agents read from and write to the same underlying knowledge; this UI is how you inspect and steer it.Documentation Index
Fetch the complete documentation index at: https://docs.modelcode.ai/llms.txt
Use this file to discover all available pages before exploring further.
Older documentation called this drawer the “Knowledge Hub.” That name is retired — the UI label is Project Knowledge.
What Project Knowledge Is
Think of Project Knowledge as structured context for Morph agents, surfaced in a full-height drawer on the Roadmap. Every time an agent works on a task, it reads this knowledge to understand your project’s architecture, conventions, how the application actually runs, and decisions already made. When an agent learns something new during execution — a pattern it discovered, an architectural decision, a fix to a startup script — it writes that back (often as wiki pages or as updates to the lifecycle setup). This is how agents pass knowledge to each other. Onboarding establishes how the app installs, builds, and runs. Milestone 1 might establish a database access pattern. Milestone 5, handled by a different agent, reads both of those from the same project knowledge and follows them. The result is consistent code across your migration — and a configuration the agent can actually run — even when different agents handle different parts.What’s Inside
Project Knowledge is organized in a tree with five kinds of content:| Type | What It Holds | How It’s Used |
|---|---|---|
| Project Spec | Goals, scope, and approach for the migration | Agents reference the Project Spec to stay aligned with the overall direction |
| Project Setup | Lifecycle scripts (install / build / run / healthcheck / test), environment variables and secrets, the lifecycle document, dependencies, and the Dockerfile — for both the origin and target sides | Agents use the lifecycle to actually run, validate, and functionally test the application at every step |
| Milestones | Detailed descriptions and scope for each migration step | Agents use milestone content to understand what each step requires |
| Wiki | Architecture docs, design decisions, patterns discovered during migration | Agents read wikis to understand project context and conventions |
| Rules | Coding standards, library preferences, explicit constraints | Agents follow rules as hard requirements in every milestone |
How Agents Use It
When an agent starts working on a milestone:- It reads the Project Spec to understand the migration’s overall goals
- It reads the Project Setup to know how to install, build, run, and health-check the app
- It reads all rules to know which standards to follow
- It reads relevant wiki pages to understand architecture and patterns
- It reads the milestone description to know what to build
Opening Project Knowledge
First time (onboarding): When you create a new project, the Project Setup stage on the Roadmap opens this drawer for you with Knowledge chat seeded to start onboarding — the agent walks you through discovering and validating how your application installs, builds, runs, and is health-checked. See Project Setup (Onboarding) below. After onboarding: When your Project Spec finishes generating, the drawer opens again (usually with Project Spec selected) so you can review and approve it. Any time after that: Go to the project’s Roadmap. In the left Modernization column, click Project Knowledge to open the drawer. You can also open it from flows that link knowledge (for example, opening a rule, milestone, or lifecycle script in context).Project Setup (Onboarding)
Project Setup is the branch of the Project Knowledge tree that holds everything needs to actually run your application. It’s also where onboarding happens at the beginning of every project — the first time you open the drawer, the agent collaborates with you in Knowledge chat to fill this branch in. The branch is organized by side of the migration, mirroring the rest of project knowledge:- Origin — How the source application builds and runs. Discovered together with you during onboarding and used as the behavioral baseline for functional testing.
- Target — How the destination application builds and runs. Discovered automatically during the foundation milestone (Milestone 1) so the target side is ready before migration code starts landing.
- Dependencies and Dockerfile — Project-wide artifacts the agent builds during onboarding and keeps in sync as the project evolves.
| Sub-item | What it is |
|---|---|
| Scripts | Ordered shell scripts — typically install, build, run, healthcheck, and test — that bring the app to a healthy, running state |
| Environment Variables | Variables and secrets the app needs at build or runtime, discovered from the codebase or set explicitly. Secrets are encrypted at rest |
| Lifecycle Document | A markdown overview describing the application’s architecture, the execution order of scripts, and how each phase fits together |
How onboarding flows through this drawer
When you start a new project, the Project Setup stage on the Roadmap routes you into the Project Knowledge drawer with the chat focused on lifecycle discovery. From there:- The agent inventories your repository — framework, install/build/run commands, healthcheck signals, env vars and secrets, external service dependencies — and reports back what it found before writing anything.
- It proposes the lifecycle phases (install / build / run / healthcheck / test, plus optional steps like
migrateor per-service splits in multi-environment projects) and confirms them with you. - It registers the scripts and environment variables, asking you for any values it can’t infer (API keys, service URLs, tenant-specific config).
- It executes the lifecycle end-to-end to validate it actually works. On failure, it surfaces the failing phase, the last lines of output, and a proposed fix before retrying.
- Once validation passes, the lifecycle is marked Validated and onboarding hands off to Project Spec generation. If the agent can’t get it fully healthy, the configuration is saved as Draft — Needs Review for you to correct manually.
Editing the lifecycle later
Lifecycle artifacts are read-only when selected directly in the tree — to change them, ask Knowledge chat and the agent will update them for you. Typical asks:Adding Your Own Knowledge
You can add context at any time. This is useful when you have documentation, design decisions, or standards that should know about from the start.When you add content, it isn’t stored as a single blob. breaks it down into structured wiki pages and rules, optimized for how agents consume it. A long design doc becomes focused, referenceable entries agents can query efficiently.
Using the Chat
Use the Knowledge chat panel to talk to and create, update, or reorganize knowledge. To add documentation:- Open Project Knowledge from the Roadmap (Modernization → Project Knowledge)
- Open the chat panel if it is hidden
- Describe what you want to add
Dragging in Files
You can drag text files directly onto the chat panel to import existing documentation. reads the file, extracts the relevant knowledge, and creates wiki pages and rules from it. Supported formats include.md, .txt, .yaml, .json, .py, .ts, .js, and many more text-based files.
Example use cases:
- Drag your team’s
CONTRIBUTING.mdto import coding standards - Drop an architecture decision record (ADR) to capture design choices
- Import a
styleguide.mdto encode formatting preferences
From a URL or Repo Path
In the chat, you can also reference external sources:Editing Wiki Pages
Wiki pages capture architecture, patterns, and project-specific context. Update them through the chat. Right-click a wiki page in the tree and select Add to Context to attach it to the chat. Then describe the change you want:When to Add Wiki Pages
Add wiki pages when you have knowledge that applies broadly but isn’t a hard rule:- Architecture decisions — “We chose event sourcing for the order service because…”
- Integration notes — “The payment gateway expects ISO 8601 dates with timezone”
- Migration context — “The legacy
UserManagerclass maps to three separate services in the new architecture” - Patterns — “All API responses follow the envelope pattern:
{ data, meta, errors }”
Editing Rules
Rules are hard constraints that agents follow in every milestone. Unlike wiki pages (which provide context), rules are treated as requirements. Create and update rules through the chat:Rules vs. Wiki Pages
| Rules | Wiki Pages | |
|---|---|---|
| Agent behavior | Treated as requirements — agents must follow them | Treated as context — agents use them to inform decisions |
| Scope | Apply to every milestone | Referenced when relevant |
| Best for | Coding standards, library mandates, naming conventions | Architecture docs, design decisions, integration notes |
| Example | ”Use pytest for all tests. No unittest." | "The authentication service uses JWT with RS256 signing.” |
Editing Milestones
You can review milestone descriptions in Project Knowledge. To adjust scope, add requirements, or change descriptions, use Editing Milestones from the milestone review flow. You can also ask to restructure milestones through chat. For example, to merge two milestones:Locked Milestones
Milestones that are in progress, under review, or already merged cannot be edited. Only milestones with a Not Started status are editable. If you need to adjust a milestone that’s already executing, wait for the current execution to complete and then make your changes before re-running.Updating the Project Spec
The Project Spec is the top-level document that defines your migration’s goals, scope, and approach. Ask in chat to refine the migration direction; substantial changes may also go through your Project Spec approval flow (see Reviewing the Project Spec). Changes to the Project Spec can affect how agents approach future milestones, so be deliberate about what you request.Viewing Changes
When modifies knowledge during an agent execution (for example, an agent discovers a pattern and writes a wiki page), you can see exactly what changed. Click Highlight changes (the diff icon) in the Project Knowledge toolbar to toggle an inline diff view:- Green highlights show added content
- Red highlights with strikethrough show removed content
- A summary shows the total lines added and removed
- Modified items are marked with a yellow indicator in the tree navigation
How Knowledge Stays in Sync
Project knowledge stays aligned with running work as agents read and write it, and as you add or update context through the chat. When you ask for changes while an agent is running, incorporates them so agents can pick up new rules and wiki context in subsequent steps.Examples
Setting Up a New Project’s Knowledge
When you start a migration, front-load project knowledge with what you know:Correcting Agent Behavior
After reviewing a PR, you notice agents are usingconsole.log for debugging:
Importing Team Standards
Your team has adocs/coding-standards.md in the repo:
- Drag the file onto the Knowledge chat panel
- reads it and says: “I’ve extracted 4 rules and 2 wiki pages from your coding standards document…”
- Review the created entries in the tree navigation
- Ask the chat to adjust any entries that need refinement
Adding Context Mid-Migration
At Milestone 4, you realize agents don’t know about a critical integration:Best Practices
Let the Chat Do the Structuring
Don’t worry about formatting your input perfectly. Describe what you want in natural language and structures it into the right wiki pages and rules. A rough paragraph of context works better than trying to manually create the “right” wiki page.Review Agent-Created Knowledge
After each milestone, open Project Knowledge and check for new wiki entries. Agents write back what they learned. If something is inaccurate, ask the chat to correct or remove it before the next milestone picks it up.Use Rules for Enforcement, Wikis for Context
If you find yourself writing a wiki page that says “always do X” — that’s a rule. Move it there so agents treat it as a hard requirement, not optional context.Related Docs
Lifecycle Setup
Reference for lifecycle scripts, env vars, validation status, and re-validation
Reviewing the Project Spec
Approve the Project Spec using Project Knowledge and chat
Creating Rules
Deep dive into writing effective rules with examples
Editing Milestones
How to adjust milestone scope and descriptions
Core Concepts
Morph terminology and mental model