Shepherd: A Runtime Substrate Empowering Meta-Agents with a Formalized Execution Trace
Summary
This paper introduces Shepherd, a functional programming model and runtime substrate for meta-agents that formalizes operations using Lean and records interactions in a Git-like execution trace. It demonstrates significant performance improvements in runtime intervention, counterfactual optimization, and RL training by enabling fast forking and replay of agent states.
View Cached Full Text
Cached at: 05/12/26, 07:30 AM
Paper page - Shepherd: A Runtime Substrate Empowering Meta-Agents with a Formalized Execution Trace
Source: https://huggingface.co/papers/2605.10913
Abstract
WeintroduceShepherd,afunctionalprogrammingmodelthatformalizesmeta-agentoperationsontargetagentsasfunctions,withcoreoperationsmechanizedinLean.Shepherdrecordseveryagent-environmentinteractionasatypedeventinaGit-likeexecutiontrace,enablinganypaststatetobeforkedandreplayed.Thesystemforkstheagentprocessanditsfilesystem5timesfasterthanDocker,achieving>95%prompt-cachereuseonreplay.Wedemonstratethemodelthroughthreeapplications.First,inruntimeintervention,alivesupervisorincreasespaircodingpassratesfrom28.8%to54.7%onCooperBench.Second,incounterfactualmeta-optimization,branchingexplorationoutperformsbaselinesacrossfourbenchmarksbyupto11pointswhilereducingwall-clocktimebyupto58%.Third,inTree-RLtraining,forkingrolloutsatselectedturnsimprovesTerminalBench-2performancefrom34.2%to39.4%.TheseresultsestablishShepherdasanefficientinfrastructureforprogrammingmeta-agents.Weopen-sourcethesystemtosupportfutureresearch.
View arXiv pageView PDFAdd to collection
Get this paper in your agent:
hf papers read 2605\.10913
Don’t have the latest CLI?curl \-LsSf https://hf\.co/cli/install\.sh \| bash
Models citing this paper0
No model linking this paper
Cite arxiv.org/abs/2605.10913 in a model README.md to link it from this page.
Datasets citing this paper0
No dataset linking this paper
Cite arxiv.org/abs/2605.10913 in a dataset README.md to link it from this page.
Spaces citing this paper0
No Space linking this paper
Cite arxiv.org/abs/2605.10913 in a Space README.md to link it from this page.
Collections including this paper0
No Collection including this paper
Add this paper to acollectionto link it from this page.
Similar Articles
@akshay_pachaar: Stanford researchers did it again. They just built the agent-native version of Git. When an agent works on a longer tas…
Stanford researchers released Shepherd, a runtime layer that acts like Git for AI agent runs, recording typed events and enabling copy-on-write forks so agents can revert to previous states and reuse KV cache. Early tests show improved pass rates for multi-agent cooperative tasks.
ISE: An Execution-Grounded Recipe for Multi-Turn OS-Agent Trajectories
This paper introduces ISE, a three-stage synthesis paradigm for generating multi-turn OS-agent trajectories with grounded execution, demonstrating that fine-tuning on the resulting ISE-Trace dataset significantly improves agent performance on ClawEval.
Operationalizing Reconstructive Authority: Runtime Construction, Dependency Resolution, and Execution Gating in Autonomous Agent Systems
This paper introduces a runtime execution model for autonomous agents that enforces 'Reconstructive Authority'—actions are only permitted if authority can be constructed from current state. It includes dynamic dependency resolution, a halt state for uncertainty, and a recovery loop integrating drift detection.
Lean4Agent: Formal Modeling and Verification for Agent Workflow and Trajectory
Introduces Lean4Agent, a framework using Lean4 for formal modeling and verification of agent workflows and trajectories, demonstrating improved performance on SWE-Bench and ELAIP-Bench.
Sharing a different Research Architecture for AI Agents to inspect and tackle known bottlenecks for running autonomous agents. Feedback?
A new research architecture for AI agents is introduced, centered on a transparent runtime where every interaction becomes a replayable execution trail with full inspectability, including plan, execute, observe, verify, and remember stages.