@openai/agents
0.22.0 · 12 Nov 2026MIT2.5M / weekRepositoryHomepagenpmAtom feed
0.22.0 is the newest release of 0.9.x.
In short
14 changed8 internal
Release note
What's Changed
Sandbox Agents
This release adds Sandbox Agents, a beta SDK surface for running agents with persistent workspaces and sandbox-backed capabilities in JavaScript.
Sandbox agents build on the existing Agent, Runner, and run flow, while adding workspace manifests, sandbox sessions, capabilities, snapshots, memory, and resume support. They let agents inspect files, run commands, edit repositories, apply patches, generate artifacts, and continue work across runs.
Refer to the Sandbox Agents guide and examples/sandbox/ for more details.
Key additions include:
SandboxAgent, exported from@openai/agents/sandbox, with sandbox defaults such asdefaultManifest,baseInstructions, capabilities, andrunAs.Manifest, a workspace contract for synthetic files and directories, local files and directories, Git repositories, environment, users, groups, permissions, and mounts.SandboxRunConfig, which wires sandbox clients, live sessions, serialized session resume, manifest overrides, snapshots, and materialization limits into each run.Built-in capabilities for filesystem access, shell access, patching and editing, image inspection, lazy skills, memory, and compaction.
Sandbox-aware
RunStateserialization for resuming runner-managed sandbox sessions.
Sandbox Clients and Hosted Providers
Sandbox agents support local, containerized, and hosted execution backends:
UnixLocalSandboxClientfor local development.DockerSandboxClientfor container isolation and image parity.Hosted sandbox clients for Blaxel, Cloudflare, Daytona, E2B, Modal, Runloop, and Vercel through
@openai/agents-extensions/sandbox/*subpath exports.
Provider-specific examples are available under examples/sandbox/extensions/.
Workspaces, Snapshots, Resume, and Memory
This release adds a workspace model for sandbox sessions, including synthetic files and directories, local files and directories, Git repositories, local bind mounts, Docker volume strategies, and typed remote mounts where supported by the selected backend.
It also adds local and remote snapshot store interfaces for carrying workspace contents across runs, plus runner-managed resume through serialized sandbox session state.
Sandbox memory lets future sandbox-agent runs learn from prior runs by storing extracted lessons in the workspace, injecting concise summaries into later runs, and supporting progressive disclosure through deeper rollout summaries. Memory supports read-only and generate-enabled modes, live updates, automatic generation when sessions are flushed, multi-turn grouping, separate memory layouts, and pluggable MemoryStore implementations.
Examples
A new examples/sandbox/ suite demonstrates:
Runtime, Tracing, and Model Plumbing
The release includes the runtime plumbing needed for sandbox agents to work naturally inside the JavaScript SDK:
Runner-managed sandbox preparation, capability binding, lifecycle handling, cleanup, and resume.
Per-agent sandbox session tracking for handoffs and agents-as-tools flows.
Public sandbox agent identity preservation across model filters and runtime hooks.
Sandbox operation spans for session startup, command execution, filesystem work, snapshots, memory, and provider operations.
runAssupport for compatible shell and filesystem operations.Remote sandbox concurrency limits for manifest and local directory materialization.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.