Resources
Shepherd lets you inspect and intervene in an agent’s execution. MOT and MOT-Trace are the testbed and annotated records behind Opinionated Optimizers.
Open-source framework

Shepherd
An agent’s execution becomes something another agent can inspect and transform.
Shepherd records model actions, tool calls, and environment changes in reversible execution traces. Researchers can observe a run, branch from an earlier state, and compare the consequences of a revision.
- Language
- Python
- License
- MIT ↗
- Research
- Paper and experimental results ↗
- Contribute
- Contributor guide ↗ · Issues ↗
Shepherd is under active development; APIs may change. Reversibility applies within the environments and operations supported by the framework.
Experiments from the paper
Runtime supervision on CooperBench
Pair pass rate · higher is better
Mean elapsed time is reported beneath each bar.
- No supervisor28.8%
19.8 min / pair
- Sonnet 4.6 supervisor45.3%
21.2 min / pair
- Opus 4.7 supervisor54.7%
24.2 min / pair
- Single worker · both features57.2%
28.4 min / pair
Shepherd: Enabling Programmable Meta-Agents via Reversible Agentic Execution Traces
Simon Yu, Derek Chong, Ananjan Nandi, Dilara Soylu, Jiuding Sun, Christopher D. Manning, and Weiyan Shi
Experimental testbed
Meta-Optimization Testbed
Compare how agents propose, evaluate, and select improvements.
MOT builds on Shepherd to make optimization trajectories inspectable. It provides shared task splits, evaluation interfaces, cost accounting, and versioned histories of candidate programs and selection decisions. Adapters connect methods and tasks while preserving each method’s search procedure.
The testbed was used in Opinionated Optimizers. Its public code release is planned; no download or submission service is available here yet.
What researchers can investigate
- Proposals. Which changes are suggested and what evidence supports them.
- Measurement. How feedback, repeated evaluation, and cost affect apparent progress.
- Selection. Which candidates survive and whether later changes build on them.
- Transfer. Whether gains hold on examples withheld from search.
Annotated optimization records
MOT-Trace
Follow an idea through the search that produced it.
MOT-Trace identifies strategies introduced, developed, removed, or revisited during agent optimization. An edit can contain several interventions, each describing a coherent functional change.
Together with candidate programs, execution histories, scores, and selection decisions, these records support alternative explanations of progress and failure. Researchers could examine which strategies recur, what happens after rejection, and whether useful changes are preserved.
The planned accompanying release includes analysis tools, annotation methods, validation records, and the run coverage used for each analysis. Model-generated annotations have a sampled human audit and should not be treated as error-free labels.
Annotated collection
- Labelled edits
- 20,392
- Intervention records
- 11,350
- Optimization runs
- 212
Coverage reported in the September 2026 manuscript. These annotated runs are distinct from the study’s broader collection of more than three million agent rollouts. Release files are not yet available on this site.
Study and measurement context →