Skip to content

Home

Connect all the agents!

AgentPool Architecture

Key Features

🔌 ACP Integration

First-class support for the Agent Client Protocol (ACP):

  • Integrate directly into IDEs like Zed, VS Code, and others
  • Wrap external agents (Claude Code, Goose, Codex, fast-agent) as nodes
  • Unified node abstraction - ACP agents work like native agents
  • Compose ACP agents into teams with native agents

AgentPool ACP streaming flow

📝 Easy Agent Configuration

AgentPool excels at static YAML-based agent configuration:

  • Define agents with extreme detail in pure YAML (Pydantic-backed)
  • Expansive JSON schema for IDE autocompletion and validation, backed by an extremely detailed schema.
  • Multi-Agent setups with native as well as remote (ACP / AGUI) agents

🧩 Unified Node Architecture

Everything is a MessageNode - enabling seamless composition:

  • Native PydanticAI agents with a large set of tools and toolsets
  • Claude Code, Codex, OpenCode V2, Antigravity and T3 Code agents
  • ACP and AG-UI agents (local or remote)
  • Teams (parallel and sequential)
  • All nodes share the same interface: run, stream, steer, delegate, serve

🌐 One Pool, Many Protocols

The same pool is served to IDEs and tools: ACP (Zed, Toad), OpenCode (TUI / desktop), MCP (Claude Code, Cursor, other agents), AG-UI, the OpenAI API and the Vercel AI protocol.

💬 Sessions

Each conversation is a session: one agent serves many at once, delegation runs in child sessions, and sessions are stored, resumed and forked.

Dependencies

