#artificial-intelligence #ai-agent #llm

bin+lib bamboo-agent

A fully self-contained AI agent backend framework with built-in web services, multi-LLM provider support, and comprehensive tool execution

39 releases (20 stable)

new 2026.4.12 Apr 12, 2026
2026.4.5 Apr 5, 2026
2026.3.111 Mar 30, 2026
0.3.2 Feb 28, 2026
0.1.2 Feb 24, 2026

#592 in Asynchronous

MIT license

8MB
137K SLoC

Bamboo Agent 🎋

Crates.io Documentation License CI

Bamboo agent runtime overview

Bamboo is a local-first Rust runtime for agent systems.
It provides the execution core behind products that need structured context, tool orchestration, memory, task tracking, scheduling, MCP extensibility, and HTTP/SSE integration.

Positioning

Bamboo is not primarily the end-user product layer. It is the runtime and backend foundation behind products like Bodhi and other agent-enabled applications.

Use Bamboo when you need a system that is:

  • backend-first rather than UI-first
  • embeddable or serviceable rather than tied to one interface
  • structured and governable rather than prompt-only
  • capable of longer-running work with context, memory, and task state
  • fit for integration into desktop, web, or internal tools

What Bamboo provides

Structured execution runtime

  • multi-step agent loop
  • built-in task list and execution state
  • approval and clarification checkpoints
  • final confirmation / handoff flow

Tooling foundation

  • file, search, edit, shell, and workspace tools
  • tool usage guidance injected into runtime context
  • policy-aware and approval-aware execution paths
  • safe parallel execution support where applicable

Context and memory system

  • prompt section layering
  • session-scoped note memory
  • Dream notebook and durable memory support
  • long-session compaction and oversized-output handling

Integration surface

  • HTTP APIs
  • Server-Sent Events streaming
  • standalone runtime mode
  • embeddable Rust integration path
  • MCP, skills, workflows, and schedules

Why teams use Bamboo

1. Clear runtime ownership

Bamboo gives you an execution core you can understand, host, extend, and evolve.

2. Better structure for serious agent behavior

Instead of relying on one growing transcript, Bamboo organizes context, tasks, tools, memory, and runtime state more explicitly.

3. Safer execution boundaries

Approvals, explicit questions, task state, and guided tool usage make the runtime more governable.

4. Better fit for product integration

Bamboo can sit behind a desktop app, a web client, or an internal product surface without being tightly coupled to one UX.

Compared with common agent stacks

Common pattern Bamboo approach
Product surface and runtime tightly coupled Backend-first runtime boundary
Prompt-heavy orchestration Runtime-level tools, tasks, memory, and scheduling
Hard to reuse across multiple clients Embeddable / serviceable integration model
Long work collapses into transcript growth More structured context and memory handling
Tool behavior is present but lightly governed Guide + policy + approval-aware execution model

Quick start

Install

cargo install bamboo-agent

Or build from source:

git clone https://github.com/bigduu/Bamboo-agent.git
cd Bamboo-agent
cargo build --release
cargo install --path .

Run the server

bamboo serve

Default local paths:

  • REST API: http://localhost:9562/api/v1
  • Config path: ${HOME}/.bamboo/config.json
  • Data dir: ${HOME}/.bamboo/

Example configuration

{
  "provider": "anthropic",
  "providers": {
    "anthropic": {
      "api_key": "sk-ant-...",
      "model": "claude-3-5-sonnet-20241022"
    }
  }
}

Integration modes

Run Bamboo as a backend

Use Bamboo behind a web app, desktop product, or internal agent platform.

Embed Bamboo into your app

Use Bamboo as a Rust-native runtime inside your own application.

Extend Bamboo

Add skills, MCP integrations, workflows, and schedules on top of the runtime core.

Documentation

When Bamboo is the right choice

Choose Bamboo if you want a runtime that is:

  • more structured than a single CLI loop
  • more reusable than a one-off local workflow
  • more governable than pure prompt orchestration
  • better suited to power products behind the scenes

If Bodhi is the AI product surface, Bamboo is the execution engine underneath.

License

MIT

Dependencies

~63–105MB
~1.5M SLoC