Meet Shepherd: An Open-Source Python Substrate That Lets Meta-Agents Fork, Replay, and Revert Any Agent Run
5× faster forks than Docker. Shepherd gives agents Git-like checkpoints—rewind live state, replay with 95% cache reuse, and let supervisors steer failing runs mid-flight.

Why it matters
Shepherd is agent infrastructure that solves a real production problem: long agent runs waste tokens on restarts. By recording typed events and enabling copy-on-write state recovery, it cuts replay costs and lets supervisors intervene when agents misread signals—moving agent reliability from theory to practice.
The key facts
7 to knowShepherd: MIT-licensed Python runtime substrate from Northeastern and Stanford
Records agent-environment interactions as typed events in Git-like execution trace
5× faster forks than Docker containers
95%+ prompt-cache reuse on replay
Live supervisor raised CooperBench pair-coding pass rates from 28.8% to 54.7%
Copy-on-write filesystem snapshots restore live state, not just files
Addresses token waste on agent restarts and state divergence
Go to the source
MarkTechPostmarktechpost.com
Publisher excerpt: Long agent runs accumulate state that no transcript records — edited files, a live dev server, installed packages, a warm prompt cache. When an agent misreads a traceback at step 10 and rewrites a correct file, patching forward burns tokens and restarting re-pays every call. Researchers at…