Command surface
The core command surface is broad, explicit, and inspectable.
Use `mbr` when you want the product shape to stay inspectable. The command families map directly to the operational primitives and lifecycle surfaces agents need to reason about, so you are not starting from a blank framework or a thin wrapper around one-off apps. The excerpts below are grouped from the canonical generated command surface in `docs/AGENT_CLI.md`.
Proof bundle
-
Contract
docs/AGENT_CLI.md
Defines the supported agent CLI contract, auth modes, and command surface.
-
Contract
docs/swagger.yaml
Documents the public API surface, auth model, and health endpoints.
-
Implementation
cmd/api/routers.go
Implements the split between `/graphql`, `/admin/graphql`, public routes, and authenticated agent surfaces.
-
Enforcement
.github/workflows/_test.yml
Verifies builds, tests, and contract-sensitive paths on the public platform codebase.
Discovery and local state
Auth, context, and `spec export` establish runtime selection, local state, and command-contract awareness.
Topology and access
Workspaces, teams, agents, memberships, and catalog commands expose system topology, ownership, and access control.
Intake and work execution
Forms, queues, conversations, cases, contacts, and automation commands expose the main operational work loop.
Shared knowledge and memory
Knowledge, concepts, and artifacts commands expose durable context, concept specs, and extension-managed content surfaces.
Runtime and bounded capability
Extensions, attachments, and health commands expose packaging, runtime diagnostics, activation state, and support surfaces.
Auth, context, and spec
These commands establish runtime discovery, local state, and the machine-readable contract itself.
mbr auth whoami [--url URL] [--token TOKEN] [--json]mbr auth login --url URL [--token TOKEN | --token-stdin] [--json]mbr auth logoutmbr context view [--json]mbr context set [--workspace WORKSPACE_ID] [--team TEAM_ID] [--clear-team | --clear] [--json]mbr spec export [--json]
Workspaces, teams, and agents
These commands expose topology, ownership, team state, and explicit agent access control.
mbr workspaces list [--url URL] [--token TOKEN] [--json]mbr workspaces create --name NAME --slug SLUG [--description TEXT] [--url URL] [--json]mbr teams list [--workspace WORKSPACE_ID] [--url URL] [--token TOKEN] [--json]mbr teams create [--workspace WORKSPACE_ID] --name NAME [--description TEXT] [--email ADDRESS] [--response-hours N] [--resolution-hours N] [--auto-assign] [--auto-assign-keywords CSV] [--inactive] [--url URL] [--token TOKEN] [--json]mbr teams show TEAM_ID [--url URL] [--token TOKEN] [--json]mbr teams members list [--team TEAM_ID] [--url URL] [--token TOKEN] [--json]mbr teams members add [--team TEAM_ID] --user USER_ID [--role ROLE] [--url URL] [--token TOKEN] [--json]mbr agents list [--workspace WORKSPACE_ID] [--url URL] [--token TOKEN] [--json]mbr agents show AGENT_ID [--url URL] [--token TOKEN] [--json]mbr agents create [--workspace WORKSPACE_ID] --name NAME [--description TEXT] [--url URL] [--token TOKEN] [--json]mbr agents update AGENT_ID [--name NAME] [--description TEXT] [--url URL] [--token TOKEN] [--json]mbr agents memberships grant AGENT_ID [--workspace WORKSPACE_ID] [--role ROLE] [--permissions CSV] [--expires-in-days N] [--input-file PATH | --input-json JSON] [--allowed-ips CSV] [--allowed-projects CSV] [--allowed-teams CSV] [--allow-delegated-routing[=BOOL]] [--delegated-routing-teams CSV] [--active-hours-start HH:MM] [--active-hours-end HH:MM] [--active-timezone TZ] [--active-days CSV] [--rate-limit-per-minute N] [--rate-limit-per-hour N] [--url URL] [--token TOKEN] [--json]
Forms, queues, conversations, cases, and automation
These commands expose intake, routing, live interaction, durable casework, and rule-driven follow-through.
mbr forms specs list [--workspace WORKSPACE_ID] [--url URL] [--token TOKEN] [--json]mbr forms specs show SPEC_ID_OR_SLUG [--workspace WORKSPACE_ID] [--url URL] [--token TOKEN] [--json]mbr forms specs create [--workspace WORKSPACE_ID] (--input-file PATH | --input-json JSON) [--url URL] [--token TOKEN] [--json]mbr forms submissions list [--workspace WORKSPACE_ID] [--spec SPEC_ID] [--status STATUS] [--limit N] [--offset N] [--url URL] [--token TOKEN] [--json]mbr forms submissions create SPEC_ID_OR_SLUG [--workspace WORKSPACE_ID] (--input-file PATH | --input-json JSON) [--url URL] [--token TOKEN] [--json]mbr queues list [--workspace WORKSPACE_ID] [--url URL] [--token TOKEN] [--json]mbr queues show QUEUE_ID [--url URL] [--token TOKEN] [--json]mbr queues create [--workspace WORKSPACE_ID] --name NAME [--slug SLUG] [--description TEXT] [--url URL] [--token TOKEN] [--json]mbr queues items QUEUE_ID [--url URL] [--token TOKEN] [--json]mbr conversations list [--workspace WORKSPACE_ID] [--status STATUS] [--channel CHANNEL] [--catalog-node NODE_ID] [--contact CONTACT_ID] [--case CASE_ID] [--limit N] [--offset N] [--url URL] [--token TOKEN] [--json]mbr conversations reply SESSION_ID [--participant PARTICIPANT_ID] [--role ROLE] [--kind KIND] [--visibility VISIBILITY] (--content TEXT | --file PATH) [--url URL] [--token TOKEN] [--json]mbr conversations handoff SESSION_ID --queue QUEUE_ID [--team TEAM_ID] [--operator USER_ID] [--reason TEXT] [--url URL] [--token TOKEN] [--json]mbr conversations escalate SESSION_ID --queue QUEUE_ID [--team TEAM_ID] [--operator USER_ID] [--subject TEXT] [--description TEXT] [--priority PRIORITY] [--category TEXT] [--reason TEXT] [--url URL] [--token TOKEN] [--json]mbr cases list [--workspace WORKSPACE_ID] [--status STATUS] [--priority PRIORITY] [--queue QUEUE_ID] [--assignee USER_ID] [--limit N] [--url URL] [--token TOKEN] [--json]mbr cases show CASE_ID [--workspace WORKSPACE_ID] [--url URL] [--token TOKEN] [--json]mbr cases set-status CASE_ID --status STATUS [--workspace WORKSPACE_ID] [--url URL] [--token TOKEN] [--json]mbr cases handoff CASE_ID --queue QUEUE_ID [--team TEAM_ID] [--assignee USER_ID] [--reason TEXT] [--workspace WORKSPACE_ID] [--url URL] [--token TOKEN] [--json]mbr automation rules list [--workspace WORKSPACE_ID] [--limit N] [--url URL] [--token TOKEN] [--json]mbr automation rules create [--workspace WORKSPACE_ID] --title TITLE (--conditions-file PATH | --conditions-json JSON) (--actions-file PATH | --actions-json JSON) [--description TEXT] [--active] [--priority N] [--max-per-hour N] [--max-per-day N] [--url URL] [--token TOKEN] [--json]
Knowledge, concepts, and artifacts
These commands expose shared knowledge, concept definitions, and extension-managed content-bearing surfaces.
mbr knowledge list [--workspace WORKSPACE_ID] [--team TEAM_ID] [--surface SURFACE] [--review-status STATUS] [--kind KIND] [--status STATUS] [--search QUERY] [--limit N] [--url URL] [--token TOKEN] [--json]mbr knowledge show RESOURCE [--workspace WORKSPACE_ID --team TEAM_ID --surface SURFACE] [--url URL] [--token TOKEN] [--json]mbr knowledge search QUERY [--workspace WORKSPACE_ID] [--team TEAM_ID] [--surface SURFACE] [--review-status STATUS] [--kind KIND] [--status STATUS] [--limit N] [--url URL] [--token TOKEN] [--json]mbr knowledge review-queue [--workspace WORKSPACE_ID] [--team TEAM_ID] [--kind KIND] [--review-status STATUS] [--limit N] [--url URL] [--token TOKEN] [--json]mbr knowledge upsert [RESOURCE] [--workspace WORKSPACE_ID] [--team TEAM_ID] --slug SLUG [--surface SURFACE] [--title TITLE] [--kind KIND] [--concept-spec KEY] [--concept-version VERSION] [--status STATUS] [--summary TEXT] [--body TEXT | --file PATH] [--source-kind KIND] [--source-ref REF] [--path-ref PATH] [--channels CSV] [--share-with CSV] [--keywords CSV] [--frontmatter-file PATH | --frontmatter-json JSON] [--url URL] [--token TOKEN] [--json]mbr knowledge checkout PATH [--workspace WORKSPACE_ID] [--team TEAM_ID] [--surface SURFACE] [--kind KIND] [--review-status STATUS] [--status STATUS] [--search QUERY] [--url URL] [--token TOKEN] [--json]mbr knowledge status [PATH] [--url URL] [--token TOKEN] [--json]mbr knowledge pull [PATH] [--url URL] [--token TOKEN] [--json]mbr knowledge push [PATH] [--url URL] [--token TOKEN] [--json]mbr knowledge sync PATH [--workspace WORKSPACE_ID] [--team TEAM_ID] [--surface SURFACE] [--kind KIND] [--concept-spec KEY] [--concept-version VERSION] [--status STATUS] [--review-status STATUS] [--share-with TEAM_IDS] [--source-kind KIND] [--source-ref REF] [--url URL] [--token TOKEN] [--json]mbr knowledge import PATH [--workspace WORKSPACE_ID] [--team TEAM_ID] [--surface SURFACE] [--kind KIND] [--concept-spec KEY] [--concept-version VERSION] [--status STATUS] [--review-status STATUS] [--share-with TEAM_IDS] [--source-kind KIND] [--source-ref REF] [--mode preview|apply] [--url URL] [--token TOKEN] [--json]mbr concepts list [--workspace WORKSPACE_ID] [--url URL] [--token TOKEN] [--json]mbr concepts show KEY [--workspace WORKSPACE_ID] [--version VERSION] [--url URL] [--token TOKEN] [--json]mbr concepts register FILE [--workspace WORKSPACE_ID] [--team TEAM_ID] [--source-kind KIND] [--source-ref REF] [--status STATUS] [--url URL] [--token TOKEN] [--json]mbr artifacts list --extension EXTENSION_ID --surface SURFACE [--url URL] [--token TOKEN] [--json]mbr artifacts show --extension EXTENSION_ID --surface SURFACE --path PATH [--ref REVISION] [--url URL] [--token TOKEN] [--json]mbr artifacts publish --extension EXTENSION_ID --surface SURFACE --path PATH (--file FILE | --content TEXT) [--url URL] [--token TOKEN] [--json]
Attachments, health, and extension lifecycle
These commands expose support surfaces, runtime identity checks, and the bounded extension lifecycle.
mbr contacts list [--workspace WORKSPACE_ID] [--url URL] [--token TOKEN] [--json]mbr attachments upload PATH [--workspace WORKSPACE_ID] [--case CASE_ID] [--description TEXT] [--content-type MIME] [--url URL] [--token TOKEN] [--json]mbr health check [--url URL] [--token TOKEN] [--json]mbr extensions list ([--workspace WORKSPACE_ID] | --instance) [--url URL] [--token TOKEN] [--json]mbr extensions show --id EXTENSION_ID [--url URL] [--token TOKEN] [--json]mbr extensions deploy BUNDLE_SOURCE [--workspace WORKSPACE_ID] [--license-token TOKEN] [--config-file PATH | --config-json JSON] [--no-activate] [--no-monitor] [--url URL] [--token TOKEN] [--json]mbr extensions monitor --id EXTENSION_ID [--url URL] [--token TOKEN] [--json]mbr extensions events list [--workspace WORKSPACE_ID] [--url URL] [--token TOKEN] [--json]mbr extensions skills list --id EXTENSION_ID [--url URL] [--token TOKEN] [--json]mbr extensions skills show --id EXTENSION_ID --name SKILL_NAME [--url URL] [--token TOKEN] [--json]mbr extensions install BUNDLE_SOURCE [--workspace WORKSPACE_ID] [--license-token TOKEN] [--url URL] [--token TOKEN] [--json]mbr extensions upgrade BUNDLE_SOURCE --id EXTENSION_ID [--license-token TOKEN] [--url URL] [--token TOKEN] [--json]mbr extensions configure --id EXTENSION_ID (--config-file PATH | --config-json JSON) [--url URL] [--token TOKEN] [--json]mbr extensions validate --id EXTENSION_ID [--url URL] [--token TOKEN] [--json]mbr extensions activate --id EXTENSION_ID [--url URL] [--token TOKEN] [--json]mbr extensions deactivate --id EXTENSION_ID [--reason TEXT] [--url URL] [--token TOKEN] [--json]