AI agents forget everything.
CALIBER fixes that.

A Postgres-native memory framework for AI agents. Hierarchical context, multi-agent coordination, zero hard-coded values.

Meta
Working
Ephemeral
Semantic

The Problem with AI Memory

Current AI agent frameworks treat memory as an afterthought. The result? Unreliable, expensive, and impossible to debug.

Context Amnesia

Agents lose context between sessions, forgetting everything they learned.

Hallucination

Without grounded facts, agents make up information that sounds plausible but is wrong.

Multi-Agent Chaos

40-80% of multi-agent systems fail due to coordination problems and race conditions.

Token Waste

Stuffing entire conversation history into context burns tokens and money.

Hard-Coded Everything

Most AI frameworks bake in assumptions that don't fit your use case.

No Audit Trail

When things go wrong, there's no way to trace what the agent was thinking.

CALIBER Fixes This

A Postgres-native memory framework built from first principles. No magic, no hidden defaults, just clean architecture.

8
Crates
Modular architecture
165
Tests
Comprehensive coverage
57
Property Tests
Formal verification
0
Hard-coded Defaults
Everything configurable
Solves: Context Amnesia

Hierarchical Memory

Trajectory → Scope → Artifact → Note. Structured memory that persists across sessions.

memory.rs
="token-keyword">class</span>=="token-keyword">class</span>="token-string">"token-comment"</span>>// ="token-type">Memory</span> hierarchy</span>
="token-type">Trajectory</span> (task container)
ā”œā”€ā”€ ="token-type">Scope</span> (context partition)
│   ā”œā”€ā”€ ="token-type">Turn</span> (ephemeral buffer)
│   └── ="token-type">Artifact</span> (preserved output)
└── ="token-type">Note</span> (cross-trajectory knowledge)
Solves: Hallucination

PCP Grounding

Every fact backed by stored artifacts. Validation, checkpoints, contradiction detection.

validation.rs
="token-keyword">class</span>=="token-keyword">class</span>="token-string">"token-comment"</span>>// ="token-type">PCP</span> validation</span>
="token-keyword">let</span> checkpoint = pcp::="token-function">create_checkpoint</span>(
    trajectory_id,
    scope_id,
    &artifacts
)?;

="token-keyword">class</span>=="token-keyword">class</span>="token-string">"token-comment"</span>>// ="token-type">Verify</span> grounding</span>
pcp::="token-function">validate_claim</span>(&claim, &checkpoint)?;
Solves: Multi-Agent Chaos

Typed Coordination

Locks, messages, delegation, handoffs. Built-in primitives for multi-agent systems.

agents.rs
="token-keyword">class</span>=="token-keyword">class</span>="token-string">"token-comment"</span>>// ="token-type">Agent</span> coordination</span>
="token-keyword">let</span> lock = agents::="token-function">acquire_lock</span>(
    resource_id,
    agent_id,
    ="token-type">LockMode</span>::="token-type">Exclusive</span>
)?;

agents::="token-function">delegate_task</span>(
    from_agent,
    to_agent,
    &task
)?;

ECS Architecture

Entity-Component-System pattern for maximum composability. Each crate has a single responsibility.

← SYSTEMS
← COMPONENTS
← ENTITIES
Systems
Components
Entities
ENTITIES
caliber-core
Data structures only
COMPONENT
caliber-storage
Storage trait + pgrx
COMPONENT
caliber-context
Context assembly logic
COMPONENT
caliber-pcp
Validation, checkpoints, recovery
COMPONENT
caliber-llm
VAL (Vector Abstraction Layer)
COMPONENT
caliber-agents
Multi-agent coordination
SYSTEM
caliber-dsl
DSL parser → CaliberConfig
SYSTEM
caliber-pg
pgrx extension (runtime)

Direct Postgres Access

Bypasses SQL parsing overhead via pgrx. Memory operations happen at native speed.

VAL: Vector Abstraction

Provider-agnostic embeddings. Any dimension, any provider. No vendor lock-in.

Custom DSL

Compiles to CaliberConfig, not SQL. Type-safe configuration with zero runtime overhead.

Simple, Transparent Pricing

Pay only for what you use. No hidden fees, no surprises.

CALIBER Cloud

Managed
Storage (per GB)
$1/mo
$10/year (2 months free)
Hot Cache (per MB)
$0.15/mo
Agents unlimited
14-day free trial
No credit card required
Start Free Trial

Self-Hosted

Open Source
free
Forever. Run on your own infrastructure.
  • Full source code access
  • All features included
  • Community support
  • AGPL-3.0 license
View on GitHub

CALIBER is open source under the AGPL-3.0 license. Self-hosting is always free.