Getting Started
Install Specrun and run your first agent workflow in under a minute.
Installation
Install the CLI globally via npm:
npm install -g @specrun/cliOr via Homebrew:
brew install spichen/tap/specrunVerify the installation:
specrun --versionCreate Your First Agent
Scaffold a new project:
specrun init my-agentThis creates:
my-agent/
├── flow.json # Your workflow definition
└── tools/
└── example_tool.sh # A sample toolRun the Workflow
cd my-agent
specrun run flow.json --tools-dir toolsYou should see output showing the flow executing through each node.
Interactive Chat Mode
For debugging and exploration, use chat mode:
specrun run flow.json --tools-dir tools --chatThis starts a persistent multi-turn conversation with your agent.
Validate a Spec
Check your workflow for errors before running:
specrun validate flow.json --tools-dir toolsThis validates the spec schema, compiles the graph, and checks that all referenced tools exist.