开源工具barebox实现AI Agent细粒度沙箱隔离与权限控制
Giving an AI agent real access to your computer usually means one of two things: approving every single step until you stop reading, or setting up heavy isolation most people skip.
Agent落地最头疼的安全问题有了新解法,barebox用极简架构实现了细粒度权限控制,做本地Agent开发的同学值得收藏参考。
I built barebox, a small sandbox you can start for an agent in under a second. The idea is simple. Every action gets one of three letters, like file permissions:
我构建了 barebox,一个小型沙箱环境,你可以在不到一秒的时间内为智能体启动它。理念很简单:每个操作会被赋予三个字母之一,类似于文件权限:
→ r: reading and looking things up. It just happens.
→ r:读取和查询信息。这仅仅是发生而已。
→ w: changes that can be undone. Kept on an undo layer you keep or throw away at the end.
→ w:可撤销的更改。这些更改保留在一个撤销层中,你可以在最后选择保留或丢弃。
→ x: things that can't be taken back, like paying, sending or deleting. It waits for your yes.
→ x:不可逆转的操作,例如支付、发送或删除。它会等待你的确认。
And you pick one of three modes, like any command-line tool:
你可以从三种模式中选择一种,就像任何命令行工具一样:
→ ask: it checks with you before any change
→ ask(询问):在任何更改之前都会征求你的意见
→ auto: only the irreversible things need you (the default)
→ auto(自动):只有不可逆的操作需要你参与(默认设置)
→ trust: it runs on its own
→ trust(信任):自主运行
Payments ask in every mode.
在所有模式下,支付操作都需要询问。
It's built for spinning up agents on the fly: no setup, no root, no Docker image, about 8 MB each, up to 40 side by side on one laptop.
它是为即时启动智能体而设计的:无需配置、无需 root 权限、无需 Docker 镜像,每个仅约 8 MB,在一台笔记本电脑上可同时并行运行多达 40 个。
In the demo, Meta's muse model books a trip inside barebox. It searched, compared and planned on its own, and stopped only for the 8 things that couldn't be undone: payments, bookings, a calendar entry, messages and an email. The agent never saw the real payment key.
在演示中,Meta 的 muse 模型在 barebox 内预订了一次旅行。它自行搜索、比较和规划,仅在涉及 8 项不可逆操作时停止:支付、预订、日历条目、消息和电子邮件。智能体从未看到真实的支付密钥。
Honest limit: it's a guardrail against mistakes and tricked agents, not a fortress. Open source under Apache-2.0.
诚实的限制:它是防止错误和被欺骗的智能体的护栏,而非堡垒。采用 Apache-2.0 开源协议。
https://github.com/hamr0/barebox
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力