Using gust
gust answers one question about an LLM agent you already run in production:
Does it still do the right thing — reliably — after this change?
Not “is the final answer good?” but “did it call the right tools, with the right arguments, in the right order, without touching anything forbidden, within its step and latency budget — and how often out of N attempts?”
What you get
| Problem you have today | What gust gives you |
|---|---|
| A prompt/model/tool change silently broke tool selection | gust analyze gates captured traces offline in CI, no LLM calls |
| Tests hit real APIs, so CI is slow, flaky, and expensive | gust replay re-drives recorded tool I/O deterministically |
| One test run says PASS, the next says FAIL | gust test samples N times and reports a Wilson confidence interval with PASS / FAIL / FLAKY / INSUFFICIENT_SAMPLES |
| “Is this drop real or noise?” | gust compare gates a baseline vs candidate pass-rate drop with a significance test |
| Production broke in a way no test covered | gust scenario from-run turns a real trace into a test scenario skeleton |
| “Do our assertions actually catch bugs?” | gust mutate injects known-bad behavior and measures detection rate |
Where gust runs
gust is CI and local test infra. It is not a production sidecar and not an observability store.
flowchart LR
prod[Production agent] -.->|never| gust
ci[CI job gust binary]
qa[Dev or QA agent]
ci -->|invoke N samples| qa
qa -->|OTLP or AgentRun| ci
ci --> verdict[PASS FAIL FLAKY]
- gust starts on the CI runner (or your laptop), listens for traces, evaluates, exits.
- The agent under test is the build in that job, or a dev/QA service the runner can reach. Tools go through fixtures, not production APIs.
- Production keeps its own exporter (Phoenix, Langfuse, a collector). Nothing in prod points at gust.
How to wire the job: CI integration. How the agent pushes a trace: Test your agent and OTel ingestion.
Guides
| Page | What it covers |
|---|---|
| Getting started | Install, offline analyze, and a minimal live eval in ~15 minutes. Start here. |
| Integrate your app | Emit an AgentRun from your existing Python, TypeScript, or Go service and run your first gate |
| Go library | Embed Analyze in go test via the stable pkg/gust API |
| Test your agent | Mode 3 against your agent via --runner http, exec, or trigger — no Go |
| Live-agent demo | Worked Mode 3 example: fixtures, recovery, forbidden tool, recorded N=20 results |
| Modes cookbook | Recipes per mode, all assertion types, fixtures, and policies |
| Tuning the gate | Policy, criticality, hard-constraint counts, retry, gust.yaml, and CLI knobs |
| Privacy and redaction | Gust does not auto-redact; gust scenario propose redacts by default |
| Scenario examples | Retail cancel, RAG, SRE incident, PR review, clinic booking, warehouse SQL |
| OTel ingestion | Point an existing OTLP exporter at gust, or pull a Langfuse trace |
| CI integration | gust on the CI runner; agent in the job or QA; exit codes |
| Compatibility | SDK × schema × CLI and framework adapter versions |
| LLM judge | Opt-in rubric judges, panels, and why LLMs grading LLMs is useful but not gospel |
| Judge calibration | Spearman ρ gate before a judge may fail samples |
| AEE methodology | How the self-benchmark is measured |
| Benchmarks | Metrics explained, latest AEE numbers, more proof |
Custom evaluators, runners, and cross-language plugins: Extending.
The one rule that surprises people
A trace is not a test. A captured AgentRun is evidence of what happened once. If you auto-generate assertions from what the agent did, you enshrine its current bugs as the specification. gust deliberately refuses to do this — gust scenario from-run leaves assertions: [] for a human to fill in.
Install
git clone https://github.com/ShadyD45/gust && cd gust
go build -o gust ./cmd/gust
# or: go install ./cmd/gust
The result is a single static binary with no runtime dependencies. Drop it on a CI runner. Analyze and Replay need no network. Test mode talks only to a dev/QA (or in-job) agent — never to production. Do not use gust-aee for product installs.
The 60-second version
# You have a captured run and some assertions about it
./gust analyze testdata/runs/golden_cancel.json --policy testdata/policy.yaml
# Exit code 0 = gate passed, 1 = gate failed. That's your CI step.
echo $?
Prefer a guided path with Python and TypeScript copy-paste? Use Getting started.
Everything else in these docs is a variation on that: where the run comes from, how many times you sample it, and what policy decides “pass”.
A full Mode 3 walkthrough — injected failures, a forbidden tool, and recorded N=20 numbers — is the live-agent demo.