Build an agent (C11 / C12)
Agent Starter is the canonical developer accelerator for composing a Commerce Agent in code: define a goal, reach the registry, execute through Commerce Gateway, apply a Loop Engine–style guard, then return a recorded outcome. C12 — Say it this way: agents use Registry to discover, Gateway to act, and Loop Engine to govern. Do not describe agents as an autonomous AI platform, agent product, or a system separate from the gateway.What you get
The same composition is described in Commerce Agent pattern (C9) and shown interactively in Commerce Demo (governed workflow).
Monorepo package
- Path:
packages/agent-starter - Copy
agent.config.example.json→agent.config.json, setGATEWAY_API_TOKEN(or the env name in config), then:
Configuration (minimal)
- Registry —
registry.endpointUrl+mode: "httpPing"(GET reachability). Production agents should call Registry MCP tools (@shop, gateway resolution). - Gateway —
gateway.baseUrl,gateway.bearerTokenEnv, optionalqueryPath(default/api/gateway/query). - Loop guard —
loopGuard.policy,minConfidence,blockWrites(aligned with the governed demo rail, not a live Loop Engine deployment).