DOCS HUB agent-spine

agent-spine CLI Reference

agent-spine is the deterministic DAG workflow execution engine for the Autonomic ecosystem. It compiles declarative YAML workflows into directed acyclic graphs, executes steps in parallel or sequential pipelines, preserves immutable execution checkpoints in SQLite, and bridges with agent-brain for dynamic task routing.


Synopsis

agent-spine [OPTIONS] <COMMAND>

Global Options

FlagShortTypeDescription
--help-hBooleanPrint help and command usage.
--version-VBooleanPrint installed agent-spine version.

Commands

run

Execute a YAML workflow locally.

agent-spine run [OPTIONS] <WORKFLOW>

Arguments

ArgumentTypeDescription
WORKFLOWPathPath to YAML workflow definition file (e.g., workflow.yaml).

Options

FlagShortTypeDefaultDescription
--payload-pString{}Initial JSON input payload passed to the workflow root.
--db-dPath~/.autonomic/logs/spine/state.dbPath to SQLite state database for step snapshot persistence.
--brain-bBooleanfalseEnable agent-brain routing, rule injection, and step enrichment.
--meta-mStringNoneQuery agent-brain to dynamically select the workflow based on prompt.

Examples

# Run bugfix workflow with JSON payload
agent-spine run ~/.autonomic/state/spine/bugfix.yaml 
  --payload '{"issue_id": "AUT-402", "branch": "fix/memory-leak"}'

# Execute workflow with agent-brain dynamic routing
agent-spine run ~/.autonomic/state/spine/release.yaml --brain

# Meta-routing: select workflow automatically based on user task
agent-spine run workflow.yaml --meta "Review open PRs and generate changelog"

# Run workflow with offline budget gating disabled
AUTONOMIC_BUDGET_GATE=0 agent-spine run workflow.yaml

validate

Parse and validate a YAML workflow definition against schema rules, budget preconditions, and cyclic dependency checks.

agent-spine validate <WORKFLOW>

Checks Performed

  • Validates YAML syntax and structural types.
  • Validates budget blocks (max_cost_usd, max_tokens) and node preconditions (budget_headroom, quota_available).
  • Detects cyclic dependencies using Kahn’s topological sorting algorithm.
  • Verifies that all referenced tool names exist in the configured MCP servers.
  • Validates timeout values and retry policies.

Examples

# Validate workflow DAG and preconditions
agent-spine validate .autonomic/workflows/ci.yaml

# Validate feature release workflow before scheduling
agent-spine validate workflow.yaml

init

Initialize agent-spine configuration, create state directories, and generate built-in workflow templates.

agent-spine init [OPTIONS]

Options

FlagShortTypeDefaultDescription
--force-fBooleanfalseSkip prerequisite checks (protoc, bun, agent-brain).
--dir-dPath~/.autonomic/state/spineTarget directory for generated workflow files.
--with-wStringNoneGenerate a specific built-in template (@bugfix, @stacked-pr, @release-notes, @feature-from-spec, @mcp-health-check, or list).

Examples

# List available built-in workflow templates
agent-spine init --with list

# Scaffold bugfix workflow
agent-spine init --with @bugfix

inspect

Inspect the complete historical trace and step outcomes of an execution.

agent-spine inspect [OPTIONS] <EXECUTION_ID>

Arguments

ArgumentTypeDescription
EXECUTION_IDStringUnique execution UUID.

Options

FlagShortTypeDefaultDescription
--db-dPath~/.autonomic/logs/spine/state.dbState database file path.

replay

Replay a past workflow execution from its checkpoints to recreate or verify the final state.

agent-spine replay [OPTIONS] <EXECUTION_ID>

serve

Start the agent-spine HTTP API and live web DAG visualizer.

agent-spine serve [OPTIONS]

Options

FlagShortTypeDefaultDescription
--port-pInteger3000Port for the Spine HTTP management API.
--dashboard-port—Integer3001Port for the web DAG visualization dashboard.
--db-dPath~/.autonomic/logs/spine/state.dbState database path.
--nats-url—Stringnats://127.0.0.1:4222NATS JetStream broker URL for distributed events.

mcp-serve

Start the Model Context Protocol (MCP) server over standard I/O (stdio).

agent-spine mcp-serve [OPTIONS]

Provides tool interfaces (spine_submit_workflow, spine_list_workflows, spine_check_status) for external agent hosts such as Cursor and Claude Code.


doctor

Diagnose common configuration issues, prerequisite tools, SQLite schema integrity, and NATS broker connectivity.

agent-spine doctor

log

Display or tail supervisor logs for the spine daemon.

agent-spine log [OPTIONS] [NAME]

Options

FlagShortTypeDefaultDescription
--follow-fBooleanfalseFollow log output (tail -f).
--list-lBooleanfalseList available log files.
Autonomic AI AUTONOMIC AI | HOMEOSTATIC RUNTIME
2/2 COMPONENTS IN SCOPE · LATENCY: <0.8ms