Getting started
You will validate, plan, run, and inspect a credential-free workflow from a clean directory. The run performs one deterministic assignment, persists its history to SQLite, and returns a typed output.
Prerequisites
Section titled “Prerequisites”- A built or installed
agentctlbinary - The
agentctlsource checkout - No provider credential
1. Create a clean workspace
Section titled “1. Create a clean workspace”From the repository root:
mkdir -p /tmp/agentctl-first-runcp examples/v1/hello.yaml /tmp/agentctl-first-run/workflow.yamlcd /tmp/agentctl-first-runThe copy is the canonical checked example. The commands write only beneath the temporary workspace.
2. Validate the workflow
Section titled “2. Validate the workflow”agentctl check workflow.yamlExpected output:
valid: hello (1 tasks)check validates strict YAML, references, templates, policies, and provider capabilities. It does not create a database or execute an effect.
3. Inspect the plan
Section titled “3. Inspect the plan”agentctl plan workflow.yamlThe plan reports task order greet, one effect, and FullyPredictable. A plan explains what the compiler knows. It does not claim to predict model or remote-system results.
4. Run the workflow
Section titled “4. Run the workflow”agentctl run workflow.yaml --db .agentctl/runtime.db --output json --color neverThis command writes durable state to .agentctl/runtime.db. It makes no network call and needs no credential. The final envelope has apiVersion: agentctl.dev/cli/v1, state succeeded, and output:
{"greeting":"hello, world"}Copy the returned runId for inspection.
5. Inspect durable history
Section titled “5. Inspect durable history”agentctl inspect RUN_ID --db .agentctl/runtime.db --output json --color neveragentctl db stats --db .agentctl/runtime.db --output json --color neverReplace RUN_ID with the identifier from the run result. Inspection shows the run, task state, effects, checkpoints, audit records, and trace correlation. The database may contain workflow inputs and outputs, so protect it as sensitive operational data.
6. Understand artifacts
Section titled “6. Understand artifacts”This workflow declares no file artifact. A workflow that uses builtin.write writes only beneath a policy-approved writable root. The runtime records the write as an effect, while the file itself stays in the workspace or mounted artifact directory.
Verify the result
Section titled “Verify the result”The tutorial is complete when all of these are true:
checkreports one valid task.planreportsFullyPredictable.runexits0withhello, world..agentctl/runtime.dbexists.inspectreturns the same successful run.
If a command fails, read Troubleshooting.
Next step
Section titled “Next step”Run your first bounded agent workflow without a paid API key.
Canonical source:
docs/guides/GETTING_STARTED.md. Verified against agentctl commit2aeaa88fba71162206b5f08f5bda4f0150247e4f.