Skip to main content

AI Agent framework on LangChain/LangGraph — multi-backend filesystem, sub-agent scheduling, conversation summarization, security review, and skills system out of the box.

Project description

Mambo Agents

AI Agent framework built on LangChain/LangGraph — multi-backend filesystem, sub-agent parallel scheduling, conversation summarization, security review, skills system, and more, out of the box.
基于 LangChain/LangGraph 的 AI Agent 框架 — 提供多后端文件系统、子代理并行调度、对话摘要、安全审查、技能系统等开箱即用的能力。

📖 English | 中文

This project draws architectural inspiration from deepagents, with independent refactoring and extensions. See comparison with deepagents.

Key Features

  • Multi-backend FilesystemStateBackend (in-memory), LocalBackend (local disk), SshBackend (remote SSH), HybridWorkspaceBackend (hybrid routing), unified through BackendProtocol
  • Sub-agent System — sync/async sub-agents with parallel scheduling, streaming events, and isolated context windows
  • Conversation Summarization — automatic long-history compaction with chained summaries and optional backend persistence
  • Task PlanningMamboPlanMiddleware provides structured TODO lists, deeply integrated with the summarization system
  • AI Security Review — pre-approve tool calls with a cheap model, escalating only high-risk operations to human review
  • Skills System — progressive disclosure of skills, with multi-source overlay support
  • Memory System — persistent context loaded from AGENTS.md, with AI self-learning write-back

Quick Start

pip install mambo-agents
from mambo_agents import create_mambo_agent, StateBackend
from langchain_core.messages import HumanMessage

agent = create_mambo_agent(
    "gpt-4o",
    backend=StateBackend(),
    include_general_purpose=True,
)
result = agent.invoke({"messages": [HumanMessage("Create a hello.py file")]})

Architecture

┌──────────────────────────────────────────────────────────┐
│                    create_mambo_agent()                   │
│                                                          │
│  ┌─────────────┐  ┌──────────┐  ┌────────────────────┐  │
│  │   Backend   │  │  Model   │  │    Middleware Stack │  │
│  │  Protocol   │  │ (LLM)    │  │                    │  │
│  │             │  │          │  │ BackendTools       │  │
│  │ State       │  │          │  │ Skills             │  │
│  │ Local       │  │          │  │ Memory             │  │
│  │ SSH         │  │          │  │ Summarization      │  │
│  │ TempWs      │  │          │  │ Planning           │  │
│  └─────────────┘  └──────────┘  │ SubAgents          │  │
│                                 │ AsyncSubAgents     │  │
│                                 │ SecurityReview     │  │
│                                 │ Patch + Reorder    │  │
│                                 └────────────────────┘  │
│                                                          │
│  ┌─────────────────────────────────────────────────────┐ │
│  │              LangGraph CompiledGraph                │ │
│  │  invoke() · astream() · astream_events()            │ │
│  └─────────────────────────────────────────────────────┘ │
└──────────────────────────────────────────────────────────┘

Docs

Related Projects

  • MamboChat — Full-featured Web UI built on Mambo Agents

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mambo_agents-0.2.0a1.tar.gz (358.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mambo_agents-0.2.0a1-py3-none-any.whl (150.0 kB view details)

Uploaded Python 3

File details

Details for the file mambo_agents-0.2.0a1.tar.gz.

File metadata

  • Download URL: mambo_agents-0.2.0a1.tar.gz
  • Upload date:
  • Size: 358.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for mambo_agents-0.2.0a1.tar.gz
Algorithm Hash digest
SHA256 242decc0c3547766cabc71d9fcb60abd520ceb881b313e3bda7bc5b37a0bbf63
MD5 c1a8d74b79e48c27f5a441a97b71afe4
BLAKE2b-256 4a8c4b2584ef893b0310b475c297307e1fef225a9c282e6ba941ac1521184ed1

See more details on using hashes here.

File details

Details for the file mambo_agents-0.2.0a1-py3-none-any.whl.

File metadata

  • Download URL: mambo_agents-0.2.0a1-py3-none-any.whl
  • Upload date:
  • Size: 150.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for mambo_agents-0.2.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 973da3f1929a3368427d31f24d456e608a7b71df9c4a0be2df01beae41a2b7f6
MD5 1315193c0abe3993cd7b60bffce0b2be
BLAKE2b-256 62db502e9e14f5debbe6fe9571054fafb16070760a872c134445207c09568dbf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page