Agent-readyscaffolding.md
ChatGPTClaude

Scaffolding Guide

Shipyard provides built-in generators to scaffold standardized evaluations and evaluation suites without writing boilerplate by hand.


1. Scaffolding an Evaluation (eval)

To scaffold a new evaluation, use the shipyard init eval command:

shipyard init eval <name> [flags]

Options & Flags

  • name: Positional argument or via --name, -n flag.
  • --path, -p: Parent directory where the folder should be created (defaults to .).

Interactive Mode

If neither positional argument nor --name is provided, Shipyard prompts you interactively:

$ shipyard init eval
Enter eval name: optimize-sql-query
Initialising the eval now...
Created: optimize-sql-query/eval.toml
Created: optimize-sql-query/instruction.md
Created: optimize-sql-query/environment/Dockerfile
Created: optimize-sql-query/tests/rubric.py
Created: optimize-sql-query/solutions/
Created: optimize-sql-query/rollouts/

Generated File Hierarchy

optimize-sql-query/
├── eval.toml           # Configured with the eval name and default agent settings
├── instruction.md      # Template instructions for the agent to follow
├── environment/
│   └── Dockerfile      # Default Ubuntu/Go/Python sandbox container template
├── solutions/          # Directory reserved for ground truth patches or references
├── tests/
│   └── rubric.py       # Python rubric scoring template with sample checks
└── rollouts/           # Destination for trajectory and evaluation logs

2. Scaffolding an EvalSet (evalset)

To create an evalset suite:

shipyard init evalset <name> [flags]

Example

$ shipyard init evalset core-benchmarks
Initialising the evalset now...
Created: core-benchmarks/evalset.toml

Once initialized, navigate inside the newly created directory and add multiple evaluations:

cd core-benchmarks
shipyard init eval memory-check
shipyard init eval latency-check
shipyard init eval deadlock-detection

Resulting directory tree:

core-benchmarks/
├── evalset.toml
├── memory-check/
│   ├── eval.toml
│   └── ...
├── latency-check/
│   ├── eval.toml
│   └── ...
└── deadlock-detection/
    ├── eval.toml
    └── ...

Running shipyard run core-benchmarks/ will discover and sequentially execute all three evaluations, outputting aggregated statistics.