VIP-64: Experimental.Tools: the standard tools for files, search, HTTP, the web, the shell and language servers
Status: accepted by Will, 2026-11-23 — standard library only (no compiler or language changes). Will: "58 I accept. I accept every other language proposal but ones that don't require a change to the language and are purely library functions that don't require compiler changes at all should be marked as such". Implementation in progress (Experimental.Tools).
Will's words
Ok so give me a list of [the reference engine's] features. We need to figure out what the VIP should look like. Some of the features outside of durable execution likely should simply be in the standard library I'm guessing but we should enumerate all of them
Summary
One sentence. Experimental.Tools is a module of ready-made tools, each one both a function a program calls and an Effect Tool a model calls, with bounded output and a declared permission.
One paragraph. An agent needs the same dozen tools everywhere: read a file, edit it, search, run a command, fetch a page. The reference engine (an existing Effect durable-execution framework these built-ins are modelled on) ships them in its std package, each with a schema for its input and output, a declared capability, a display limit that is disclosed and never silent, and a handler that runs on whatever FileSystem, ChildProcessSpawner and HttpClient the host provides. This VIP ports them as Effect tools. A program calls Experimental.Tools.read({ path }) directly. A model gets Experimental.Tools.filesystem, a Toolkit, through LanguageModel.generateText or Experimental.Agent.run. Because the handlers use injected services, the same tools run on the local disk, in a container, or on another machine.
┌─ a program: try Experimental.Tools.grep({ pattern: "TODO", root: "src" })
Tools.grep ──────────┤
input schema └─ a model: LanguageModel.generateText({ prompt, toolkit: Experimental.Tools.filesystem })
output schema Experimental.Agent.run({ prompt, tools: Experimental.Tools.filesystem, output })
capability: fs:read
limit: a match cap, then `truncated: true` runs on: FileSystem + Path from context (disk, container, remote)Decision
// proposed
export effect function todos() {
const hits = try Experimental.Tools.grep({ pattern: "TODO", root: "/workspace/src" })
const first = try Experimental.Tools.read({ path: "/workspace/src/index.ts" })
return { hits, content: first.content }
}Module
Experimental.Tools, in scope with no import, as VIP-33 rules. Its code is vibelang-runtime/experimental/Tools. Effect's Tool and Toolkit keep their names: Tool defines one, Tools is the standard set.
| Toolkit | Tools | Needs | Capability | Reference engine std package modules |
|---|---|---|---|---|
Tools.filesystem | read, write, edit, applyPatch, ls, glob, grep | FileSystem, Path | fs:read, fs:write | Read, Write, Edit, ApplyPatch, Ls, Glob, Grep, Search |
Tools.shell | bash, test | ChildProcessSpawner | proc:spawn | Bash, TestRun, TestRunner |
Tools.http | fetch, post | HttpClient | net:get, net:post | Fetch, HttpPost |
Tools.web | webfetch, websearch | HttpClient, a search provider | net:get | WebFetch, WebSearch, ExaWebSearch |
Tools.lsp | The language-server queries | A language-server service | fs:read | Lsp, LanguageServer |
Tools.readOnly | Every tool above that changes nothing | As above | Read actions only | Manifest.readOnly |
Each tool is also a function: Tools.read(input), Tools.grep(input), Tools.bash(input) and so on. There is no Tools.all: a tool set that can run a shell is chosen by name.
Rules
- One declaration, two uses. A tool is an Effect
Toolwith a handler.Tools.readcalled directly is the same handler a model's call reaches. - Ordinary outcomes are values. A non-zero exit code, an empty match set and an HTTP 500 are successes with data.
Tools.ToolErroris for failures a model must see as failures. Itscodeis a closed list, with thepathwhere one exists. - Limits are disclosed. A capped result says so:
truncated,stdoutTruncated, or a notice line naming what was shown and what there was. - Capture is bounded where it is read. A command that prints gigabytes costs the bound.
- Child processes get a small environment:
PATH,HOME,USER,LANG,LC_*,TERM,TMPDIR,SHELL, and what the caller declares.ANTHROPIC_API_KEY,OPENAI_API_KEYandGH_TOKENare withheld unless named. - Each tool declares its capability, so capabilities checks every call, and a plan can list what a tool set may touch. A tool's arguments come from a model, so the kernel checks the resolved resource again at the call.
- Each tool carries Effect's annotations.
Tool.Readonly,Tool.DestructiveandTool.Idempotentare set from the declared capability, so an MCP host that lists these tools sees the same facts (std-mcp). readpreserves bytes. It keeps a trailing\rin CRLF files, so its text is a valid edit anchor.editfails on an anchor that no longer matches; it never overwrites a concurrent change.- Search has three implementations behind one service: ripgrep (
NativeSearch), an in-process walk (PortableSearch) and a remote machine (RemoteSearch). The host picks. Tools.readOnlyis a tool set, not a confinement. A program that also hands overTools.shellhas handed over writes.- Inside a task, each call is a recorded step, as every durable call is. A direct call outside a task is an ordinary live Effect.
- A custom tool is Effect's.
Tool.makeandToolkit.makework in Vibe 0.0.13, andToolkit.mergejoins one to the standard set.
What must be built
The reference engine's std package declares each tool as a reference engine flow (Read.flow, Read.run, Read.capabilities, Read.effects). Effect's LanguageModel takes Tools. No adapter exists at main@origin bcf8076a4ff4. This VIP needs one function in each direction: a flow declaration with a handler as a Tool, and a Tool as a FlowBinding.Binding for the cell loop. std-agent needs the second.
Host needs
Tools.filesystem and Tools.shell need a machine: Node, Bun or a sandbox. Tools.http and Tools.web run anywhere HttpClient does, including a browser and a Worker. The root of the reference engine's std package "reaches no node:* module".
Maintainers' decisions
This record comes from the 2026-11-09 built-in set review. The Status line above records Will’s subsequent ruling.
Experimental.Tools, in scope with no import, as VIP-33 rules. Design · Review.- Its code is
vibelang-runtime/experimental/Tools. Design · Review. - Effect's
ToolandToolkitkeep their names:Tooldefines one,Toolsis the standard set. Design · Review. - Toolkit
Tools.filesystem: Tools:read,write,edit,applyPatch,ls,glob,grep; Needs:FileSystem,Path; Capability:fs:read,fs:write; Reference engine std package modules:Read,Write,Edit,ApplyPatch,Ls,Glob,Grep,Search. Design · Review. - Toolkit
Tools.shell: Tools:bash,test; Needs:ChildProcessSpawner; Capability:proc:spawn; Reference engine std package modules:Bash,TestRun,TestRunner. Design · Review. - Toolkit
Tools.http: Tools:fetch,post; Needs:HttpClient; Capability:net:get,net:post; Reference engine std package modules:Fetch,HttpPost. Design · Review. - Toolkit
Tools.web: Tools:webfetch,websearch; Needs:HttpClient, a search provider; Capability:net:get; Reference engine std package modules:WebFetch,WebSearch,ExaWebSearch. Design · Review. - Toolkit
Tools.lsp: Tools: The language-server queries; Needs: A language-server service; Capability:fs:read; Reference engine std package modules:Lsp,LanguageServer. Design · Review. - Toolkit
Tools.readOnly: Tools: Every tool above that changes nothing; Needs: As above; Capability: Read actions only; Reference engine std package modules:Manifest.readOnly. Design · Review. - Each tool is also a function:
Tools.read(input),Tools.grep(input),Tools.bash(input)and so on. Design · Review. - There is no
Tools.all: a tool set that can run a shell is chosen by name. Design · Review. - One declaration, two uses. A tool is an Effect
Toolwith a handler. Design · Review. Tools.readcalled directly is the same handler a model's call reaches. Design · Review.- Ordinary outcomes are values. A non-zero exit code, an empty match set and an HTTP 500 are successes with data. Design · Review.
Tools.ToolErroris for failures a model must see as failures. Design · Review.- Its
codeis a closed list, with thepathwhere one exists. Design · Review. - Limits are disclosed. A capped result says so:
truncated,stdoutTruncated, or a notice line naming what was shown and what there was. Design · Review. - Capture is bounded where it is read. A command that prints gigabytes costs the bound. Design · Review.
- Child processes get a small environment:
PATH,HOME,USER,LANG,LC_*,TERM,TMPDIR,SHELL, and what the caller declares. Design · Review. ANTHROPIC_API_KEY,OPENAI_API_KEYandGH_TOKENare withheld unless named. Design · Review.- Each tool declares its capability, so capabilities checks every call, and a plan can list what a tool set may touch. Design · Review.
- A tool's arguments come from a model, so the kernel checks the resolved resource again at the call. Design · Review.
- Each tool carries Effect's annotations.
Tool.Readonly,Tool.DestructiveandTool.Idempotentare set from the declared capability, so an MCP host that lists these tools sees the same facts (std-mcp). Design · Review. readpreserves bytes. It keeps a trailing\rin CRLF files, so its text is a valid edit anchor. Design · Review.editfails on an anchor that no longer matches; it never overwrites a concurrent change. Design · Review.- Search has three implementations behind one service: ripgrep (
NativeSearch), an in-process walk (PortableSearch) and a remote machine (RemoteSearch). Design · Review. - The host picks. Design · Review.
Tools.readOnlyis a tool set, not a confinement. A program that also hands overTools.shellhas handed over writes. Design · Review.- Inside a task, each call is a recorded step, as every durable call is. Design · Review.
- A direct call outside a task is an ordinary live Effect. Design · Review.
- A custom tool is Effect's.
Tool.makeandToolkit.makework in Vibe 0.0.13, andToolkit.mergejoins one to the standard set. Design · Review. - The reference engine's std package declares each tool as a reference engine flow (
Read.flow,Read.run,Read.capabilities,Read.effects). Design · Review. - Effect's
LanguageModeltakesTools. Design · Review. - No adapter exists at
main@originbcf8076a4ff4. Design · Review. - This VIP needs one function in each direction: a flow declaration with a handler as a
Tool, and aToolas aFlowBinding.Bindingfor the cell loop. Design · Review. - std-agent needs the second. Design · Review.
Tools.filesystemandTools.shellneed a machine: Node, Bun or a sandbox. Design · Review.Tools.httpandTools.webrun anywhereHttpClientdoes, including a browser and a Worker. Design · Review.- The root of the reference engine's std package "reaches no
node:*module". Design · Review.
Adopted review answers
- Keep
Experimental.Xnames under VIP-33. Promotion to a bare module name requires a later decision. Review question 1.
Compared
The same program in the reference engine 1.x. It type-checks against the reference engine's std package 1.0.0-rc.16.
import { Grep, Read } from "@smthrs/std"
import { Effect } from "effect"
export const program = Effect.gen(function*() {
const hits = yield* Grep.run({ pattern: "TODO", root: "/workspace/src" })
const first = yield* Read.run({ path: "/workspace/src/index.ts" })
return { hits, content: first.content }
})| Program | Tokens (o200k_base) | Lines |
|---|---|---|
| Vibe, proposed | 57 | 5 |
| Reference engine 1.x | 83 | 8 |
A direct call is nearly the same in both. The gap opens when a model uses the tools: the reference engine registers flows with the host's catalog, and Vibe passes Experimental.Tools.filesystem.
Checked. The Vibe example uses only existing syntax and compiles under vibelang 0.0.13 against a declaration of Tools.grep and Tools.read. The reference engine program type-checks as shown. Tool.make, Toolkit.make and the Tool.Readonly annotation resolve in 0.0.13 with no import.
Principles
- TypeScript-first. Functions and values.
- Effect-second.
ToolandToolkitare Effect's. This module is a set of them. No second tool type. - Optimized for agentic programs. The standard set makes tool calls as straightforward as HTTP and file operations.
- Highly forkable. A fork adds or removes a tool in one list. The search service already has three implementations behind one seam.
- Factory-first. The factory's agents use these tools and no private ones.
What this changes
Experimental.Toolsis new. No grammar changes.- One adapter pair is built, as listed.
Alternatives
- Keep them as reference engine flows,
Read.runandRead.flow. Then a model reached through Effect'sLanguageModelcannot use them, and Vibe has two tool types. - Derive a tool from an
effect function, so any function is a tool:Tool.from(grep). The compiler would derive the parameter schema from the signature, as it does fortask. It is a real token saving and a language feature. See open question 1. - Ship no tools; let each project write its own. Every agent then rewrites file reading with different truncation, and none of them match what a model was trained to expect.
- Everything the reference engine's std package exports. It also has
Checkpoints,Container,Relocate,TreeFingerprint,Probe,ExploreandUpdatePlan, which serve the reference engine's own run model and products. A language's tools do not need a repository to read a file.
Follow-up questions
- Tools from functions. Should
Tool.from(effectFunction)derive a tool's schemas from a signature? It needs the compiler, as VIP-44's derivation does. Recommendation: yes, as its own language VIP after this set; it removes the last place a Vibe program writes a schema by hand for a model. - Which shell shape? The reference engine ships
Bashand aShellCommandshaped like OpenAI's coding-agent CLI tools, because models trained on different tool sets call different shapes. Recommendation:Tools.shellisBash; ship the OpenAI CLI shapes (ShellCommand,ApplyPatch) asTools.codex. - A default web search provider. The reference engine implements
WebSearchwith Exa. A standard library naming one vendor is a decision. Recommendation: ship theWebSearchservice and the Exa layer, and make no layer the default.
Depends on
- capabilities: each tool's declared permission.
- std-durable: recorded calls inside a task. A direct call needs nothing in this set.
std-sandbox runs the same tools on another machine and needs no change here.