Menu

Introducing bash-tool for filesystem-based context retrieval - Vercel
📰

Introducing bash-tool for filesystem-based context retrieval - Vercel

Vercel News·Malte Ubl·6 months ago
#9C4ACqZH
#vercel#bash#tool#agent#sandbox
Reading 0:00
15s threshold

We open-sourced bash-tool , the Bash execution engine used by our text-to-SQL agent that we recently re-architected to reduce our token usage, improve the accuracy of the agent's responses, and improve the agent's overall performance.

bash-tool 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.

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 find , grep , jq , and pipes, with bash-tool you can now keep large context local, in a filesystem, and let the agent use those commands to retrieve smaller slices of context on demand.

bash-tool provides bash , readFile , and writeFile tools for AI SDK agents, working with both in-memory and sandboxed environments, and:

runs on top of just-bash , which interprets bash scripts directly in TypeScript without a shell process or arbitrary binary execution

you can…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.