能力标签
Pure-bash LLM 代理内核
⚙️
Agent工作流

Pure-bash LLM 代理内核

基于 Shell · 无代码搭建完整 AI 自动化流程
英文名:bashagt
⭐ 43 Stars 🍴 5 Forks 💻 Shell 📄 Apache-2.0 🏷 AI 7.5分
7.5AI 综合评分
workflowshell
✦ AI Skill Hub 推荐

AI Skill Hub 推荐使用:Pure-bash LLM 代理内核 是一款优质的Agent工作流。AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的Agent工作流解决方案,这是一个值得深入了解的选择。

📚 深度解析

Pure-bash LLM 代理内核 是一套完整的 AI Agent 自动化工作流方案。随着 AI 能力的不断提升,基于 Agent 的自动化工作流正在成为提升个人和团队效率的核心方式。区别于传统的 RPA 自动化(模拟鼠标键盘操作),AI Agent 工作流通过理解任务意图、动态规划执行路径,能够处理更复杂的非结构化任务。

Pure-bash LLM 代理内核 工作流的设计遵循"最小配置,最大复用"原则:核心逻辑已经封装好,用户只需配置自己的 API Key 和业务参数即可快速上手。工作流内置错误处理和重试机制,在网络波动或 API 限速等情况下仍能稳定运行,适合作为生产环境的自动化基础设施。

在实际部署时,建议先在测试环境中运行 3-5 次,验证各个环节的输出结果符合预期,再部署到生产环境。AI Skill Hub 评分 7.5 分,是同类 Agent 工作流中的精选推荐。

📋 工具概览

Pure-bash LLM 代理内核 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。

GitHub Stars
⭐ 43
开发语言
Shell
支持平台
macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
Apache-2.0
AI 综合评分
7.5 分
工具类型
Agent工作流
Forks
5

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

Pure-bash LLM 代理内核 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。

📌 核心特色
  • 可视化 Agent 工作流编排,无需编写复杂代码
  • 支持多步骤自动化任务链,实现全流程无人值守
  • 与外部 API、数据库和第三方服务无缝集成
  • 内置错误处理与自动重试机制,保障稳定运行
  • 提供可复用的自动化模板,快速在同类场景部署
🎯 主要使用场景
  • 自动化日常重复性工作,将精力集中于创造性任务
  • 构建数据采集 → 处理 → 输出的完整自动化管线
  • 实现跨平台、跨系统的数据流转和业务协同
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 克隆仓库
git clone https://github.com/zhihumomo/bashagt
cd bashagt

# 查看安装说明
cat README.md

# 按 README 完成环境依赖安装后即可使用
📋 安装步骤说明
  1. 访问 GitHub 仓库获取工作流文件
  2. 在对应平台(Dify / Flowise / Make 等)中找到「导入工作流」功能
  3. 上传工作流文件
  4. 按照提示配置必要的环境变量和 API Key
  5. 运行测试确认流程正常后投入使用
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 查看帮助
bashagt --help

# 基本运行
bashagt [options] <input>

# 详细使用说明请查阅文档
# https://github.com/zhihumomo/bashagt
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# bashagt 配置说明
# 查看配置选项
bashagt --config-example > config.yml

# 常见配置项
# output_dir: ./output
# log_level: info
# workers: 4

# 环境变量(覆盖配置文件)
export BASHAGT_CONFIG="/path/to/config.yml"
📑 README 深度解析 真实文档 完整度 95/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

Bashagt — Agents Everywhere

English | 中文

A pure-bash LLM agent kernel — zero runtime dependencies, runs anywhere bash does.

Bash [Platform]() [Lines]() [Functions]() License [Status]()

---

🏗️ Architecture Overview

┌─────────────────────────────────────────────────────┐
│                    main()                            │
│         (CLI parsing → init → mode dispatch)          │
├─────────────────────────────────────────────────────┤
│  • --install       Initialize system directories      │
│  • --run           Start HTTP daemon                  │
│  • --oneshot       Single-shot pipe mode              │
│  • (default)       Interactive REPL                   │
└────────────────────┬────────────────────────────────┘
                     │
     ┌───────────────▼──────────────────────┐
     │          agent_loop()                 │
     │  Interactive REPL or oneshot entry     │
     └───────────────┬──────────────────────┘
                     │
     ┌───────────────▼──────────────────────┐
     │          run_turn()                   │
     │  User input → API call → response     │
     │         ↓  stop_reason?                │
     │  end_turn ← return to user             │
     │  tool_use → dispatch_tool → loop       │
     └───────────────┬──────────────────────┘
                     │
     ┌───────────────▼──────────────────────┐
     │       dispatch_tool()                  │
     │  24 tools: read_file, write_file,      │
     │  edit_file, bash, agent, web_search,   │
     │  make_todos, skill, request...         │
     └──────────────────────────────────────┘

