Shepherd
A meta-agent supervision framework that borrows the commit-graph mechanism of version control and inserts a supervision layer between humans and working agents. It captures actions in a sandbox and supports rollback, branching and replay to enable behavioral supervision, quality control and human intervention for AI agents.
Timeline (last 90 days)
Shi and colleagues from Northeastern University and Stanford University named this meta-agent supervision framework Shepherd, and the related paper will be presented at the NeurIPS conference in December 2026.
The Shepherd framework is written in Python and based on functional programming principles.
Shepherd stores every action of an agent, together with its state and relevant environment, as a commit, and a series of commits forms a commit graph; the meta-agent can traverse this graph, locate any commit, intercept problematic actions, roll back to the previous step, or create a branch to try another path.
Shepherd uses a sandbox mechanism to capture actions such as a work agent sending an email, and the meta-agent or a human can intervene to decide whether the action is actually executed.
The Shepherd team built three use cases: a supervising meta-agent (intervening when parallel programming agents conflict, improving the pass rate of pair programming on a specific benchmark), an optimizing meta-agent (proposing modifications to a completed workflow and replaying only the affected parts to improve performance), and a training meta-agent (selecting fork steps in reinforcement learning to guide work agents along better paths and giving rewards).
Shepherd has been open-sourced on GitHub, but the team is still in the process of moving from an alpha version toward production readiness.
Derek Chong, a researcher in Stanford University's NLP group and a member of the Shepherd team, pointed out that a work agent thinks it is in an ordinary environment, but in fact its actions have been captured by the Shepherd sandbox, and the meta-agent or a human can intervene to decide whether they are actually executed.
Shepherd turns an agent's behavior trajectory from an irreversible linear stream into an auditable, trial-and-error-friendly, parallelizable graph structure, making the undoing of erroneous operations a built-in capability of the framework.
In reinforcement learning, Shepherd's training meta-agent uses the commit graph to actively fork at key steps, equivalent to replaying multiple possible paths at low cost outside the real environment and giving rewards along better branches; fork points are chosen by the meta-agent through learning rather than exhaustive enumeration.
Derek Chong believes agent management is becoming increasingly important, that agents should be able to inspect other agents and apply operations to them, and that Shepherd hopes to promote the democratization of agent management.
All Facts (10)
In reinforcement learning, Shepherd's training meta-agent uses the commit graph to actively fork at key steps, equivalent to replaying multiple possible paths at low cost outside the real environment and giving rewards along better branches; fork points are chosen by the meta-agent through learning rather than exhaustive enumeration.
50%UnverifiedDerek Chong believes agent management is becoming increasingly important, that agents should be able to inspect other agents and apply operations to them, and that Shepherd hopes to promote the democratization of agent management.
50%UnverifiedShepherd stores every action of an agent, together with its state and relevant environment, as a commit, and a series of commits forms a commit graph; the meta-agent can traverse this graph, locate any commit, intercept problematic actions, roll back to the previous step, or create a branch to try another path.
50%UnverifiedShepherd uses a sandbox mechanism to capture actions such as a work agent sending an email, and the meta-agent or a human can intervene to decide whether the action is actually executed.
50%UnverifiedThe Shepherd team built three use cases: a supervising meta-agent (intervening when parallel programming agents conflict, improving the pass rate of pair programming on a specific benchmark), an optimizing meta-agent (proposing modifications to a completed workflow and replaying only the affected parts to improve performance), and a training meta-agent (selecting fork steps in reinforcement learning to guide work agents along better paths and giving rewards).
50%UnverifiedThe Shepherd framework is written in Python and based on functional programming principles.
50%UnverifiedDerek Chong, a researcher in Stanford University's NLP group and a member of the Shepherd team, pointed out that a work agent thinks it is in an ordinary environment, but in fact its actions have been captured by the Shepherd sandbox, and the meta-agent or a human can intervene to decide whether they are actually executed.
50%UnverifiedShepherd turns an agent's behavior trajectory from an irreversible linear stream into an auditable, trial-and-error-friendly, parallelizable graph structure, making the undoing of erroneous operations a built-in capability of the framework.
50%UnverifiedShepherd has been open-sourced on GitHub, but the team is still in the process of moving from an alpha version toward production readiness.
50%UnverifiedShi and colleagues from Northeastern University and Stanford University named this meta-agent supervision framework Shepherd, and the related paper will be presented at the NeurIPS conference in December 2026.
50%