
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@ag-bash/bash
Advanced tools
AI-native bash interpreter in TypeScript — a sandboxed, in-process POSIX shell engine for AI agents, with 110+ builtins, WASM Python/JS/SQLite runtimes, fork-speculation, an MCP server, and an agent terminal bridge.
AI-Native Sandboxed Bash Runtime for TypeScript
A complete bash interpreter with an in-memory filesystem, built for AI agents and TypeScript applications. No VM, no Docker, no native dependencies.
npm install @ag-bash/bash
// Direct execution
import { Bash } from "@ag-bash/bash";
const bash = new Bash();
const result = await bash.exec("echo hello");
console.log(result.stdout); // "hello\n"
// Tagged template (zx-style)
import { createShell } from "@ag-bash/bash";
const $ = createShell();
const name = "world";
await $`echo ${name}`;
// Agent RunLoop
import { RunLoop } from "@ag-bash/bash/agent-runtime";
| Import Path | Contents |
|---|---|
@ag-bash/bash | Core API: Bash, createShell, shellEscape, defineCommand |
@ag-bash/bash/agent-runtime | RunLoop, BudgetManager, LLMProvider |
@ag-bash/bash/testing | createTestBash, assertions, fixtures |
@ag-bash/bash/ai | Multi-framework adapters (OpenAI, Anthropic, LangChain, Vercel) |
@ag-bash/bash/slim | Minimal API surface for bundle-sensitive environments |
@ag-bash/bash/advanced | Full internal surface for power users |
grep, sed, awk, jq, find, xargs, and moreag-edit, ag-diff, ag-snapshot, ag-analyze, ag-todo, ag-plandefineCommand() and full pipe/redirect supportconst bash = new Bash({
files: { "/data/config.json": '{"key": "value"}' },
env: { NODE_ENV: "production" },
cwd: "/app",
runtimes: { python: true, javascript: true },
agentic: { enabled: true },
});
Apache-2.0
FAQs
AI-native bash interpreter in TypeScript — a sandboxed, in-process POSIX shell engine for AI agents, with 110+ builtins, WASM Python/JS/SQLite runtimes, fork-speculation, an MCP server, and an agent terminal bridge.
The npm package @ag-bash/bash receives a total of 16 weekly downloads. As such, @ag-bash/bash popularity was classified as not popular.
We found that @ag-bash/bash demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.