━━━━━━━━━━━━ Subsystems ━━━━━━━━━━━━

  Memory Network      Sub-Agent System       Hook System
  ┌──────────┐       ┌────────────┐       ┌──────────┐
  │16 engrams│       │11 sys agents│       │ 8 points  │
  │×200 slots│       │ N proj agents│      │ 6 types   │
  │sem search │       │ parallel    │       │ lifecycle │
  │sleep compr│       │ async sched │       │ hot-reload│
  └──────────┘       └────────────┘       └──────────┘

✨ Features

  • 🐚 Pure Bash — 15,974 lines, 446 functions, zero Node/Python runtime dependencies
  • Zero-Fork Hot Path — incremental message assembly, hash-driven context/skill caches, pure-bash request body construction; minimizes subshell overhead on every turn
  • 🖥️ Cross-Platform — Linux (GNU), macOS (BSD), WSL, Termux (Android), iSH (iPhone/iPad)
  • 🔧 24 Built-in Tools — file read/write/edit/delete, command execution, web search, sub-agent delegation, TODO management, skill system…
  • 🤖 Sub-Agent System — 11 system agents (plan/explore/review/summarize…) + customizable project agents
  • 🧠 Distributed Memory Network — 16 engrams × 200 slots = 3,200 persistent memories with semantic search
  • 🌐 HTTP Daemon — REST API + SSE streaming; deploy as a backend service
  • 🔌 MCP Protocol Support — Model Context Protocol (stdio/sse/http transports), connect to external tool ecosystems
  • 🪝 Hook Plugin System — 8 hook points × 6 handler types for deep customization
  • 📦 4-Tier Context Compression — automatic management of conversations exceeding 250KB
  • ↩️ Trace/Undo — content-addressed file modification tracking with rollback
  • 🔄 Adaptive Agent Loop — three safeguard mechanisms against infinite loops
  • 🧠 Exhaustive Reasoning — system prompt mandates maximum reasoning effort: full problem decomposition, rigorous logic stress-testing against all edge cases, fully documented deliberation process
  • ⌨️ Full Readline — Unicode/CJK support, multi-line editing, history search, Tab completion, robust auto-wrap rendering
  • 📱 Termux-API Integration — control Android sensors, camera, SMS, and more from your phone
  • 🔄 Self-Evolution — Bashagt can read and modify its own source code. Add features through conversation: "add a --version flag" — it reads, edits, verifies, done

---

🔄 Self-Evolution: Let Bashagt Write Its Own Features

This may be Bashagt's most distinctive capability — because it is itself a plain-text bash script, and it has tools to read, edit, and execute files, Bashagt can modify its own source code.

You say a sentence. It adds a feature.

---

Core Dependencies

Bashagt has only three dependencies — installable with a single package manager command on any mainstream platform:

DependencyMinimumPurpose
**bash**4.0+Script runtime. Built into virtually all modern systems.
**jq**AnyJSON processing for API communication and config file handling.
**curl**AnyHTTP client for communicating with LLM API endpoints.

Additionally, Termux (Android) requires the coreutils package (for realpath/nl and other GNU tools). See platform-specific instructions below.

---

Install dependencies

brew install bash jq curl


Homebrew-installed bash lives at `/opt/homebrew/bin/bash` (Apple Silicon) or `/usr/local/bin/bash` (Intel). Bashagt uses `#!/usr/bin/env bash`, so as long as the Homebrew path appears before `/bin` in `/etc/paths`, the new version will be used automatically.
bash

Install core dependencies

pkg install bash jq curl git coreutils

Installation: Platform Guides

Installation is uniform across all platforms — three steps:

1. Get the script   →   2. Install dependencies   →   3. ./bashagt --install

--install automatically: creates the ~/.bashagt/ directory tree, generates a default config file, registers bash/zsh hotkeys, and adds bashagt to your PATH.

---

🐧 Linux / Unix (General)

Applies to all mainstream Linux distributions (Debian/Ubuntu, RHEL/CentOS, Arch, Alpine, openSUSE, etc.) and traditional Unix.

Step 1: Install dependencies

