Introducing bash-tool for filesystem-based context retrieval
Vercel open-sourced bash-tool, a Bash execution engine that enables AI agents to retrieve context from files using bash-like commands like find, grep, and jq. This reduces token usage and improves agent accuracy by allowing large context to remain in the filesystem while agents fetch only needed slices on demand.
We open-sourced , the Bash execution engine used by to reduce our token usage, improve the accuracy of the agent's responses, and improve the agent's overall performance.bash-toolour text-to-SQL agent that we recently re-architected
gives your agent a way to find the right context by running bash-like commands over files, then returning only the results of those tool calls to the model.bash-tool
Context windows can fill up quickly if you include large amounts of text into a prompt. As agents tend to do well with Unix-style workflows like , , , and pipes, with you can now keep large context in a filesystem, and let the agent use those commands to retrieve smaller slices of context on demand.findgrepjqbash-tool local,
provides , , and tools for agents, working with both in-memory and sandboxed environments, and:bash-toolbashreadFilewriteFileAI SDK
If you need a real shell, a real filesystem, or custom binaries, you can run the same tool against a Sandbox-compatible API for full VM isolation.
runs on top of , which interprets bash scripts directly in TypeScript without a shell process or arbitrary binary execution
just-bashyou can preload that filesystem with your files at startup, so your agent can search them when needed without pasting everything into the prompt
it supports running in-memory or in a custom isolated VM
Source: original entry ↗
More from Vercel
Follow Vercel to get its new changes in your feed and email digest.
OpenAI Decisions API now available on AI Gateway
OpenAI's Decisions API is now accessible through Vercel's AI Gateway with an OpenAI-compatible endpoint, enabling decision models to answer typed questions and return probabilities, choices, and scores for routing, triage, and guardrails use cases. Support is available across the OpenAI SDK, AI SDK, HTTP API, and CLI with the latest versions.
Timestamp attributes now supported in Vercel Flags
Vercel Flags now supports timestamp attributes for entities, allowing you to create time-based targeting rules. Use this feature to run limited-time campaigns, show content between specific dates, or target users based on registration date.
Glyph Cluster now available in stealth on AI Gateway
Glyph Cluster, a reasoning model for coding and long-context analysis, is now available as a stealth model on Vercel's AI Gateway for Pro and Enterprise plan teams with purchased AI Gateway credits at no cost during the stealth period. The model supports function calling, streams responses, and can be accessed via AI SDK, OpenAI-compatible APIs, and coding agents.