Shepherd把Agent跑过的环境像Git一样存下来,能fork、回放、回滚,比Docker快5倍,写代码超时不用从头再来。
东北大学和斯坦福大学发布了MIT许可的开源运行时基座Shepherd。它把Agent与环境的每次交互记录为类型化事件,形成类似Git的执行轨迹,可分支、回放、回滚任意运行。其写时复制机制在回退时恢复实时状态,而不只是文件;论文报告fork速度比Docker快5倍,重放时提示缓存复用率超过95%。在CooperBench基准上,带Shepherd的实时监督器将结对编程通过率从28.8%提升到54.7%。
Meet Shepherd: An Open-Source Python Substrate That Lets Meta-Agents Fork, Replay, and Revert Any Agent Run
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 .