```bash

Install Homebrew (if not already installed)

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Verify bash version (Termux installs bash 5.x by default)

bash --version


| Extra package | Purpose |
|--------------|---------|
| `coreutils` | Provides `realpath`, `nl`, and other GNU tools that Bashagt depends on. **Required.** |
| `termux-api` | Android API bridge (optional). Enables Bashagt to control phone hardware via Termux-API tools — see "Termux-API Integration" below. |

**Step 3: Install Bashagt**
bash git clone https://github.com/zhihumomo/bashagt.git cd bashagt ./bashagt --install

> **Storage access**: Termux can only access the shared internal storage directory `~/storage/shared/` by default. To access external SD cards or other locations, run `termux-setup-storage` to grant storage permissions.

---

##### 🔧 Mounting External Storage

To work with external SD cards or USB storage devices in Termux:
bash

🚀 Quick Start

📋 Use Cases

---

🔧 Usage Examples

Live Demo

Say you want Bashagt to show token usage stats for the current session. You just say:

bashagt> Add a /stats slash command that shows token usage and API call count for this session

Bashagt will navigate its own source to find where slash commands are registered (_slash_dispatch), locate the statistics variables (TURN_TOKENS_IN, TURN_TOKENS_OUT…), and insert the new command implementation. It'll even run bash -n for a syntax check when done.

---

Configure API Key

After installation, edit ~/.bashagt/settings.json with your API details:

{
  "api_url": "https://api.deepseek.com/anthropic",
  "api_key": "sk-your-api-key-here",
  "model": "deepseek-chat",
  "max_tokens": 8192,
  "thinking_budget": 16384
}
Compatible backends: Bashagt uses the Anthropic Messages API protocol. The default points to DeepSeek. You can also switch to: - Anthropic official: "api_url": "https://api.anthropic.com", "model": "claude-sonnet-4-20250514" - Other OpenAI-compatible endpoints: such as Ollama, vLLM, LiteLLM, or other locally-deployed models

Recommended — secure approach: Use environment variables instead of storing the API key in a config file:

export BASHAGT_API_KEY="sk-your-api-key-here"

Environment variables take priority over config files (4-tier config: defaults → settings.json → project settings.json → environment variables).

---

🔒 Air-Gapped / Offline Environments

The most extreme scenario: a machine physically isolated from the internet, but with an internal LLM API available (e.g., Ollama or vLLM):

```bash

Configure the internal API endpoint

export BASHAGT_API_URL="http://192.168.1.100:11434/api/chat" export BASHAGT_API_KEY="ollama"

Config generation

cat schema.json | bashagt --oneshot --stream ```

⚙️ Configuration

Bashagt uses a 4-tier configuration priority (later overrides earlier):

Defaults  →  ~/.bashagt/settings.json  →  Project .bashagt/settings.json  →  Environment variables
SettingEnv VariableDefaultDescription
api_urlBASHAGT_API_URLDeepSeek Anthropic endpointAPI address
api_keyBASHAGT_API_KEYAPI key
modelBASHAGT_MODELdeepseek-chatModel name
max_tokensBASHAGT_MAX_TOKENS8192Max output tokens
thinking_budgetBASHAGT_THINKING_BUDGET16384Thinking budget
proxy_urlBASHAGT_PROXY_URLProxy URL (http/socks4/socks5)
context_windowBASHAGT_CONTEXT_WINDOW128000Context window size

---

🌐 As a Backend API Service

You want to embed LLM conversation capabilities in your app, without pulling in a massive Python/Node dependency chain:

```bash

Daemon API

