Cairn

•
2
•

Empower AI agents with a robust, temporal knowledge store and wayfinding capabilities using a lightweight, dependency-free SQLite file.

Cairn introduces a novel concept of 'agent wayfinding,' providing AI agents with the ability to recall past knowledge and retrace their learning paths. Unlike traditional memory systems that are often locked into proprietary platforms or require heavy dependencies like Neo4j or Postgres, Cairn offers a completely open-source, self-contained solution. It operates as a single binary with a SQLite file, eliminating vendor lock-in and enabling federated synchronization across multiple agents. Cairn's unique approach to temporal knowledge storage, non-LLM-burning extraction, first-class forgetting, and semantic querying positions it as a foundational tool for building truly autonomous and intelligent agents.

Características Principales

011 GitHub stars
02Bi-temporal tracking of facts without a graph database, storing validity windows in SQLite
03Efficient fact extraction via pattern-based post-turn hooks, avoiding additional LLM calls
04Federated peer-to-peer sync between agents using vector clocks for deterministic conflict resolution
05First-class forgetting mechanism with confidence, access frequency, and age-based decay
06Semantic querying by meaning, providing subgraphs without complex query languages

Casos de Uso

01Integrating a lightweight knowledge store into any MCP-compatible agent system for enhanced wayfinding and recall
02Auditing and querying an agent's historical knowledge at any point in time
03Providing persistent and retrievable memory for AI agents across different platforms (e.g., phone and laptop agents)