Skip to content

Factory · how it works

Your agent does the work. Factory holds the plan and the record.

Factory is a hosted service your coding agent talks to over MCP. It runs no AI models and launches no agents. It gives your agent a structure to work in, checks every change, and remembers everything.

Who does what

You

Decide what to build, choose between alternatives, resolve design questions and accept the result.

Your coding agent

Writes the spec, data model and architecture with you, then builds and tests the code in your own environment.

Factory

Stores every layer as validated records, checks each change, hands out construction work and keeps the complete history.

Five layers, each built on the one before

Each layer pins the exact revisions of the layers it was built from. When construction exposes a gap, the finding goes back to the layer that has to change, and the work continues from a new revision.

  1. 01

    Specification

    What are we building?

    Agree on the requirements, constraints, and what counts as success.

    A clear brief

  2. 02

    Data model

    What does it mean?

    Define the concepts, relationships, and rules the whole system shares.

    Shared understanding

  3. 03

    Architecture variants

    How should it work?

    Explore different designs, compare the trade-offs, and choose one to build.

    A chosen design

  4. 04

    Prototype

    Does the design work?

    Run a working mock with realistic scenarios before committing to implementation.

    A tested mock

  5. 05

    Construction

    Does the product work?

    Build the actual components, integrate them, and verify the result against the plan.

    An implemented product

Learn, revise, continue. Findings feed back into the design. Decisions, versions, and verification stay with the project.

How Factory steers your agent

A skill teaches the method

The published mfm-factory skill is your agent's operating guide: the order of work, how to read before writing, how to recover from conflicts. It installs like any other skill and is versioned and checksummed.

Schemas define every change

Each change is a typed command with a published JSON Schema. Your agent reads the schema before writing, so it knows exactly what a valid change looks like.

The server checks every write

Factory validates the complete result of every change and refuses anything inconsistent, listing every problem with its location. A dry run lets your agent check a change before committing it.

Records keep the agent honest

Writes name the revision they build on, so stale work is refused rather than overwriting newer decisions. Every change carries a reason and lands in an append-only ledger and audit trail.

Revisions and variants

Nothing is overwritten. Every change creates a new revision, and older revisions stay readable. When you want to explore an alternative, such as a smaller first release or a different architecture, it becomes a named variant in the same project rather than a copy you have to keep in sync.

What Factory does not do

It does not write code, run your tests, start agents or run models, and it does not certify that software is production ready. Those stay with you, your agent and your own tools.

Go deeper