████
░░███
████████ ████████ ██████ ░███ ██████ ███████ █████ ████ ██████
░░███░░███░░███░░███ ███░░███ ░███ ███░░███ ███░░███░░███ ░███ ███░░███
░███ ░███ ░███ ░░░ ░███ ░███ ░███ ░███ ░███░███ ░███ ░███ ░███ ░███████
░███ ░███ ░███ ░███ ░███ ░███ ░███ ░███░███ ░███ ░███ ░███ ░███░░░
░███████ █████ ░░██████ █████░░██████ ░░███████ ░░████████░░██████
░███░░░ ░░░░░ ░░░░░░ ░░░░░ ░░░░░░ ░░░░░███ ░░░░░░░░ ░░░░░░
░███ ███ ░███
█████ ░░██████
░░░░░ ░░░░░░
Dual-layer memory. First-principles execution. Zero compromise.
Long-term persistence for AI agents — file-based storage with compression ladders,
visibility boundaries, and built-in safety frameworks.
bun add @aegntic/prologue
A durable memory system that survives context window resets, session restarts, and process crashes. Purpose-built architecture — not a vector database wrapper.
File-based persistence with optional Graphiti knowledge graph.
Automates the agent lifecycle — run tasks, capture learnings.
First Principles Execution — 4-phase gate enforcement.
Memories move up through four compression levels as confidence grows.
Raw notes & ephemera.
Focused task context.
Cross-project awareness.
Durable truths.
import { MemoryMatrix } from "prologue"; // Create a memory store const memory = await MemoryMatrix.create("/path/to/project"); // Store a memory const cell = await memory.store("Auth uses JWT RS256", { visibility: "private", compression: "working", tags: ["auth", "jwt"], }); // Query memories const results = await memory.query("auth token"); console.log(results[0].cell.body.content);
| Method | Returns | Description |
|---|---|---|
MemoryMatrix.create(dir) |
Promise<MemoryMatrix> |
Static factory, initializes directory |
store(content, opts?) |
Promise<MemoryCell> |
Store a new memory |
query(queryText, opts?) |
Promise<MemoryResult[]> |
Search memories (exact match + tags) |
promote(id, targetLevel) |
Promise<MemoryCell> |
Move memory up compression ladder |
envelopeScan(vis?) |
Promise<MemoryEnvelope[]> |
List envelopes respecting visibility |
delete(memoryId) |
Promise<void> |
Delete a memory |
| Method | Returns | Description |
|---|---|---|
wrapPrompt(task, opts?) |
string |
Inject phase instructions around task |
validate(output) |
Violation[] |
Post-hoc output validation (deterministic) |
antiDishonesty(output) |
DishonestyCheck[] |
6-rule anti-dishonesty checks, zero LLM |
catastrophicFailure(report) |
RecoveryStep[] |
5-step failure recovery protocol |
| Method | Returns | Description |
|---|---|---|
classifyFailure(error) |
FailureClassification |
Classify into 5 failure types |
isCircularFix(edit, prev) |
boolean |
Jaccard similarity > 0.3 detection |
getRecoveryAction(class, attempt, circular) |
RecoveryAction |
Graduated: retry, analyze, escalate |
isStuck(id, attempts) |
boolean |
True after 3 attempts on same failure |