Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.compose.market/llms.txt

Use this file to discover all available pages before exploring further.

MAL swarms use registered Compose agents. task and delegate do not accept raw model ids. That rule is the whole point of the harness. A MAL subagent is a deployed agent with its own wallet, card, model, memory scope, tools, and creator ownership. It is not a temporary prompt frame around the coordinator’s model.

Validation

Before a task or delegate runs, the interpreter calls ensureRegisteredAgent().
CheckBehavior
Missing walletFails with UnregisteredAgentError.
Malformed walletFails before network lookup.
GET /agent/{wallet} returns 200Step can execute.
GET /agent/{wallet} returns 404Fails closed.
Network/timeout/5xxFails closed.
Lookups are cached for five minutes.

Task vs Delegate

OpUse
taskSpawn a focused subagent with optional tool bindings, persona override, budget, and isolation.
delegateAsk a registered deployed agent to perform a request with a budget.
Both resolve the target agent’s card model. If you want to call a model directly, use models_call. task is useful when the coordinator needs a bounded specialist run with optional tool bindings, persona override, budget, or isolation. delegate is the simpler A2A call: ask a registered deployed agent to do one thing and return the result. In both cases, the target agent remains the execution unit.

Example

steps:
  - op: delegate
    saveAs: analysis
    agentWallet: "0x1111111111111111111111111111111111111111"
    prompt: "Analyze this request and return risk notes."
    budget:
      maxWallMs: 120000

  - op: stop
    output: "{{analysis}}"

Comparison

SystemA2A shapeManowar shape
OpenAI Agents SDKHandoffs route to another agent object.task and delegate route to deployed wallet-addressed agents.
AutoGenAgents exchange messages inside a team/runtime.MAL subagents are registered Compose agents with card models and memory scope.
LangGraphHandoffs are graph edges or commands in app code.MAL plan ops are interpreted by the hosted runtime.

Why This Matters

Prompt-only subagents are cheap to create but hard to account for. They borrow the parent prompt, parent context window, parent credentials, and parent billing surface. Manowar uses a stricter primitive. The coordinator can compose other agents without dissolving them into its own context. That keeps tokens smaller, permissions clearer, and economic attribution attached to the agent that did the work.