Introducing bash-tool for filesystem-based context retrieval
Vercel just shipped bash-tool. Here's why agents stop hallucinating when they can search files instead of reading entire contexts.

Why it matters
Vercel open-sourced bash-tool, a filesystem-based context retrieval system that lets AI agents efficiently search large files using Unix commands (find, grep, jq) instead of dumping full text into prompts. This solves a real scaling problem: context windows fill up fast, agent accuracy drops, token costs explode. Now agents can keep gigabytes on disk and pull only what they need on demand.
The key facts
7 to knowVercel open-sourced bash-tool for AI SDK agents
Reduces token usage and improves agent response accuracy
Supports Unix-style workflows: find, grep, jq, pipes
Works in-memory or sandboxed VM environments
Enables agents to search filesystem without pasting full context into prompt
Built on just-bash (TypeScript bash interpreter, no shell process required)
Supports custom isolated VM execution for real shell/filesystem/binary needs
Go to the source
Vercel Blogvercel.com
Publisher excerpt: 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…

