Memseek
Record everything. Turn records into knowledge.
The declarative context engine for AI agents.
Define agent memory in versioned YAML — like Terraform for infrastructure.
Memseek learns from everything you record and gives your agents cited, current,
budget-cut context from a Postgres you run.
No retrieval pipeline. No opaque notebook. Every fact is dated, cited, and
traceable.
Try it locally · Read the docs · Explore the agent-memory example · Visit memseek.ai
History goes in. Current context comes out.
Your apps and agents leave behind an ever-growing history of messages, events,
documents, tool results, and outcomes. Memseek turns it into a maintained,
evidence-backed model of what the agent should know, then compiles a cited
context package for the exact task and token budget.
You define what to remember, how it changes, and what each task should see — in
versioned YAML. Memseek runs the entire lifecycle on your Postgres.
flowchart LR
A[Application evidence] --> B[Immutable records]
B --> C[Bounded derivations]
C --> D[Current facts, memories,<br/>reflections, procedures]
B --> E[Typed views]
D --> E
E --> F[Budgeted context artifact]
F --> G[Agent]
G --> H[Outcome or correction]
H --> B
RAG retrieves what looks relevant. Memseek maintains what is true now. Search
is one primitive. Memseek also derives and reconciles knowledge, supersedes
stale facts without erasing history, preserves the evidence behind every claim,
replays any point in time, and assembles agent-ready context to a declared token
budget.
The catalog is the contract
A catalog is a small, reviewable set of declarations. Each declaration grants a
specific capability; publishing a package does not expose anything else.
| Declaration | What you decide | What Memseek enforces |
|---|
| Collection | Which records may exist and their schema | Immutable events or versioned keyed state; invalid records are rejected |
| Processor | Which installed enrichment runs on arrival | Readiness gates before a record can enter search or derivations |
| Derivation | How evidence becomes reflections, profiles, or other maintained memory | The process sees only the data you permit, stays within its budget, and stores nothing unless the whole result passes its schema and evidence checks |
| View | A reusable search or query your application can call or expose to an agent | Every query stays within the data and result limits you allow, and each result is checked against the source of truth before it is returned |
| Artifact | How views and current state become agent context | Deterministic rendering, per-block token budgets, input manifests, and content hashes |
| Computer, Program, Agent, context policy | Which versioned code or reasoning loop may use a controlled filesystem | Exact resource closure, bounded capabilities, durable sessions, audited files/commands, typed results, and explicit writeback |
| MCP interface | The tools an agent may call | An explicit allowlist; a view, artifact, or route is never exposed automatically |
| Package | The exact versions that ship together | Whole-catalog validation and atomic publication per workspace |
The boundary is deliberate:
- Workspace YAML may select trusted, deployment-installed tasks. It cannot
upload executable code, issue SQL, access the database directly, or write
canonical records from inside a task.
- A derivation reads only its named, bounded sources. Its proposed records must
fit the destination schema and may cite only evidence visible to that run.
- Source evidence is never overwritten. A changed current fact creates a new
keyed successor, and review-required derivations stage proposals until an
explicit promotion.
- An MCP agent sees only the declared tools. The sole write tool,
ingest,
appends to one fixed collection and cannot set provenance, scores, status, or
tombstones.
- Your application still owns business permissions and actions. A Memseek
Computer is a controlled analysis workspace: it receives no database writer,
workspace credential, or ambient business authority.
These constraints make model behavior configurable without making it
unbounded. If a run exceeds its budget, invents a citation, races a newer value,
or fails schema validation, it commits nothing.
For durable filesystem-backed work, see
Computer resources, derivations, and durable agents
and the deterministic examples/computer_renewal_catalog fixture. Computers
are reusable resources selected per run; the entity remains the stable identity
and controlled front door.