Skip to content

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.

ToolkitToolsNeedsCapabilityReference engine std package modules
Tools.filesystemread, write, edit, applyPatch, ls, glob, grepFileSystem, Pathfs:read, fs:writeRead, Write, Edit, ApplyPatch, Ls, Glob, Grep, Search
Tools.shellbash, testChildProcessSpawnerproc:spawnBash, TestRun, TestRunner
Tools.httpfetch, postHttpClientnet:get, net:postFetch, HttpPost
Tools.webwebfetch, websearchHttpClient, a search providernet:getWebFetch, WebSearch, ExaWebSearch
Tools.lspThe language-server queriesA language-server servicefs:readLsp, LanguageServer
Tools.readOnlyEvery tool above that changes nothingAs aboveRead actions onlyManifest.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

  1. One declaration, two uses. A tool is an Effect Tool with a handler. Tools.read called directly is the same handler a model's call reaches.
  2. Ordinary outcomes are values. A non-zero exit code, an empty match set and an HTTP 500 are successes with data. Tools.ToolError is for failures a model must see as failures. Its code is a closed list, with the path where one exists.
  3. Limits are disclosed. A capped result says so: truncated, stdoutTruncated, or a notice line naming what was shown and what there was.
  4. Capture is bounded where it is read. A command that prints gigabytes costs the bound.
  5. Child processes get a small environment: PATH, HOME, USER, LANG, LC_*, TERM, TMPDIR, SHELL, and what the caller declares. ANTHROPIC_API_KEY, OPENAI_API_KEY and GH_TOKEN are withheld unless named.
  6. 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.
  7. Each tool carries Effect's annotations. Tool.Readonly, Tool.Destructive and Tool.Idempotent are set from the declared capability, so an MCP host that lists these tools sees the same facts (std-mcp).
  8. read preserves bytes. It keeps a trailing \r in CRLF files, so its text is a valid edit anchor. edit fails on an anchor that no longer matches; it never overwrites a concurrent change.
  9. Search has three implementations behind one service: ripgrep (NativeSearch), an in-process walk (PortableSearch) and a remote machine (RemoteSearch). The host picks.
  10. Tools.readOnly is a tool set, not a confinement. A program that also hands over Tools.shell has handed over writes.
  11. 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.
  12. A custom tool is Effect's. Tool.make and Toolkit.make work in Vibe 0.0.13, and Toolkit.merge joins 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 Tool and Toolkit keep their names: Tool defines one, Tools is 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 Tool with a handler. Design · Review.
  • Tools.read called 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.ToolError is for failures a model must see as failures. Design · Review.
  • Its code is a closed list, with the path where 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_KEY and GH_TOKEN are 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.Destructive and Tool.Idempotent are set from the declared capability, so an MCP host that lists these tools sees the same facts (std-mcp). Design · Review.
  • read preserves bytes. It keeps a trailing \r in CRLF files, so its text is a valid edit anchor. Design · Review.
  • edit fails 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.readOnly is a tool set, not a confinement. A program that also hands over Tools.shell has 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.make and Toolkit.make work in Vibe 0.0.13, and Toolkit.merge joins 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 LanguageModel takes Tools. Design · Review.
  • No adapter exists at main@origin bcf8076a4ff4. Design · Review.
  • 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. Design · Review.
  • std-agent needs the second. Design · Review.
  • Tools.filesystem and Tools.shell need a machine: Node, Bun or a sandbox. Design · Review.
  • Tools.http and Tools.web run anywhere HttpClient does, 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.X names 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 }
})
ProgramTokens (o200k_base)Lines
Vibe, proposed575
Reference engine 1.x838

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. Tool and Toolkit are 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.Tools is new. No grammar changes.
  • One adapter pair is built, as listed.

Alternatives

  • Keep them as reference engine flows, Read.run and Read.flow. Then a model reached through Effect's LanguageModel cannot 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 for task. 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, Explore and UpdatePlan, 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

  1. 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.
  2. Which shell shape? The reference engine ships Bash and a ShellCommand shaped like OpenAI's coding-agent CLI tools, because models trained on different tool sets call different shapes. Recommendation: Tools.shell is Bash; ship the OpenAI CLI shapes (ShellCommand, ApplyPatch) as Tools.codex.
  3. A default web search provider. The reference engine implements WebSearch with Exa. A standard library naming one vendor is a decision. Recommendation: ship the WebSearch service 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.