Project Memory That Stops Your AIFrom Repeating Mistakes.
Your AI forgets settled decisions between sessions and wastes tokens re-reading files. Engrams saves your team's rules locally and delivers the right playbook for a file—before a single line of code is written.
graph-ontology-and-rebuild12 decisions · 23 linked itemsThe knowledge graph validates relationship algebra at link-write time and derives analytics, inverse edges, and code-node enrichment deterministically in memory during rebuild
What Is a Schema (Playbook)?
Senior engineers don't re-read the entire codebase before editing a file—they recall a mental model. In Engrams, a Schema is the top of a three-layer pyramid: one plain-English playbook backed by linked decisions and checks, anchored directly to your repository folders and files.
Vector Search & Notes (Passive)
Stores isolated notes, but your AI doesn't know when a rule applies—so it either searches blindly or ignores past decisions.
Giant Markdown Rules (Static)
Dumping hundreds of lines of static rules into every chat wastes tokens on unrelated tasks and weakens model focus.
Engrams Playbooks (Active & Local)
Matches the exact folder or file your AI is about to touch and delivers only the relevant playbook, contracts, and checks.
Layer 3: Active Playbook (Schema)
● guided 67 sessionsperformance-rulesWhenever the AI edits Rust code in src/ or src/ops/
Layer 2: Linked Decisions & Checks
6 bundled itemsLayer 1: Repository Code Anchors
real source pathssrc/ops/schemas/retrieval.rssrc/ops/advise.rssrc/ops/check.rsWithout Engrams vs. With Engrams
Click any file below to compare what a cold AI guesses against what engrams advise hands it in ~1ms before editing.
Reads 11 graph & link files cold to rediscover invariants and risks breaking the empty-window guard.
- Extra files read
- 11+ source files
- Prompt tokens
- ~18,400 tokens
- Outcome
- Guesses architecture from scratch
engrams advise src/ops/graph/rebuild.rsValidate relationship rules at link-write time in link.rs; compute inverse edges and rankings in memory during rebuild while borrowing SQL parameters.
- Extra files read
- 0 extra files
- Prompt tokens
- ~1,979 tokens
- Outcome
- 0 missed rules
What exactly fired? (⬡ graph-ontology-and-rebuild)
- Playbook #3: graph-ontology-and-rebuild (12 linked decisions)
- Playbook #1: performance-rules (4 zero-allocation Rust rules)
- Pre-Commit Gate: Borrow SQL params + move lookup maps (check --staged)
Measured live on engrams-cli (7,916 bytes from engrams advise src/ops/graph/rebuild.rs)
Zero Manual Rule-Writing: How Playbooks Emerge
You never maintain a brittle rules file by hand. Playbooks grow naturally out of your everyday coding sessions in four steps:
- STEP 1 · DURING NORMAL WORK
Log Decisions as You Build
You never stop to hand-write a playbook file. As your AI writes features, it logs key design choices, function contracts, and file anchors in local SQLite.
Why it matters: Each decision takes <5ms to store locally and carries the exact source file paths it governs. - STEP 2 · AT SESSION CLOSE
Engrams Spots Recurring Threads
When you wrap up a task, Engrams notices when 3+ decisions share topics across at least two files or days—and asks your AI targeted questions to synthesize them.
Why it matters: Instead of auto-creating noisy rules, Engrams hands your AI the related notes in reading order plus a ready-to-fill proposal template. - STEP 3 · HUMAN APPROVAL
Approve the Playbook in Plain English
Your AI drafts a one-sentence claim, a clear 'When X: do Y' rule, and directory triggers—then asks you to confirm, edit, or reject it in plain words.
Why it matters: Nothing becomes an active playbook without human confirmation. Once confirmed, all 12 underlying decisions stay linked for auditability. - STEP 4 · EVERY FUTURE SESSION
Pre-Edit Advice Fires in 1ms
Weeks later, a fresh AI session touches a file in that folder—even a brand-new file. Engrams delivers the playbook before a single line of code is written.
Why it matters: 0 exploratory file reads needed: ~1,980 tokens (2 playbooks + all pattern gates) replace ~18,400 tokens of hunting across 11 source files.
Outdated Decisions Retire Automatically
Requirements change. Flat markdown docs and vector stores keep feeding abandoned experiments into your AI's prompt. Engrams links new decisions with supersedes so retired rules step aside cleanly.
Give your AI project memory in 60 seconds.
Single local Rust binary · Embedded SQLite · 0 MB idle memory · ~1ms pre-edit checks.
curl -fsSL https://engrams.sh/install | bash