sdtk-agent — Command Reference
Durable DAG orchestration CLI. Guide: SDTK-AGENT.
npm install -g sdtk-agent-kit # included in sdtk-kit
sdtk-agent --helpAll run-scoped commands accept --project-path <path> (defaults to the CWD) and most support --json for machine-readable output. Run sdtk-agent <command> --help for command-specific options.
Setup & validation
sdtk-agent init
Initialize the runtime ledger root (.sdtk/agent-runtime/).
sdtk-agent init --project-path ./my-projectsdtk-agent workflow validate
Validate a workflow JSON DAG — cycle detection, unsafe paths, schema.
sdtk-agent workflow validate --file ./workflow.jsonRuns
sdtk-agent run start
Create a new run. Ledger-only — nothing executes until run continue.
sdtk-agent run start \
--project-path ./my-project \
--workflow ./workflow.json \
--runtime-map ./runtime-map.json \
--feature-key MY_FEATURE \
--goal "Describe the goal" \
--jsonsdtk-agent run continue
Execute the driver loop until the run blocks (gate/manual evidence), waits, or completes.
sdtk-agent run continue --project-path ./my-project --run-id <run_id>sdtk-agent run status
Current run state as JSON.
sdtk-agent run status --project-path ./my-project --run-id <run_id> --jsonsdtk-agent run report
Generate and print the run report — every task, gate decision, and evidence file.
sdtk-agent run report --project-path ./my-project --run-id <run_id>Gates
sdtk-agent gate approve
Approve a human gate, unblocking downstream stages. Attribution is required.
sdtk-agent gate approve --project-path ./my-project --run-id <run_id> \
--gate <gate_id> --approved-by <name>sdtk-agent gate reject
Reject (or request changes on) a human gate.
sdtk-agent gate reject --project-path ./my-project --run-id <run_id> \
--gate <gate_id> --approved-by <name>Adapters
sdtk-agent adapter hermes-kanban plan Preview
Compile a workflow into a Hermes Kanban card create/link plan. Dry-run only — no live gateway; the currently published npm adapter refuses mode:"live" fail-closed. Live dispatch remains gated/unpublished. See Hermes Adapter.
sdtk-agent adapter hermes-kanban plan --workflow ./workflow.jsonRecovery verbs Shipped
sdtk-agent run cancel and sdtk-agent task retry are published in sdtk-agent-kit@0.4.0 and part of the installable surface. run cancel sets the run and its non-terminal tasks to cancelled (preserving completed/failed) and best-effort cancels any in-flight external task; task retry re-readies a failed or timed-out task for another attempt. Both require --run-id.
Execution observability (opt-in, local pilot)
sdtk-agent monitor observability --project-path . --run-id <run-id> --jsonThis read-only command returns the optional sdtk.agent-observability.v1 companion for a specific real run. A compatible explicitly configured Router/Agent producer supplies the data. The command does not start agents, enable collection, query provider credentials or reconstruct private session history. Uninstrumented or unsupported runs return explicit unavailable/Unknown data; the existing list/detail/models envelopes remain unchanged.
Supported facts include actual main/child job and reviewer links, distinct requested/configured/selected/runtime-reported models, safe activity labels, revision-bound check/apply/review results and source-scoped usage/context/timing. Terminal Claude usage remains job aggregate or last-reported iteration; it is not a stream of internal worker tools or per-request timing. A running record is not an independent heartbeat.
Cached input and reasoning counters are subsets where applicable. Cumulative job input is not current context occupancy. Request throughput, measured stream-window rate and CLI API aggregate throughput use their own intervals; exact decode TPS stays Unknown without authoritative server timing. Partial/truncated coverage is explicit, and missing values never become zero.
The Atlas execution inspector consumes this same public projection. Activity may contain a task label, tool name and filtered repository-relative resource; prompts, file contents, raw arguments, credentials and absolute paths are withheld. Producer attachment is explicit, including the trusted Router workspace --observability-module option. No default Agent dependency or implicit historical collection is added.