竹子AI代理 是 AI Skill Hub 本期精选Agent工作流之一。综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
竹子AI代理 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
竹子AI代理 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:cargo install(推荐) cargo install bamboo-agent # 方式二:从源码编译 git clone https://github.com/bigduu/Bamboo-agent cd Bamboo-agent cargo build --release # 二进制在 ./target/release/bamboo-agent
# 查看帮助 bamboo-agent --help # 基本运行 bamboo-agent [options] <input> # 详细使用说明请查阅文档 # https://github.com/bigduu/Bamboo-agent
# bamboo-agent 配置说明 # 查看配置选项 bamboo-agent --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export BAMBOO_AGENT_CONFIG="/path/to/config.yml"
<p align="center"> <img src="./docs/assets/bamboo-agent-hero.svg" alt="Bamboo agent runtime overview" width="100%" /> </p>
📖 中文版请看 README.zh-CN.md
Bamboo — the local-first Rust agent runtime that powers Zenith (the execution engine).
---
| Capability | What it does |
|---|---|
| 🧠 **Memory system** | Session notes, Dream notebook, cross-session durable memory, with auto-dream and background gardener |
| 🗜️ **Context compression** | Hybrid compression with rolling summary + recent-window retention, automatic trimming of oversized tool output, executed against the model's context-window budget |
| 🛠️ **Built-in tools** | 22 built-in tools: files, search, Shell, Web, plan mode, tasks, permission requests, and more |
| 🎯 **Skills** | Optional/discoverable skills with lightweight selection based on request hints, including built-in docx / pdf / pptx / xlsx / skill-creator |
| 🔌 **MCP** | Model Context Protocol client that hooks into external tool servers |
| ⏰ **Workflows & schedules** | Declarative workflow loading + a cron-style schedule trigger engine |
| 🌐 **HTTP / SSE** | Actix server, REST API, Server-Sent Events streaming, compatible with OpenAI / Anthropic / Gemini endpoints |
| 🏗️ **Multi-provider** | anthropic (default), openai, gemini, copilot, bodhi routing |
---
cargo run --bin bamboo -- serve
cargo install --path . bamboo serve ```
Arguments supported by bamboo serve (all override the config file): --port, --bind, --data-dir, --static-dir, --workers. The other subcommand, bamboo config [--path] [--show-secrets], is used to inspect configuration.
Defaults (verified against code):
http://127.0.0.1:9562/api/v1 (port defaults to 9562, bind defaults to 127.0.0.1)GET /api/v1/healthBAMBOO_DATA_DIR or ${HOME}/.bambooanthropiccd docker && docker compose up -d --build
curl http://localhost:9562/api/v1/health
docker-compose.yml maps 9562:9562 and sets BAMBOO_DATA_DIR=/data, BAMBOO_PORT=9562, BAMBOO_BIND=0.0.0.0.
curl -N http://127.0.0.1:9562/api/v1/stream ```
message and model are the only required fields. Useful optionals: session_id (continue a conversation), system_prompt, selected_skill_ids, workspace_path, provider, images. The chat call returns right away and the loop runs in the background; the stream endpoint (SSE, resumable via ?since=<seq> or the Last-Event-ID header) is where the assistant's reasoning, tool calls, and final answer arrive as they happen.
${HOME}/.bamboo/config.json:
{
"provider": "anthropic",
"server": {
"port": 9562,
"bind": "127.0.0.1"
},
"providers": {
"anthropic": {
"api_key": "sk-ant-...",
"model": "claude-sonnet-4-6"
}
}
}
Config precedence: file < environment variables < CLI arguments. Environment variables includeBAMBOO_DATA_DIR,BAMBOO_PORT,BAMBOO_BIND,BAMBOO_PROVIDER,BAMBOO_WORKERS,BAMBOO_CORS_ALLOW_ORIGINS.
No server needed — the same agent loop runs in-process. The bamboo_agent crate is an ergonomic facade over the engine: you supply a model and an instruction, .with_defaults_for_data_dir wires the eight runtime dependencies (storage, persistence, attachment reader, skills, metrics, config, provider, default tools) from ~/.bamboo, and then agent.run(&mut session, input) drives one turn (draining events internally) while agent.run_stream(session, input) streams AgentEvents back over an mpsc channel. Every call funnels into the engine's single canonical execution path — the facade never forks the loop. The ergonomic types live in bamboo_agent::agent (Agent, AgentBuilder, ExecuteRequestBuilder, plus re-exported AgentEvent, Session, …).
use bamboo_agent::agent::{Agent, Session};
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let home = dirs::home_dir().unwrap().join(".bamboo");
// Build the agent. One call assembles storage, persistence, skills,
// metrics, the provider (from ~/.bamboo/config.json), and the default
// built-in tool set — no manual dependency wiring.
let agent = Agent::builder()
.model("claude-sonnet-4-6")
.instruction("You are a helpful coding agent.")
.with_defaults_for_data_dir(home)
.await
.expect("wire runtime deps")
.build()
.expect("agent fully configured");
// Stream one turn: `run_stream` appends the user message, runs the loop on
// a background task, and hands back a receiver of AgentEvents.
let session = Session::new("demo-session", "claude-sonnet-4-6");
let mut rx = agent.run_stream(
session,
"List the files here and tell me what this project does.",
);
while let Some(event) = rx.recv().await {
println!("{event:?}"); // assistant text, tool calls, tool results, token usage, completion
}
Ok(())
}
Don't need the event stream?agent.run(&mut session, input).await?drives the turn to completion and leaves the answer as the last message onsession. For full control over per-request overrides (split fast/background/summarization models, skill selection, provider handles, …) drop one layer down tobamboo_engine'sExecuteRequest/ExecuteRequestBuilderandagent.execute(&mut session, req)— the same path the facade calls.
Add the facade crate as a dependency (path or git):
[dependencies]
bamboo-agent = { git = "https://github.com/bigduu/Bamboo-agent" }
tokio = { version = "1", features = ["full"] }
dirs = "5"
anyhow = "1"
Prefer not to manage these dependencies yourself? Runbamboo serveand use the HTTP API above — it drives the exact same loop. The full type reference lives indocs/guides/API.md.
REST prefix /api/v1: chat, execute/{session_id}, stream, sessions, skills, tools, tools/execute, models, commands, workflows, metrics/*, mcp, servers, stop/{session_id}, health. There are also provider-compatible endpoints: /openai/v1, /anthropic/v1, /gemini/v1beta, /v1/{chat/completions,responses,messages}.
bamboo-tools, 22 built-in, registered in executor.rs::register_builtin_tools): Bash, BashOutput, KillShell, Read, Write, Edit, NotebookEdit, Glob, Grep, GetFileInfo, Workspace, WebFetch, WebSearch, JsRepl, Task, Sleep, EnterPlanMode, ExitPlanMode, RequestPermissions, SessionNote, ConclusionWithOptions, and more. Tools come with usage guides injected at runtime, a permission/policy-aware execution path, and parallel execution support (parallel.rs).bamboo-server/src/workflow/loader.rs), exposed via /bamboo/workflows.bamboo-server/src/schedules/: manager, trigger_engine, session_factory, store).bamboo-engine/src/mcp/: manager, protocol, transports, tool_index), managing external tool servers via the /mcp, /servers routes.---
高质量的AI工作流框架,值得关注
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,竹子AI代理 在Agent工作流赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | Bamboo-agent |
| Topics | AIRust工作流 |
| GitHub | https://github.com/bigduu/Bamboo-agent |
| License | MIT |
| 语言 | Rust |
收录时间:2026-06-05 · 更新时间:2026-06-05 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端