Building AI agents with just bash and a filesystem in TypeScript
Blog post from Turso
The article introduces "just-bash," a tool developed by Malte Ubl from Vercel, which reimplements bash entirely in TypeScript to facilitate the use of AI agents in lightweight environments without the need for traditional shell access or containers. Just-bash allows AI models to execute shell commands within a JavaScript process using an in-memory filesystem, with no host filesystem access, thereby addressing security concerns and deployment challenges associated with running bash on servers or containers. The tool integrates with AgentFS, which uses SQLite databases to simulate file interactions, allowing seamless command execution for AI agents in environments like Cloudflare Workers. It provides a middle ground for deploying AI agents, offering transparency and ease of use while running in any JavaScript environment, though it is limited to the commands it implements. The article also provides examples of integrating just-bash with AI SDKs and mentions its availability in AgentFS 0.4.1.