Repository navigation
Warning
v0.3.3 changes how an agent gets its computer: you make a virtx sandbox and hand it to the agent. Code written for v0.3.2's ConsoleClient needs the changes under Breaking changes.
⚠️ Breaking changes
- The agent runs in a sandbox you hand it.
ConsoleClient, its mounts and.console(...)are gone. Make a sandbox with virtx'sClient, mount what it needs where you make it, and pass it with.sandbox(sandbox). The agent never starts, stops or removes it. (#572) .system_tools()is gone:.sandbox(sandbox)gives the agent the shell and file tools for its model family. (#572)vllmis nowself-hosted, read fromSELF_HOSTED_BASE_URL(andSELF_HOSTED_API_KEYif the server wants one) in place ofVLLM_BASE_URL. (#556)- The old memory is removed:
.memory(memfile),mem_searchandmem_insert, which ran a program virtx no longer ships. The new memory takes its place. (#581) - Python 3.11 or later and Node.js 22 or later, as virtx 0.2 needs. (#600)
- Sandboxes have no snapshots. A sandbox's files last until it is removed; keep what a later run needs on a volume. (#600)
# python
from ailoy import AgentBuilder
from virtx import Client
client = Client.spawn()
await client.pull_image("python:3.12-slim-trixie").complete()
sandbox = await client.create_sandbox("python:3.12-slim-trixie")
agent = await AgentBuilder("anthropic/claude-haiku-5-5").sandbox(sandbox).build()// node.js
const { AgentBuilder } = require('@brekkylab/ailoy')
const { Client } = require('@brekkylab/virtx')
const client = Client.spawn()
await client.pullImage('python:3.12-slim-trixie').complete()
const sandbox = await client.createSandbox('python:3.12-slim-trixie')
const agent = await new AgentBuilder('anthropic/claude-haiku-5-5').sandbox(sandbox).build()// rust
let client = virtx::Client::spawn_virtx([] as [&str; 0]).await?;
client.pull_image("python:3.12-slim-trixie", None).complete(false).await?;
let sandbox = client.create_sandbox(&virtx::SandboxCreateArgs::new("python:3.12-slim-trixie")).await?;
let agent = AgentBuilder::new("anthropic/claude-haiku-5-5").sandbox(sandbox.clone()).build().await?;✨ New features
-
Sandboxes you own. The virtx server stops a sandbox's machine when nothing uses it and boots it again when something does, so an agent no longer starts and stops its computer around every batch of tool calls, and the tools of one batch run side by side. (#572)
-
Memory between sessions.
.memory(dir)gives the agent a folder on this host whoseMEMORY.mdholds short notes on the user. The notes are in the system message from the first turn, with no tool call, and the agent edits them with amemorytool: add, replace or remove, all or none, each entry dated. They're capped at 3,000 characters (limit). No sandbox is needed. (#592)# python AgentBuilder(model).memory("./memory/user1", limit=2000)
// node.js new AgentBuilder(model).memory('./memory/user1', { limit: 2000 })
-
More places to run a model. The
self-hostedbackend runs a model on any server that speaks the OpenAI-compatible Chat Completions API: vLLM, llama-server, Ollama, LM Studio, SGLang, or a gateway such as LiteLLM. Each org can point at a server of its own, and amodelsmap translates a model's name to the one the server uses. LG AI Research's EXAONE is a new provider:LGAI-EXAONE/k-exaone_v2.5runs on its own API withEXAONE_API_KEY. (#556)# python ailoy.set_lang_model_provider("meta-llama", {"backend": "self-hosted", "base_url": "http://localhost:11434/v1", "models": {"Llama-3.3-70B-Instruct": "llama3.3:70b"}}) agent = await AgentBuilder("meta-llama/Llama-3.3-70B-Instruct").build()
-
A sandbox's programs as skills. Each program virtx puts in a sandbox at
/abincomes with a skill, and the agent lists those skills beside the ones you give it. (#581)
🔄 Behaviour changes
- The shell tool says why the server killed a command. A killed command's result has
reason("timeout","oom", ...) as the server names it, andtimed_outis true only for a timeout, no longer for any exit code 137. (#616)
📚 Docs
- An SDK reference with Python, Node.js and Rust tabs on every entry: an Overview (Introduction, Language setup, Configuration) and an API reference (AgentBuilder, Agent, Models, Tools, Built-in tools, Types, Errors). (#614)
- The docs are restructured: a Welcome page, Get started as Quick start and Installation, section tabs, a grouped sidebar, a copy-as-Markdown action on each page, troubleshooting sections, and shorter, rechecked guides. A changelog lists every release. (#589, #599, #614)
- virtx is described as a standalone microVM sandbox for AI agents. (#617)
🧹 Maintenance
- Ailoy takes virtx 0.2.1 from crates.io, PyPI and npm; the Rust crate links virtx's library in by its
embeddedfeature. (#586, #588, #600, #616) - The larger examples moved to brekkylab/ailoy-examples;
hellostays. (#609) - Pull requests run CI for the crate and both bindings: format, lint and tests. (#613, #610)
- Ailoy no longer depends on
jsonschema, which no code used. (#591) - The Ailoy skill's frontmatter parses as YAML, and the Codex plugin uses the README's tagline. (#594, #608)
- rmcp 3.10.0, napi 3.16.2, parking_lot 0.13.0, html-to-markdown-rs 3.19.1, flate2 1.1.11,
@napi-rs/cli3.10.12, pytest-asyncio 1.5.0, and the docs site on Astro 7.4.7. (#604, #602, #584, #603, #583, #582, #601, #590, #585, #587)
Full changelog: v0.3.2..v0.3.3