Architecture

One Rust engine. Five language bindings.

Agentmatic is a Pregel-style graph runtime written in Rust, with thin native bindings for every supported SDK. Same engine, same correctness guarantees, same performance.

Agentmatic architecture: 5 SDKs over one Rust engine over sub-engines and integrations Your application Python TypeScript Rust Go Java Agentmatic Core (Rust) Pregel · StateGraph · State machine · Channels Checkpointing Resilience (CB · Retry · DLQ) Distributed runtime OpenAI · Anthropic · Gemini · Bedrock · Ollama · MCP · LangChain bridge · Qdrant · Postgres · S3
One engine. Five SDKs. Production primitives in the box.

Layers

  1. SDK layer. Per-language wrappers: agentmatic (PyO3 wheel), @agentmatic/core (napi-rs), agentmatic Rust crate, github.com/neul-labs/agentmatic/sdks/go (CGO), com.agentmatic:agentmatic-core (JNI).
  2. Core (Rust). agentmatic-core ships the Pregel runtime + StateGraph + state machine. Lock-free scheduler, SPSC channels, zero-copy Arc<Frame> state diffs.
  3. Sub-engines. Checkpointing (Memory / SQLite / Postgres / Redis / S3), Resilience (CB / Retry / DLQ), Distributed runtime (Coordinator/Worker over gRPC).
  4. Integrations. LLM providers, MCP client, LangChain bridge, vector stores, OpenTelemetry tracing.

Why Pregel

Pregel is the bulk-synchronous parallel model behind Google's graph systems. It maps cleanly to LangGraph semantics: each step is a superstep, channels are typed reducers, and the scheduler decides what runs in parallel within a step. Crucially, every superstep is a checkpoint boundary — which is what makes time-travel and HITL cheap.

Crates

crates/
├── agentmatic-core/        # Pregel runtime engine
├── agentmatic-agent/       # Agent builder + prebuilt patterns
├── agentmatic-llm/         # LLM provider abstraction
├── agentmatic-tools/       # Tool framework + MCP client
├── agentmatic-memory/      # Conversation memory
├── agentmatic-vectorstore/ # Vector store abstraction
├── agentmatic-types/       # Shared types
├── agentmatic-ffi/         # C ABI for Go/Java bindings
└── agentmatic/             # Umbrella crate

FFI strategy

Observability

OpenTelemetry traces wired into the runtime: every node execution emits a span with tool calls, token counts, and state diffs. RUST_LOG=agentmatic=info dumps structured JSON logs. as_langchain_runnable() wraps the agent so LangSmith traces work unchanged.

Ship your next agent in minutes, not weeks.

MIT licensed. Drop-in for LangGraph. Native SDKs in 5 languages. Battle-tested resilience primitives in the box.