Documentation
AgentLane is a Python runtime for agents that send messages, receive events, and keep state across tasks. Use these guides to build an agent app, extend the harness, or run agents across workers.
Start here
To install AgentLane and run your first example, follow the project quickstart.
Choose a guide for the part of your app that you need to build:
- Local agent loops: Start with Default agents.
- Message-driven services: Start with Engine and execution.
- Distributed agents: Start with Distributed runtime usage.
- TypeScript apps: Start with the Process bridge.
For runnable applications, see the example index.
Architecture
The application-facing layers have the following responsibilities:
- Runtime and messaging: Agent addresses, message routing, delivery, and execution.
- Transport: Payload serialization across process boundaries.
- Models: Prompts, tools, schemas, and model calls.
- Harness: Agent loops, handoffs, and resumable runs.
- Tracing: Execution records across all layers.
Use a local runtime for one process. Use a distributed runtime when you need cross-worker routing or worker placement. Both use the same public messaging model.
Contents
Use the following references to explore each part of AgentLane.
Runtime
Create local runtimes and distribute work across hosts:
Messaging
Route messages and track delivery:
Transport
Serialize payloads for transport:
Models
Configure model calls and prompts:
Harness
Build agent loops and extend their behavior:
- Architecture
- Tasks
- Agents
- Default agents
- Shims
- Compaction
- Tools
- Skills
- Markdown agent definitions
- Runner
- Run event serialization
- Distributed agents
- File I/O interfaces
Sandboxes
Run environment tools in a sandbox managed by your app:
Process bridge
Connect a TypeScript app to a Python backend:
Tracing
Inspect execution with tracing:
Project
Read project history and contribution guidance: