Meet Shepherd: An Open-Source Python Substrate That Lets Meta-Agents Fork, Replay, and Revert Any Agent Run
MarkTechPost Michal Sutter
Researchers at Northeastern and Stanford released Shepherd, an open-source Python runtime that records agent executions as Git-like traces, enabling agents to fork, replay, and revert to any past state without restarting. Shepherd achieves 5× faster forks than Docker and over 95% prompt-cache reuse on replay. The system enables meta-agents to supervise and correct other agents mid-run, demonstrated by raising pair-coding pass rates from 28.8% to 54.7% on CooperBench.
Why it matters
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 Northeastern University and Stanford University released Shepherd, an MIT-licensed Python runtime substrate that records every agent-environment interaction as a typed event in a Git-like execution trace. Each commit covers the agent process and filesystem together, copy-on-write, so a rewind restores live state instead of just files. The paper reports 5× faster forks than Docker, over 95% prompt-cache reuse on replay, and a live supervisor raising CooperBench pair-coding pass rates from 28.8% to 54.7%. The post Meet Shepherd: An Open-Source Python Substrate That Lets Meta-Agents Fork, Replay, and Revert Any Agent Run appeared first on MarkTechPost.
Related stories
Prime Intellect Releases Prime Agent: An Open-Source RLM Harness Where Sub-Agents Are Function Calls Inside Persistent IPython Kernel
MarkTechPost · 2 days ago ·
19
Prime Agent: A self-improving RLM agent
primeintellect.ai · 2 days ago ·
27
Launch HN: HyperProbe (YC S26) – Agents that do read-only debugging in prod
hyperprobe.co · 3 days ago ·
31