Name Summary Marker
aclientp Agent Client Protocol (ACP) for Python: typed v1 and draft v2, checked against the upstream schema
alembic A database migration tool for SQLAlchemy.
anyenv Compatibility layer for some basic operations to allow painless operation in PyOdide and Python pre-releases
bashkit A sandboxed bash interpreter for AI agents
clawd-code-sdk Python SDK for Claude Code
codexed Async, typed Python client for the OpenAI Codex app-server JSON-RPC protocol
docler Abstractions & Tools for OCR / document processing
docstring_parser Parse Python docstrings in reST, Google and Numpydoc format
evented Event emitters.
exxec Unified async API to run code and commands locally, in Docker, over SSH, or in cloud sandboxes
fastapi FastAPI framework, high performance, easy to learn, fast to code, ready for production
fastmcp-slim The dependency-slim FastMCP package.
fsspec File-system specification
httpx2 The next generation HTTP client.
Jinja2 A very fast and expressive template engine.
jinjarope Jinja2 toolkit: enhanced Environment, extra filters / tests, fsspec-based loaders and TOML JinjaFiles.
keyring Store and access your passwords safely.
llmling-models Extra pydantic-ai models, providers and toolsets (human-in-the-loop, model routing, Claude Code, code mode) for AgentPool
logfire-sdk The best Python observability tool! 🪵🔥
mcp Model Context Protocol SDK
pillow Python Imaging Library (fork)
platformdirs A small Python package for determining appropriate platform-specific dirs, e.g. a user data dir.
promptantic Terminal forms for JSON Schemas and Python types (Textual or prompt-toolkit)
psygnal Fast python callback/event system modeled after Qt Signals
pydantic Data validation using Python type hints
pydantic-ai-slim AI Agent Framework, the Pydantic way, slim package
pydantic-monty Monty, the Python sandbox: bindings plus the worker binary
pydocket A distributed background task system for Python functions
pyt3client Thin, typed Python client for T3 Code environments (via their MCP endpoint)
python-dotenv Read key-value pairs from a .env file and set them as environment variables
rich Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal
ripgrep-rs A Python wrapper for ripgrep
schemez Pydantic toolkit for function schemas, JSON Schema to model conversion, tool code generation and config models
searchly Search tools for agents
slashed Async slash commands with typed arguments and autocompletion for Textual and prompt_toolkit
SQLAlchemy Database Abstraction Library
sqlmodel SQLModel, SQL databases in Python, designed for simplicity, compatibility, and robustness.
structlog Structured Logging for Python
sublime-search
tokonomics Calculate LLM usage costs from token counts and discover models and pricing across providers
toprompt Convert python objects to LLM-friendly descriptions
typer Typer, build great CLIs. Easy to code. Based on Python type hints.
upathtools Async helpers, typed base classes and many filesystem implementations for fsspec and universal-pathlib
uvicorn The lightning-fast ASGI server.
watchfiles Simple, modern and high performance file watching and code reload in python.
websockets An implementation of the WebSocket Protocol (RFC 6455 & 7692)
yamling Enhanced YAML loading and dumping.
fasta2a Convert an AI Agent into a A2A server! ✨ extra == "a2a"
starlette The little ASGI library that shines. extra == "a2a"
ag-ui-protocol extra == "ag-ui"
google-antigravity Google Antigravity SDK for building AI agents extra == "antigravity"
python-telegram-bot We have made you a wrapper you can't refuse extra == "bot"
slack_sdk The Slack API Platform SDK for Python extra == "bot"
slackify_markdown Convert markdown to Slack-compatible formatting extra == "bot"
croniter croniter provides iteration for datetime object with cron like format extra == "bot"
braintrust SDK for integrating Braintrust extra == "braintrust"
autoevals Universal library for evaluating AI models extra == "braintrust"
copykitten A robust, dependency-free way to use the system clipboard in Python. extra == "clipboard"
rustworkx A High-Performance Graph Library for Python extra == "coding"
grep-ast A tool to grep through the AST of a source file extra == "coding"
tree-sitter-language-pack Pre-compiled tree-sitter grammars for 371 programming languages extra == "coding"
ast-grep-py Structural Search and Rewrite code at large scale using precise AST pattern. extra == "coding"
tree-sitter Python bindings to the Tree-sitter parsing library extra == "coding"
tree-sitter-python Python grammar for tree-sitter extra == "coding"
tree-sitter-c C grammar for tree-sitter extra == "coding"
tree-sitter-javascript JavaScript grammar for tree-sitter extra == "coding"
tree-sitter-typescript TypeScript and TSX grammars for tree-sitter extra == "coding"
tree-sitter-cpp C++ grammar for tree-sitter extra == "coding"
tree-sitter-rust Rust grammar for tree-sitter extra == "coding"
tree-sitter-go Go grammar for tree-sitter extra == "coding"
tree-sitter-json JSON grammar for tree-sitter extra == "coding"
tree-sitter-yaml YAML grammar for tree-sitter extra == "coding"
composio SDK for integrating Composio with your applications. extra == "composio"
langfuse Langfuse Python SDK - LLM observability/tracing, datasets, experiments, LLM-as-a-judge evaluation, and prompt management extra == "langfuse"
markitdown Utility tool for converting various files to Markdown python_full_version < "3.15" and extra == "markitdown"
fastembed Fast, light, accurate library built for retrieval embedding generation python_full_version < "3.15" and extra == "mcp-discovery"
lancedb lancedb extra == "mcp-discovery"
pyarrow Python library for Apache Arrow extra == "mcp-discovery"
mcpx-py An mcp.run client for Python extra == "mcp-run"
fastmcp-tasks Background task execution for FastMCP servers via the io.modelcontextprotocol/tasks extension (SEP-2663). extra == "mcp-tasks"
apprise Push Notifications that work with just about every platform! extra == "notifications"
promptlayer PromptLayer is a platform for prompt engineering and tracks your LLM requests. extra == "promptlayer"
tiktoken tiktoken is a fast BPE tokeniser for use with OpenAI's models extra == "tiktoken"
anyvoice Common interface for streaming tts providers extra == "tts"
zstandard Zstandard bindings for Python extra == "zed"

License

MIT License - see LICENSE for details.

Quick Start

Basic Agent Configuration

# agents.yml
agents:
  assistant:
    display_name: "Technical Assistant"
    model: openai:gpt-5-mini
    system_prompt: You are a helpful technical assistant.
    tools:
      - type: file_access

Python Usage

from agentpool import AgentPool

async def main():
    async with AgentPool("agents.yml") as pool:
        agent = pool.get_agent("assistant")
        response = await agent.run("What is Python?")
        print(response.content)

if __name__ == "__main__":
    import anyio
    anyio.run(main)