AI agents在互联网上肆意妄为,它们配备了执行特定任务的指令,却常常以令人不满或出人意料的方式行事。这些失控事件的范围极广,从删除整个电子邮件收件箱,到入侵网站,甚至发动网络攻击。
就像人类员工需要管理者一样,Northeastern University的助理教授Weiyan Shi认为AI agents需要监管。她说:“它们可能会长时间运行。然而,运行的时间越长,就可能出错,做出危险、不安全的行为。我们认为应该有一层中间层。”
这层中间层以meta-agents的形式存在,它们负责监督行为、提供质量控制,并在适当时候将问题逐级上报给人类处理。“Worker agents就像四处游荡的羊群,而meta agent则像试图让它们重回正轨的牧羊人,”Shi说道。
因此,Shi与她在Northeastern University和Stanford University的同事将这个框架命名为Shepherd,意为agentic sheep的智能引导者。为了让meta-agents获得管理能力,团队借鉴了软件开发中的一个概念:version control。配套论文将在12月举行的2026年NeurIPS会议上展示。
AI agents的version control
像流行的GitHub这样的version control系统,会随时间追踪和管理source code的变更。这些工具允许software engineers在同一个codebase上协作而不会丢失工作。他们可以对codebase进行“fork”(分叉),创建独立开发的副本,“commit”(提交)保存包含更改的新版本,审查修订版,当出现错误或失败时回滚到先前的版本。
同样,Shepherd 作为 AI agent 的版本控制系统。它使用 Python 编程语言构建,并根植于函数式编程原则。每个 agent 动作连同 AI agent 的状态及其相关环境(如电子邮件收件箱、文件系统或其他)都被存储为一个提交记录,由一系列动作构成提交图。Meta-agents 遍历该图以导航至任意提交,使其能够观察 worker agent、拦截有缺陷的动作、将 worker 回退到上一步骤,并分叉以尝试其他方向。斯坦福大学自然语言处理小组的研究员、Shepherd 团队成员 Derek Chong 表示:"这里有一个微妙之处:[worker] agent 看似处于一个可以发送电子邮件等操作的常规世界中,但实际上,发送邮件这一动作已被 Shepherd sandbox 捕获,因此 Meta-agent 或人类可以介入并决定是否真正发送。"他补充道,这种沙盒机制充当着护栏或治理组件的作用。Shi 说:"如果有一层中间层来帮助治理这些 worker agent,那将有助于人类更好地掌控局面。"人类最终仍将拥有发言权,他们可以对 Meta-agent 进行干预,也可以帮助引导这些 Meta-agents。
为了展示 Sheperd 的可行性,团队创建了三个用例。其中一个使用了主管 meta-agent,在并行编程智能体之间发生冲突时进行干预,帮助提升了它们在特定基准测试上的结对编码通过率。另一个开发了优化 meta-agent,对 worker agent 已完成的工作流程提出针对性修改,并通过仅重放受修改影响的部分来测试效果,从而帮助提升性能。最后,一个训练 meta-agent 在强化学习过程中选择在哪些节点或步骤进行分叉,使 worker agent 走上更好的路径,并沿途给予奖励。
Shepherd 已作为一个开源项目发布,但 Chong 指出团队仍在从 alpha 阶段构建至完全生产就绪的过程中。Shepherd 框架属于 Agent Sciences Research Initiative (ASRI),由 Chong 和 Shi 联合创立。该合作汇集了来自 Northeastern、Stanford 和 UC Berkeley 的研究人员,旨在探索如何让 AI 智能体更加可靠和稳健、如何更好地对其进行评估,以及如何确保其更安全。
"越来越清晰的是,agent 管理非常重要,"Chong 表示,"智能体应能检查其他智能体并对其操作,就像现实生活中的管理行为一样。我们认为 Shepherd 是我们迈向这一目标的途径,能让 agent 管理实现普及化。如果你能做到这一点,那么人类就有能力构建支持人类繁荣发展的 AI 系统。"
- Attempts to Keep Humans in the AI Loop May Actually Push Them Out ›
- Are You Ready to Let an AI Agent Use Your Computer? ›
Rina Diane Caballar 是一位作家,专注于报道科技及其与科学、社会和环境的交叉领域。她是 IEEE Spectrum 的特约编辑,曾是一名软件工程师,现居新西兰。
本文由 AI图鉴自动抓取并翻译,版权归原作者所有;如需查看原文请点下方链接。
AI agents are running amok on the internet, armed with commands to accomplish certain tasks but often acting in undesirable or unexpected ways. These rogue incidents run the gamut from deleting an entire email inbox to hacking websites and even launching cyberattacks.
Much like human workers need managers, Weiyan Shi, an assistant professor at Northeastern University, believes AI agents require oversight. “They are running potentially for a long time. However, the longer they run, they may have some errors, and they may make some dangerous, unsafe actions. We feel like there should be a middle layer,” she says.
This middle layer comes in the form of meta-agents that oversee behavior, provide quality control, and kick issues up the chain of command to a human when appropriate. “Worker agents are like the sheep wandering around, and the meta agent is like this shepherd trying to get them back on track,” Shi says.
As such, Shi and her colleagues at Northeastern University and Stanford University named their framework Shepherd, an intelligent guide for agentic sheep. To arm meta-agents with power, the team borrowed a concept from software development: version control. The accompanying paper will be presented at the 2026 NeurIPS conference to be held in December.
Version control for AI agents
Version control systems, such as the popular GitHub, track and manage changes to source code over time. These tools allow software engineers to collaborate on the same codebase without losing work. They can “fork” or create a copy of the codebase that they develop independently, “commit” to save a new version with changes, review revisions, and roll back to a previous version when an error or failure occurs.
Similarly, Shepherd serves as a version control system for AI agents. It’s built using the Python programming language and rooted in functional programming principles. Each agent action, along with the AI agent’s state and its relevant environment (such as an email inbox, a file system, or other) is stored as a commit, with a commit graph consisting of a series of actions. Meta-agents traverse the graph to navigate to any commit, enabling them to observe worker agents, intercept a buggy action, revert the worker to its previous step, and fork it to try another direction.
“There’s a subtlety because it looks to [worker] agents like they’re in the regular world where they can do things like send emails. But in actuality, the action of sending the email has been caught by a Shepherd sandbox, so a meta-agent or a human can come in and decide to actually send it,” says Derek Chong, a researcher at Stanford University’s Natural Language Processing Group who’s part of the Shepherd team. This sandboxing, he adds, functions as a guardrail or governance component.
“If there is a middle layer to help govern these worker agents, then that will help humans have better control,” Shi says. “Humans will still, eventually, have a say, and they can intervene with the meta-agent. They can also help steer these meta-agents.”
To demonstrate Shepherd’s feasibility, the team created three use cases. One used a supervisor meta-agent that intervened when conflict happened between parallel programming agents, helping lift their pair coding pass rate on a particular benchmark. Another developed an optimization meta-agent that proposed targeted edits to a worker agent’s finished workflow and tested them by replaying only parts of the run affected by the edits, helping improve performance. Finally, a training meta-agent during reinforcement learning picked points or steps at which to fork so the worker agent takes a better path, rewarding it along the way.
Shepherd is available as an open-source project, but Chong notes that the team is still in the process of building it from alpha to full production readiness. The Shepherd framework is part of the broader Agent Sciences Research Initiative (ASRI) cofounded by Chong and Shi. This collaboration of researchers from Northeastern, Stanford, and UC Berkeley aims to explore how to make AI agents more reliable and robust, how to evaluate them better, and how to ensure they’re safer.
“It’s becoming more and more clear that agent management is really important,” Chong says. “Agents should be able to inspect other agents and operate on them, just the way that management in real life can happen. We think Shepherd is the way we can build toward that and enable agent management to be democratized. And if you can democratize that, then humans can be empowered to build AI systems that support human flourishing.”
- Attempts to Keep Humans in the AI Loop May Actually Push Them Out ›
- Are You Ready to Let an AI Agent Use Your Computer? ›
Rina Diane Caballar is a writer covering tech and its intersections with science, society, and the environment. An IEEE Spectrum contributing editor, she's a former software engineer based in New Zealand.
Auto-fetched and translated by AI Atlas. All rights belong to the original author.