specrun

CLI Reference

Complete reference for all Specrun CLI commands and options.

specrun run

Execute an Agent Spec flow.

specrun run <flow> [options]

Arguments

ArgumentDescription
flowPath to the flow file (JSON or YAML)

Options

OptionDescription
--tools-dir <path>Directory containing tool executables
--input <json>Input data as a JSON string
--chatStart an interactive chat session
--verboseEnable verbose logging

Examples

# Basic run
specrun run flow.yaml --tools-dir ./tools

# With input data
specrun run flow.json --tools-dir ./tools --input '{"query": "quantum computing"}'

# Interactive chat mode
specrun run flow.yaml --tools-dir ./tools --chat

specrun validate

Validate an Agent Spec component.

specrun validate <spec> [options]

Arguments

ArgumentDescription
specPath to the spec file (JSON or YAML)

Options

OptionDescription
--tools-dir <path>Directory containing tool executables (validates tool references)

What It Checks

  1. Schema validation against the Open Agent Specification
  2. Graph compilation (for flows)
  3. Edge validation (control flow and data flow)
  4. Tool existence (when --tools-dir is provided)

specrun init

Scaffold a new project.

specrun init <project-name>

Creates a project directory with a template flow.json and a sample tool in tools/.