Integrate
Agent eXperience Interface (AXI)
The Agent eXperience Interface for Reactive Skills: direct shell commands, TOON formatting, deterministic exit codes, and actionable recovery hints on every turn.
Origin & Specification
Specification Attribution
The Agent eXperience Interface (AXI) standard was conceived and specified at axi.md. Reactive Skills implements the AXI specification to provide a command-line interface for reactive workflows.
AXI provides a direct shell interface for agent workflows, while MCP provides host-managed tool integration for clients that need it. Both can drive the same reactive runtime. Explore the full specification, tenets, and community standards at http://axi.md.
AXI and MCP trade-offs
AXI is engineered for direct shell workflows: no background daemon process, deterministic exit codes, and Token-Oriented Object Notation (TOON) output. MCP provides a host-managed tool bridge for clients that need a persistent stdio connection.
Runtime interface selection
INIT checks local AXI and MCP capabilities and versions, then selects one compatible transport for the run. npx is AXI's zero-install launcher, not a separate runtime.
The public CLI contract
The CLI entrypoint supports a read-only capabilities/version preflight, then can run zero-install via npx or be installed globally with npm i -g @reactive-skills/axi.
npx -y @reactive-skills/axi <command> [options]- axi (dashboard) — lists registered skills, current states, and suggested next actions.
- axi --version — prints the installed AXI package version and exits.
- axi capabilities --json: reports runtime versions and supported capabilities without creating a job.
- axi preflight <skill> --json: validates a skill against its declared runtime requirements without creating a job.
- axi invoke <skill> [--payload JSON] [--job <id>] — starts a fresh isolated execution run, auto-generating a unique job ID.
- axi state <skill> [--job <id>] — outputs active state, hierarchical path, and allowed transitions (auto-rotates if prior job completed).
- axi emit <skill> <signal> — dispatches a typed signal to evaluate guards and advance.
- axi jobs [list|switch|archive] <skill> — manages isolated execution runs, active pointer resolution, and deliverable mirroring.
- axi inspect <path> — displays complete statechart hierarchy and guard rules.
- axi events [limit] <skill> — tails the immutable append-only event ledger.
- axi view <skill> [--job <id>] [--port <number>]: launches a job-scoped real-time telemetry server and live visual viewer.
- axi dashboard [--host <host>] [--port <port>]: launches one read-only broker for multiple skills and jobs.
- axi init <name> — scaffolds a modular reactive skill directory.
- axi reset <skill> — resets active execution run while preserving deliverables.
- axi sync [skill] — synchronizes skills across authoring workspaces and agent satellites via zero-drift junctions.
- axi mcp — launches stdio MCP server for GUI IDE host connectivity.
Telemetry viewer ports
When --port is omitted, AXI makes real bind attempts starting at 127.0.0.1:4242 and falls back through a bounded deterministic range if the preferred port is occupied. This applies to both view and dashboard.
npx -y @reactive-skills/axi view my-skillnpx -y @reactive-skills/axi dashboardnpx -y @reactive-skills/axi dashboard --port 0The CLI output and telemetry responses report the actual selected port and URL. The browser viewer uses that reported URL and does not scan local ports automatically.
Output formatting: TOON and JSON
AXI outputs in TOON (Token-Oriented Object Notation) by default. Output size depends on the data and selected format. Measure complete command arguments and results, including retained transcript content; no general token-reduction percentage is claimed.
npx -y @reactive-skills/axi state my-feature-flowExpected output: skill: my-feature-flow
state: RED_SPEC
path: [INIT, RED_SPEC]
transitions: [TEST_RAN (guard: exit_code != 0) → GREEN_CODE]
suggestions: [emit: npx -y @reactive-skills/axi emit my-feature-flow TEST_RAN]Deterministic exit codes
Exit codes tell host scripts and agent harnesses whether a command threw, but not every failure is non-zero. Many commands, including init, state, emit, inspect and events, report a failure such as NOT_FOUND or ALREADY_EXISTS as an error: / code: block on stdout and still exit 0. Check stdout for an error: line as well as the exit code.
| Code | Error codes | Recovery Action |
|---|---|---|
| 0 | None (success), or an error reported on stdout | If stdout contains an "error:" line, read its "code:" and "help" lines, fix the cause and re-run; otherwise proceed to the next command. |
| 1 | NOT_FOUND, ALREADY_EXISTS, INVALID_SKILL, VALIDATION_ERROR, NO_EVENT_STORE, RUNTIME_ERROR, UNKNOWN; or a failed validate, vet (at or above --fail-on), preflight or sync check, which reports on stdout with no error code on stderr | For an error code, read the message and suggestions on stderr; for a failed check, read its report on stdout. Fix the cause and re-run. |
| 2 | USAGE_ERROR, or an unknown command | Run the command with --help, correct the arguments, and re-run. |
Actionable recovery diagnostics
Errors never terminate with raw stack traces. Every error returns a structured failure explanation and concrete recovery instructions.
Actionable recovery
Transition rejected: guard "exit_code == 0" evaluated to false on signal TEST_RAN — recovery: run test suite, correct failing assertions, and re-emit TEST_RAN.