Agent-readygetting-started.md
ChatGPTClaude

Quickstart Guide

Get up and running with Shipyard in under 3 minutes.


1. Installation

Requirements

  • Go: 1.22 or newer
  • Docker: (Optional, recommended for sandboxed execution)
  • Make: Standard build tooling

Build from Source

Clone the repository and build the binary:

git clone https://github.com/shivamjain/shipyard.git
cd shipyard

# Verify dependencies and compile
make init
make build

# Install globally to your PATH (/opt/homebrew/bin or $GOPATH/bin)
make install

Verify your installation:

shipyard --help

2. Initialize an Evaluation

Shipyard includes an interactive scaffolding generator for initializing benchmarks.

Scaffold a Single Evaluation

shipyard init eval fix-memory-leak

This creates a self-contained evaluation directory:

fix-memory-leak/
├── eval.toml           # Evaluation configuration & test definition
├── instruction.md      # The prompt given to the AI agent
├── environment/
│   └── Dockerfile      # Reproducible execution environment
├── solutions/          # Ground-truth reference implementations
├── tests/
│   └── rubric.py       # Deterministic Python scoring rubric
└── rollouts/           # Execution outputs & ATIF trajectories

Scaffold an EvalSet (Benchmark Suite)

To group multiple related evaluations together into a cohesive benchmark:

shipyard init evalset coding-benchmark

This creates an evalset.toml root. You can create child evaluations inside it:

cd coding-benchmark
shipyard init eval task-1
shipyard init eval task-2

3. Run an Evaluation

Execute your newly created benchmark:

# Run a single evaluation
shipyard run fix-memory-leak/

# Or run an entire evalset suite
shipyard run coding-benchmark/

Dynamic Runtime Overrides

You can test different agents, models, or environments without editing eval.toml:

# Run with Claude Code
shipyard run fix-memory-leak/ --agent claude-code

# Run with GPT-4o via direct OpenAI API
shipyard run fix-memory-leak/ --provider openai --model gpt-4o

# Run locally instead of in Docker, keeping the sandbox environment
shipyard run fix-memory-leak/ --env local --keep-env

4. Inspect Trajectories and Results

Every run saves structured artifacts in rollouts/{run_id}/:

rollouts/2026-09-21T13-30-00Z/
├── trajectory.json    # Standardized ATIF steps, actions, tool calls
├── conversation.json  # Message transcript
├── tool_calls.json    # Every tool invocation
├── metrics.json       # v1: verdict, timing, turns, usage
├── rubrics.json       # Per-rubric item pass/fail criteria & points
├── run.json           # Provenance: engine build, agent, environment, hashes
├── aggregate.json     # k, pass@k, pass^k, mean, sigma, per-repeat records
├── results.json       # Suite results for compare/report
└── artifacts/
    └── environment.log # Container stdout/stderr execution log

View the results with standard tools:

cat fix-memory-leak/rollouts/*/metrics.json | jq .

5. Close the Loop: Validate, Repeat, Baseline, Compare

Validate before spending a token

shipyard validate is a static linter. It catches a broken eval (bad TOML, missing instruction or rubric, malformed policy, a rubric that will not parse) before any container starts:

shipyard validate coding-benchmark/

Warnings do not fail the command; errors exit 1.

Run repeats

One run is a sample. Three repeats turn it into a distribution, with pass@k, pass^k, a mean, a standard deviation, and flake detection:

shipyard run coding-benchmark/ --repeat 3

The workspace is restored between repeats and after the run, so each repeat is an independent sample.

Save a baseline

Freeze the run you want to defend, and commit it:

shipyard baseline save coding-benchmark/ --name main
git add coding-benchmark/baselines/main.json

Compare the next candidate

After a change, run the suite again and compare it against the committed baseline. compare prints a per-eval delta table, the noise margin, and exits 0 for a passing gate or 1 when it blocks:

shipyard run coding-benchmark/ --repeat 3 --json > results.json
shipyard compare coding-benchmark/ --baseline baselines/main.json --candidate results.json

When the gate blocks, the delta table names the eval and the reason (a pass to fail flip, a flake, an infra error, or a score drop beyond both the budget and the noise). If the fail is not real, the exit code says so too.

Next steps: wire the same commands into CI with CI/CD & Pipelines, read the blocking rules in Gate policy, or write rollout-aware checks in Asserting on tool calls & conversations.