feat: introduce experimental Workspace support with filesystem, sandb…
Merged
OM
10mo ago+13807+13807+01234567890123456789012345678901234567890123456789-1409-1409-0123456789012345678901234567890123456789
…ox execution
PR Checklist
Please check if your PR fulfills the following requirements:
- The commit message follows our guidelines: https://voltagent.dev/docs/community/contributing/#commit-convention
Bugs / Features
- Related issue(s) linked
- Tests for the changes have been added
- Docs have been added / updated
- Changesets have been added https://voltagent.dev/docs/community/contributing/#creating-a-changeset
What is the current behavior?
What is the new behavior?
fixes (issue)
Notes for reviewers
Summary by cubic
Introduces an experimental Workspace for agents with filesystem, sandboxed command execution, search, and skills, plus global defaults, server APIs, docs, and an example. Adds optional E2B and Daytona sandbox providers, new observability attributes, and VoltAgent readiness. Addresses #1008.
-
New Features
- Workspace: filesystem tools (ls/read/write/edit/delete/glob/grep/stat/list_tree/mkdir/rmdir), Node/InMemory/Composite backends, read-only mode, per-tool policies, operation timeouts, and workspace span attributes.
- Sandbox: LocalSandbox with macOS/Linux isolation detection, large stdout/stderr eviction to files, and optional @voltagent/sandbox-e2b and @voltagent/sandbox-daytona providers.
- Search: BM25, vector, and hybrid search with auto-index paths, snippets, optional direct-access API, and hybrid weighting.
- Skills: discover SKILL.md under /skills or via async resolver, search/activate skills, and inject into prompts.
- Agent/Server: agents accept a workspace and optional workspaceToolkits; VoltAgent can set a global workspace inherited by agents and exposes ready/degraded/initError; new GET routes for workspace info, ls, read, and skills (list/get) across Hono, Elysia, and serverless. Docs and “with-workspace” example included.
-
Migration
- No breaking changes. Enable by passing a workspace to an agent or setting a global workspace in VoltAgent (agents can opt out).
- If using PlanAgent filesystem backends, switch to WorkspaceFilesystem (NodeFilesystemBackend/InMemory/Composite) and the new tools. Install @voltagent/sandbox-e2b or @voltagent/sandbox-daytona to use those sandbox providers, or supply a custom WorkspaceSandbox.
Summary by CodeRabbit
-
New Features
- Experimental Workspaces: persistent/in-memory filesystem (ls/read/write/edit/delete, glob, grep), sandboxed execution (Local + E2B/Daytona providers), BM25/vector/hybrid search, skill discovery, per-tool policies, timeouts, and workspace toolkits.
-
Examples
- Added a "with-workspace" example demonstrating workspace setup, sandboxed runs, indexing/search, skills, and sample workspace content.
-
Documentation
- Full Workspaces docs and sidebar entries (overview, filesystem, search, sandbox, skills, security).
-
Tests
- New tests covering filesystem, sandbox, search, skills, and workspace timeouts.
-
Server
- New agent workspace REST endpoints: workspace info, file listing/reading, and skills.
-
Public API
- Agents and startup now support and expose Workspace configuration, global workspace defaults, and startup readiness indicators.