Skip to content

v0.1.4

Choose a tag to compare

@cr-sbarbouche cr-sbarbouche released this 09 Nov 12:18
6e5fdec
  • Snapshots for named sandboxes: sb.snapshot("clean") copies /workspace into a second volume in a throwaway gVisor container (no network), and sb.restore("clean") puts it back in a fresh container (processes are lost). list_snapshots() returns the tags, delete_snapshot(tag) frees one, and delete() removes them all with the sandbox. Each snapshot costs as much host disk as /workspace, which still has no size cap
  • Files in and out: sb.put(path, bytes) and sb.get(path, max_bytes=10 MB), through exec() with base64 (needs GNU coreutils in the image). get() reads regular files only and refuses more than max_bytes, because what comes out of a sandbox is untrusted
  • New agvisor command: agvisor ls, agvisor rm NAME... | --older-than SECONDS [--data] and agvisor exec NAME cmd..., with --host and --owner. rm never removes everything without a name or an age, so a retention job is agvisor rm --older-than 14400 in cron; --data also erases the files and snapshots of named sandboxes
  • agvisor-mcp: new write_file(path, content) tool, so the agent doesn't need a heredoc (it breaks on quoting and on very long content)
  • agvisor-mcp: set AGVISOR_NAME and the sandbox becomes a named one (/workspace kept in a volume, and reset() keeps it), and the agent also gets snapshot() and restore() over a single checkpoint slot. Unset, nothing changes. That volume has no size cap and is shared by every server process using the same name
  • Behaviour change: headless sandboxes now start with --entrypoint=. An image with an ENTRYPOINT used to take sleep infinity as its arguments and exit at once; it works now, but the entrypoint's own setup script no longer runs. The README and skill no longer say "never set an ENTRYPOINT"
  • Tested on real gVisor over ssh:// (WSL2 Ubuntu 24.04, docker 29.1.3, runsc release-20261102.0): snapshot, restore, list and delete, the ENTRYPOINT fix (the test fails without it), and the MCP named-mode functions called directly. put()/get() were run against a real container on runc and on gVisor. The agvisor command and write_file have unit tests only, and the MCP tools were not run through a real MCP client this time