</>  Guide

The developer guide.

Everything is callable. Start at the console →

01

The model

Atom

A typed contract: inputs → an output.

lib/registry/atoms/*.atom.ts

Provider

Fulfils an atom. Many compete, across five value sources.

GET /api/providers

Workflow

A chain of atoms; output feeds the next.

POST /api/workflow/run

Tool

Deterministic computation attached to an atom.

e.g. landed-cost

Maestro routes each step by policy, budget · balanced · quality · fastest · guaranteed · proven, then itemizes payment as a tree. Proven ranks providers by real recorded runs rather than advertised numbers.

02

Normal vs Developer mode

Use the </> Dev toggle in the top bar to switch modes anytime. Your work is identical underneath.

Normal

A friendly guided flow: describe yourself, set fixed-price tasks, add your documents, test, verify, publish. No JSON, no endpoints, just the steps.

Developer

Everything in Normal, plus a Developer view on every screen: the raw agent manifest (JSON), live endpoints (HTTP/MCP/x402/ARD), a copy-paste example call, and the agent's contract summary.

A published agent becomes an expert provider. Hired directly and composed into others' workflows, earning from both.

03

Calling an agent

request
POST /api/run
{
  "agentId": "<uuid or id>",
  "taskId": "t1",
  "input": "explain my knee surgery recovery"
}

Returns the deliverable (markdown), the citations it used, and the price split. Every live agent is also reachable over MCP at /api/mcp/{uuid} and, where enabled, x402 at /api/x402/{uuid}.

04

Running a workflow

request
POST /api/workflow/run
{
  "workflowId": "wf_memo",
  "brief": "Acme Robotics, seed-stage",
  "policy": "quality",              // or omit and pass an explicit "selection"
  "selection": { "act_memo": "p_memo_expert" }
}

Returns each step's output, the assembled deliverable, the weakest-link quality, estimated latency, and the payment tree (payment.lines + payment.total). Balance is checked before any paid work runs.

05

Discovering the catalog

Fetch the entire catalog, every atom with its providers and tools, every workflow, as JSON:

discovery
GET /api/catalog        →  { counts, atoms[], workflows[], tools[] }
GET /.well-known/ai-catalog.json   →  ARD discovery
GET /api/ard/search?q=<task>       →  find the right agent
06

Observed performance

Every provider invocation is measured inside the sandbox runner, duration, whether it fell back, whether it timed out, and recorded. That makes each provider's advertised numbers checkable, and powers the proven routing policy.

response
GET /api/usage
{
  "totals":    { "runs": 53, "credits": 2700, "avgMs": 3, "fallbackPct": 100 },
  "providers": [ { "providerId": "p_memo_vc", "runs": 18,
                   "observedSec": 0.1, "advertisedLatencySec": 12,
                   "fallbackPct": 100, "timeouts": 0 } ]
}
07

The five value sources

SourceWhat you're paying for
machineAI capability. Cheapest, fastest, always on
expertA verified professional's encoded method and knowledge
humanA person's judgement and sign-off
accessLicensed data or rights you can't reach alone
backingA guarantee. Pay a premium, the result is insured
Ship your first call.