Here's a problem you've probably run into: you want your AI agents to do real work—process files, run queries, manipulate data—but setting up the infrastructure is a headache.
You need servers, containers, real shells, file systems. Security becomes a nightmare. And you're burning tokens just loading data into context.
There's a simpler way.
It's called "Just Bash," and it's exactly what it sounds like: a bash shell written entirely in TypeScript.
Let me explain why this matters and how it changes how we think about AI agent infrastructure.
Just Bash is a simulated bash environment with an in-memory virtual file system. It runs entirely in JavaScript—no real shell, no servers, no containers.
You give it bash commands:
echo "hello" > greeting.txt cat greeting.txt
It converts those commands to TypeScript functions and runs them. The "files" are in-memory objects. Everything happens in your application code.
Here's the kicker: it supports most of what you'd expect from bash—pipes, redirections, chaining, plus advanced tools like jq, python3, sqlite, and even curl.
You can whitelist commands for security. You can even attach a real filesystem if you want to (but usually you don't need to).
Here's why this matters for your wallet.
Imagine you have a massive JSON file with hundreds of thousands of records. You want your AI to answer questions about this data.
Wrong way: Load the entire file into the AI's context.
Better way: Give your AI a simulated bash environment with the file.
jq to query the data directlyThis isn't just "cheaper." It's "orders of magnitude cheaper." And the accuracy tradeoff is usually in your favor because you're running actual data operations instead of asking the AI to guess.
Look, we're building AI systems at Medianeth. We care about two things: making them powerful and keeping them sustainable.
Infrastructure is where most AI projects die. You start with a prototype that's just prompt calls. Then you add file storage. Then you need secure execution environments. Then you're managing containers and secrets and permissions. Your simple AI project just turned into a devops nightmare.
Simulated bash gives you:
Zero infrastructure. It's an npm package. Install and go. No servers, no containers, no real shells.
Secure by default. Everything runs in memory. You whitelist commands. No real filesystem access unless you explicitly allow it.
Cost-efficient. Stop shoving entire datasets into context. Let your agents query, filter, and process data directly.
Portable. Your agents don't depend on specific server configurations. They work anywhere the package runs.
Here's where this actually helps you:
Data analysis on large files: You've got CSVs, JSON files, database exports. Instead of loading everything into context, give your agent simulated bash with jq, sqlite, or python3. Let it run queries.
API response processing: Your agent fetches data from an API (via simulated curl), then filters, transforms, or analyzes it using bash tools.
File manipulation: Need to restructure directories, rename files, extract specific content? Simulated bash handles this without touching your real filesystem.
Multi-step workflows: Chain commands together—curl to fetch, jq to filter, python3 to process, sqlite to store. All in memory, all secure.
Most AI projects overbuild infrastructure.
You see teams spinning up full server fleets for what amounts to a few bash commands and some file operations. They're solving problems that don't exist yet, at cost and complexity they can't sustain.
Simulated bash isn't the right tool for every scenario. If you're training models, running long jobs, or need heavy compute, you'll still need real infrastructure.
But for the 80% of AI work that's about data processing, transformation, and analysis? Simulated bash covers it without the headache.
We're in the business of building systems that work. Systems that don't require a devops team to maintain. Systems that stay lean while they scale.
Simulated bash fits that philosophy perfectly. It's the kind of tool that lets us build powerful AI agents while keeping infrastructure simple.
When we're building construction software, real estate platforms, or automation systems, we don't need to overengineer the AI layer. We need it to process data reliably, securely, and efficiently.
That's exactly what simulated bash gives us.
If you're working with AI agents and dealing with data:
Stop loading everything into context. Use tools to let your agents query data directly.
Check out simulated bash environments. Just Bash is one option. The pattern is what matters—simulated environments over real infrastructure.
Think in operations, not prompts. Your agents should be running commands, filtering data, and performing transformations—not just guessing based on context.
Stay lean. If you're provisioning servers for what could be an npm package, you might be overbuilding.
AI infrastructure doesn't have to be complicated. Simulated bash gives you 80% of the power with 10% of the complexity.
Sometimes the best engineering decision is the simplest one.
Founder & Lead Developer
With 8+ years building software from the Philippines, Jomar has served 50+ US, Australian, and UK clients. He specializes in construction SaaS, enterprise automation, and helping Western companies build high-performing Philippine development teams.
Ready to make your online presence shine? I'd love to chat about your project and how we can bring your ideas to life.
Free Consultation