Write and validate the spec
Create the application, write its spec with your agent and validate it against the compiler.
At the end of this step: A spec marked ready to compile.
Let your agent learn DMX first
A DevMatrix application is described in DMX, its specification language. Ask your agent to read the DevMatrix authoring guide and the quickstart before it writes anything: they give it the authoring loop, the first constructs it needs and worked examples the compiler accepts.
Read the DevMatrix authoring guide (dmx_authoring_guide) and the quickstart
(dmx_quickstart). Then help me plan an application for <what it should do>.The full language is in the DMX language reference, which your agent can also search through the MCP server.
Create the application
Your agent creates the application and its first specification with create_application. It states the architecture: a monolith with exactly one service, or microservices with any number of them (planned, not available today). If your plan does not admit what was asked, the refusal says so by name and nothing is created.
Write, validate, fix
The agent works in a loop until the compiler has nothing left to say:
- It writes the spec and saves it with
save_spec. Every save is a new version you can go back to. - It validates the saved spec with
validate_spec. Validation runs against the live compiler; a large spec may take a moment, and the agent reads the answer withget_validationwhen it is ready. - Every finding names where it is and what to change. The agent fixes it, saves again and validates again.
A finished validation is not the same as a valid spec: the answer says whether the spec is valid, and the agent reads that, not only that the check ended.
Mark it ready to compile
When the spec validates, the agent marks it ready with mark_compilable. DevMatrix checks the saved content again before it accepts. Marking does not compile anything; that is the next step.