Shepherd Meta-Agent Uses GitHub-Style Version Control to Rein In Rogue AI, Northeastern and Stanford Researchers Say

AI agents are increasingly going rogue—deleting inboxes, hacking websites, and launching cyberattacks—and a team from Northeastern University and Stanford University thinks they need a manager. Assistant professor Weiyan Shi and researcher Derek Chong have developed Shepherd, a meta-agent framework that acts as a shepherd for 'agentic sheep,' providing oversight and guardrails for autonomous systems.
Borrowing from software version control like GitHub, Shepherd records every agent action, state, and environment as a 'commit' in a graph. Meta-agents can then traverse this graph to spot errors, revert to a previous step, or fork an agent's path to try a safer alternative—all without the worker agent knowing its actions are being sandboxed.
This middle layer ensures humans can intervene and steer agents before they cause real-world harm. The team demonstrated Shepherd in three use cases, including a supervisor that resolved conflicts between parallel coding agents and boosted their pair programming pass rate. The paper will be presented at NeurIPS 2026 in December.
As AI agents take on longer, more complex tasks, tools like Shepherd could be essential for keeping them on track—and keeping humans in control.