The pillar guide

Event Sourcing for AI Agents

Agents forget. A chat window scrolls past, a process restarts, and the context is gone. Event sourcing fixes that at the storage layer: every accepted decision, observation, and message becomes an immutable event you can replay, inspect by timestamp, and use to rebuild current context.

Quick answers

What is event-sourced agent memory?
Event-sourced agent memory stores each accepted observation, decision, and state change as an ordered event. Current memory is derived from that history instead of overwriting the only copy.
Does AllSource memory survive a process restart?
AllSource Core recovers accepted event history from its write-ahead log and Parquet persistence after restart. Configurable fsync controls the durability and throughput trade-off.
Does AllSource require PostgreSQL?
No. AllSource Core is the database: WAL and Parquet persist events and event-sourced system metadata, while concurrent in-memory indexes and service caches are rebuilt from Core. Current AllSource services require no PostgreSQL instance.
Does AllSource replace a vector database?
Core supplies durable ordered history, replay, and provenance. AllSource Prime adds vector, graph, compressed-index, and temporal recall derived from Core events.
When should I not use event-sourced agent memory?
Use simpler current-state storage when you do not need replay, provenance, audit history, or point-in-time reconstruction. Event sourcing adds event modelling and projection work.

What event sourcing gives an agent

Instead of overwriting state, you append events. The current state is a projection you derive from the log. AllSource Core recovers accepted event history after restarts from a Rust write-ahead log (CRC32 checksums, configurable fsync) and columnar Parquet. In-memory projections measured 11.9μs p99 reads in the published reference benchmark; the separate ingestion benchmark measured 469K events/sec.

  • Durable memory — accepted event history is recovered from WAL and Parquet after restart; configurable fsync sets the write durability policy.
  • Full provenance — replay the log to reconstruct exactly what the agent knew and when.
  • Time-travel queries — ask for any entity’s state as_of a past moment, first-class.
  • MCP access — 55 tenant-scoped tools by default, rising to 73 when fleet and administrative controls are enabled.

How AllSource compares

Evaluating a managed memory layer? Here’s how a durable event store stacks up against the popular agent-memory tools.

Go deeper

Every AllSource deep-dive, grouped by theme. New posts surface here automatically.

Engineering

How the durable event store is built — WAL, Parquet, recall, and the Rust core.

Use Cases

Patterns for putting event-sourced memory to work in real agent systems.

Product

Product updates, releases, and the story behind AllSource and Prime.

Give your agents memory that survives

Start on the hosted Indie plan, or self-host the whole stack for free under Apache-2.0.