```bash

Update package index (iSH uses the Alpine package manager)

apk update apk add bash jq curl git coreutils

🏭 Production Troubleshooting

A sudden 502 in production. You SSH in, facing gigabytes of logs and config files changed who-knows-when:

$ ssh production-server
$ cd /var/log/app
$ bashagt

bashagt> What are the top 5 errors in the nginx error log from the last hour?
bashagt> Check /etc/nginx/nginx.conf for anything that could cause a 502
bashagt> Compare the three configs under /etc/nginx/sites-enabled/ — find the inconsistencies

No special tools needed — the server already has bash. The entire investigation happens in one terminal session.

---

🇨🇳 中文文档镜像 AI 翻译 2026-06-05
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介

Bashagt — Agents Everywhere,一个纯bash的LLM代理内核 ——零运行时依赖,运行任何bash都可以。

⚡ 功能介绍

✨功能特点 - **纯bash** — 15,974 行,446 个函数,零 Node/Python 运行时依赖 - ⚡ **零分叉热路径** — 增量消息组装,哈希驱动的上下文/技能缓存,纯bash请求体构造;减少子shell开销 - ️ **跨平台** — Linux(GNU),macOS(BSD),WSL,Termux(Android),iSH(iPhone/iPad) - **24个内置工具** — 文件读写等

📋 环境依赖

环境依赖与系统要求 Bashagt只有三个依赖 — 可以用一个包管理器命令在任何主流平台上安装: | 依赖 | 最小版本 | 目的 | |-----------|---------|---------| | **bash** | 4.0+ | 脚本运行时。几乎所有主流平台都内置了bash。 | **jq** | | JSON 处理 | **curl** | | HTTP 请求

🛠 安装步骤(Docker/pip/源码)

安装步骤 安装是所有平台上统一的 — 三步: 1. 获取脚本 → 2. 安装依赖 → 3. ./bashagt --install `--install`自动: - 创建 `~/.bashagt/` 目录树 - 生成默认配置文件 - 注册bash/zsh快捷键 - 将 `bashagt` 添加到 PATH 中

⚙️ 配置说明(含 MCP / env)

配置说明 配置文件位于 `~/.bashagt/settings.json`,内容如下: ```json { "api_url": "https://api.deepseek.com/anthropic", "api_key": "sk-your-api-key-here", "model": "deepseek-chat", "max_tokens": 8192, "thinking_budget": 16384 } ``` > **兼容后端**:Bashagt使用Anthropic Messages API协议。默认指向DeepSeek Chat API。

🔌 API 说明

API/接口说明

🔄 工作流/模块

工作流 / 模块说明

🎯 aiskill88 AI 点评 A 级 2026-06-05

该项目提供了一种创新且高效的 AI 工作流解决方案,基于 bash 内核,零依赖,易于使用。

📚 实用指南(长尾问题)
适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
  • 跨境业务、多语言内容运营团队
最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • 显存不足直接 OOM — 优先降低 context 或换更小的量化模型
部署方案
  • CLI:直接 npm install -g / pip install,命令行调用
  • 本地部署:CPU 8GB 起,GPU 推荐 16GB+ 显存
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
bashagt 中文教程bashagt 安装报错怎么办bashagt MCP 配置bashagt Agent 工作流bashagt 与同类工具对比bashagt 最佳实践bashagt 适合谁用

⚡ 核心功能

👥 适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
  • 跨境业务、多语言内容运营团队
⭐ 最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • 显存不足直接 OOM — 优先降低 context 或换更小的量化模型

👥 适合人群

自动化工程师和运维人员项目经理和业务分析师希望减少重复性工作的专业人士数字化转型团队

🎯 使用场景

  • 自动化日常重复性工作,将精力集中于创造性任务
  • 构建数据采集 → 处理 → 输出的完整自动化管线
  • 实现跨平台、跨系统的数据流转和业务协同

⚖️ 优点与不足

✅ 优点
  • +Apache-2.0 协议,可免费商用
  • +大幅减少重复性人工操作
  • +可视化流程,清晰直观
  • +可扩展性强,支持复杂场景
⚠️ 不足
  • 初始配置和调试需投入一定时间
  • 强依赖外部服务的稳定性
  • 复杂场景需具备一定技术基础
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。

🔗 相关工具推荐

📚 相关教程推荐
📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

bashagt 是一款Shell开发的AI辅助工具。开源AI工作流:Pure-bash LLM agent kernel — zero runtime dependencies, runs anywhere bash does.。⭐43 · Shell 主要应用场景包括:用于 AI 工作流的 bash 内核,提供零依赖的运行环境。。
💡 AI Skill Hub 点评

总体来看,Pure-bash LLM 代理内核 是一款质量良好的Agent工作流,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。

⬇️ 获取与下载
⬇ 下载源码 ZIP

✅ Apache-2.0 协议 · 可免费商用 · 直接从 aiskill88 服务器下载,无需跳转 GitHub

📚 深入学习 Pure-bash LLM 代理内核
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 bashagt
原始描述 开源AI工作流:Pure-bash LLM agent kernel — zero runtime dependencies, runs anywhere bash does.。⭐43 · Shell
Topics workflowshell
GitHub https://github.com/zhihumomo/bashagt
License Apache-2.0
语言 Shell
🔗 原始来源
🐙 GitHub 仓库  https://github.com/zhihumomo/bashagt

收录时间:2026-06-05 · 更新时间:2026-06-06 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。