S
sairam0424/ag-bash
🐚 Ag-Bash: The AI-Native Shell Gateway
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
官方说明🐚 Ag-Bash: The AI-Native Shell Gateway. A production-grade, sandboxed Bash environment designed for AI agents. Features high-fidelity Tree-sitter AST parsing, automated agentic observability (AgTrace), and cross-platform MCP support.
安装与配置
取自该仓库的安装命令
claude mcp add ag-bash -- npx -y @ag-bash/mcp-server
解析自我们于 2026-10-28 抓取的该仓库 README;我们未执行过。
这条是仓库自己写的安装方式,不是 MCP 客户端配置,所以不生成 JSON。
配置项的键名以你的客户端为准:客户端与 CLI
- ★ 数取值
- 1 ★ · sairam0424/ag-bash · 取自 GitHub 搜索 API · (2026-11-13 20:00:50 核对)
- 来源明细
- 从该仓库的 GitHub 页面直接读取 · 条目类型:开源项目
- 收录与活跃
- 收录于 2026-10-28 · 最近见到 2026-11-14 · 共见到 19 次 · 被 2 个来源列出
- 评分构成
- 综合分 203 · 1 ★ · 2 个来源 · repo
- 安装
claude mcp add ag-bash -- npx -y @ag-bash/mcp-server
常见问题(答案都来自我们的记录)
怎么安装?
该仓库给出的安装命令是
claude mcp add ag-bash -- npx -y @ag-bash/mcp-server。我们的记录里它是仓库自己提供的;不保证在你的客户端上直接可用。它适合谁 / 用来做什么?
我们把它归在这些标签下: 开源项目。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库
sairam0424/ag-bash;我们收录于 2026-10-28;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。# Ag-Bash: The AI-Native Shell Monorepo
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
Ag-Bash is a production-grade, sandboxed Bash environment designed specifically for AI agents. It provides a virtualized Unix-like experience entirely in-process, featuring an in-memory filesystem, integrated runtimes for Python and JavaScript, and full support for modern agentic protocols.
## 🏗️ Monorepo Architecture
This repository is organized into a modular monorepo to support independent versioning and consumption of core engine components and protocol adapters.
| Package | Version | Description |
| @ag-bash/bash | | Core Engine: The virtual shell, filesystem, and sandboxed runtimes. |
| @ag-bash/mcp-server | | MCP Server: A standalone Model Context Protocol server for seamless agent integration. |
| @ag-bash/agent-bridge | | Agent Bridge: Terminal UI bridge for AI agent communication. |
## What's New in v6.0.0
| Feature | Description |
| ExecutionPipeline | The composable 6-stage pipeline (normalize, parse, transform, sandbox, interpret, persist) is now the sole execution engine. The legacy monolith path has been removed. |
| Fork-Speculation | bash.fork() creates isolated copy-on-write branches; bash.speculate() runs N candidates in parallel and keeps the winner. Core moat for agentic workflows. |
| Observations at Source | Every command produces typed Observation objects with code and confidence fields, surfacing issues without blocking execution. |
| True Streaming | bash.execStream() yields stdout/stderr chunks via AsyncGenerator as statements produce output, byte-identical to buffered exec. |
| RunLoop v2 | Extended with mode, healer, and memory configuration. AgentMemory now persists across sessions. |
| MCP 2025-06-18 | Protocol bumped to latest spec with back-compat preserved for 2024-11-05 clients. Code Mode slice for structured output. |
| Destructive Detection | AST-based gate detects rm -rf /, fork bombs, and decode-pipe-to-shell patterns structurally. Default policy: WARN. |
| OTEL at Exec Level | Optional AgBashTracer wraps each exec() call in an OpenTelemetry span. Zero overhead when @opentelemetry/api is absent. |
## Installation & Distribution
Requires Node.js >=20.6.0. For full ESM-hook security hardening, Node.js >=23.5 is recommended.
Ag-Bash ships across multiple channels (current version 6.0.4, synchronized across all npm packages):
### npm library
bash
# Core engine (recommended)
npm i @ag-bash/bash
# With the standalone MCP server
npm install @ag-bash/mcp-server
Subpath imports for tree-shaking and targeted use:
typescript
import { Bash, createShell } from "@ag-bash/bash";
import { RunLoop } from "@ag-bash/bash/agent-runtime";
import { createTestBash } from "@ag-bash/bash/testing";
### MCP server (npx / MCP Registry)
The MCP server exposes 70 tools over stdio. Add it to Claude Code in one command (no global install needed):
bash
claude mcp add ag-bash -- npx -y @ag-bash/mcp-server
# or run it directly
npx @ag-bash/mcp-server
It is also published to the MCP Registry as io.github.sairam0424/ag-bash.
> A submission to the Docker MCP Catalog (docker/mcp-registry) is currently in review.
### Claude Code plugin
text
/plugin marketplace add sairam0424/ag-bash
/plugin install ag-bash@ag-bash
## 🏗️ Monorepo Architecture
This repository is organized into a modular monorepo to support independent versioning and consumption of core engine components and protocol adapters.
| Package | Version | Description |
| @ag-bash/bash | | Core Engine: The virtual shell, filesystem, and sandboxed runtimes. |
| @ag-bash/mcp-server | | MCP Server: A standalone Model Context Protocol server for seamless agent integration. |
| @ag-bash/agent-bridge | | Agent Bridge: Terminal UI bridge for AI agent communication. |
## What's New in v6.0.0
| Feature | Description |
| ExecutionPipeline | The composable 6-stage pipeline (normalize, parse, transform, sandbox, interpret, persist) is now the sole execution engine. The legacy monolith path has been removed. |
| Fork-Speculation | bash.fork() creates isolated copy-on-write branches; bash.speculate() runs N candidates in parallel and keeps the winner. Core moat for agentic workflows. |
| Observations at Source | Every command produces typed Observation objects with code and confidence fields, surfacing issues without blocking execution. |
| True Streaming | bash.execStream() yields stdout/stderr chunks via AsyncGenerator as statements produce output, byte-identical to buffered exec. |
| RunLoop v2 | Extended with mode, healer, and memory configuration. AgentMemory now persists across sessions. |
| MCP 2025-06-18 | Protocol bumped to latest spec with back-compat preserved for 2024-11-05 clients. Code Mode slice for structured output. |
| Destructive Detection | AST-based gate detects rm -rf /, fork bombs, and decode-pipe-to-shell patterns structurally. Default policy: WARN. |
| OTEL at Exec Level | Optional AgBashTracer wraps each exec() call in an OpenTelemetry span. Zero overhead when @opentelemetry/api is absent. |
## Installation & Distribution
Requires Node.js >=20.6.0. For full ESM-hook security hardening, Node.js >=23.5 is recommended.
Ag-Bash ships across multiple channels (current version 6.0.4, synchronized across all npm packages):
### npm library
bash
# Core engine (recommended)
npm i @ag-bash/bash
# With the standalone MCP server
npm install @ag-bash/mcp-server
Subpath imports for tree-shaking and targeted use:
typescript
import { Bash, createShell } from "@ag-bash/bash";
import { RunLoop } from "@ag-bash/bash/agent-runtime";
import { createTestBash } from "@ag-bash/bash/testing";
### MCP server (npx / MCP Registry)
The MCP server exposes 70 tools over stdio. Add it to Claude Code in one command (no global install needed):
bash
claude mcp add ag-bash -- npx -y @ag-bash/mcp-server
# or run it directly
npx @ag-bash/mcp-server
It is also published to the MCP Registry as io.github.sairam0424/ag-bash.
> A submission to the Docker MCP Catalog (docker/mcp-registry) is currently in review.
### Claude Code plugin
text
/plugin marketplace add sairam0424/ag-bash
/plugin install ag-bash@ag-bash
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/sairam0424-ag-bash/)
- 来源
- github · https://github.com/sairam0424/ag-bash
- 按领域浏览
- 开源项目
- Traction
- 1 ★
- 收录来源
- 2 个独立来源
- 收录于
- 今天
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。