- Query
- “prepare the v0.20 release”
- Match
- 29/96
- Packed
- 12
- Tokens
- 2,567/4,000
- Hash
- 7a30dab1…a550
Context pack
Toy · ee's rule## rules
- 5Run cargo fmt --check before tagging
- 7Exit 124 on the lane is a timeout, not a red
- + 3 more
- + 2 more
## decisions
- 1Releases are cut with dsr, not hosted CI
- 11Verification runs on the pinned lane
- + 2 more
- + 1 more
## failures
- 3Tag pushed before CHANGELOG broke the installer checksum
- 6Never re-tag a published version
- + 1 more
## evidence
- 2Session 41: v0.19 sums re-signed with minisign
- + 1 more
- + 1 more
## artifacts
- 4scripts/release_binary_probe.sh
every item: provenance · scores · why
Memory for AI agents · Rust · local-first
Long-term memory for
coding agents.
Eidetic Engine (ee) records what your agents learn as they work. At the start of each task it hands the agent the part of that record that bears on it, cut to a token budget, with the source of every line.
- one Rust binary
- no cloud or API key
- local store
- versioned JSON
Pick a task
12of 29 matching memories packed2,567 / 4,000 tokens
4 rules3 decisions2 failures2 evidence1 artifacts
Pick a task or drag the budget slider. The memories that match the task light up, and ee's selection rule packs the most relevant, least redundant ones that fit the budget and the balanced profile's section quotas. The 96 memories are made up for this page. The selection rule and its weights come from src/pack/mod.rs.
- Tests
- 20,700+#[test] functions across src/ and tests/, with 46 property suites and 27 fuzz targets.
- Failure modes
- 630Each fixture triggers a degraded state and records the code it reports, and the repair where there is one.
- JSON contracts
- 280Versioned schemas for the JSON that ee's commands return.
- Cloud APIs needed
- 0Embeddings and storage are local. The network is needed once, to download the model.
Counted in the repository at c05913f2a, 2026-11-24.
The short version
What ee does for an agent.
A coding agent starts every session with an empty context window, so whatever earlier sessions learned is gone unless someone wrote it down.
- 1
Record
ee remember · ee outcomeAgents add lessons as they work and say which ones helped. Recorded sessions can be imported.
- 2
Keep
.ee/ee.dbA local database in the workspace, beside a user-global store under ~/.local/share/ee.
- 3
Pack
ee pack "<task>"The memories that match the task, cut to a token budget, each with its source, score and trust level.
| Point | CLAUDE.md | ee |
|---|---|---|
| What a session loads | the whole file | only what bears on the task |
| As lessons pile up | grows, and costs more | stays inside your budget |
| A line that stopped helping | nothing marks it | the decay pass demotes, then retires it |
| Each line says | nothing about itself | its source and score |
Every session starts from zero.
A new agent session re-learns the project's conventions, re-reads what an earlier session already read, and repeats failures an earlier one already hit, because nothing those sessions learned was kept where it could be found.
Without memory, session six repeats session two's mistake.
The same repository, with and without a memory.
- Useful work
- Re-discovering conventions
- Re-reading the same files
- Hitting a trap
- ee pack · 4k-token budget
- Recalled · preflight warned
Sess
01
No memory
Hits a trap: the migration test needs a fresh DB
With ee
Hits it too, then records it as a rule
Sess
02
No memory
Hits the migration trap again
With ee
The rule is in the pack, so it avoids the trap
Sess
03
No memory
Hits a trap: tagging before the changelog lands
With ee
Hits a new trap that no memory covers yet
Sess
04
No memory
Hits the migration trap again
With ee
Preflight recalls the rule before the test
Sess
05
No memory
Hits the tagging trap again
With ee
Preflight on git tag recalls the lesson
Sess
06
No memory
Hits the migration trap again
With ee
Rule recalled; most of the session goes to the task
Useful work · no memory
42%
6 traps hit in 6 sessions
Useful work · with ee
75%
2 traps hit: only the new ones
In memory
4 lessons
Each is written once with ee remember and can be packed in any later session.
Sources and assumptions
What happens as the notes file grows.
What a session gets from a notes file, a vector store and ee.
Week 52 · 520 lessons written · 139 now stale · 49 true lessons apply to “fix a flaky test”
- On-task and true
- True, off-task
- Repeats an earlier line
- Stale or contradicted
- Empty slot
Notes fileCLAUDE.md · AGENTS.md
Every line goes into every session, on-task or off. The file has been trimmed 4 times, stale and repeated lines first, and the trims have deleted 201 lessons that were still true.
8,000 tokens
- Useful
- 16%
- Stale
- 5
- Repeats
- 3
- Missed
- 23
- Deleted
- 201
Vector storetop 80 by similarity
Returns up to 80 chunks, the ones most similar to the task. The score does not mark a chunk as stale or as a repeat, and the store keeps no record of what it left out.
4,000 tokens
- Useful
- 38%
- Stale
- 27
- Repeats
- 12
- Missed
- 19
- Listed
- none
ee pack--max-tokens 4000
Strict MMR fills at most 4,000 tokens of memory text and demotes repeats. Lessons ee has detected as stale are excluded. The 20 candidates it left out are listed, each with a reason, in
data.pack.skipped[].10,400 tokens · 6,400 of metadata
- Useful
- 41%
- Stale
- 5
- Repeats
- 8
- Missed
- 16
- Listed
- 20
Useful: on-task, true and not a repeat. Missed: true lessons about this task that the session does not have. Deleted: true lessons the file's trims have removed so far. Listed: candidates the lane reports as left out.
- Notes file
- Vector store
- ee pack
- File trimmed
Tokens a session
8,000 · 4,000 · 10,400
Ranking. The vector store and ee's search use the same similarity score here, so both miss the on-task lessons it scores low. Top-k has no record of which lessons went stale or repeat one already in the session, so it passes them through.
Token cost. ee's budget counts only the memories' own text. In markdown, each item also lists its id, why it was chosen, its trust class and its provenance, about 80 tokens here. A smaller --max-tokens gives a smaller pack.
Keeping AGENTS.md. ee export agentsmd writes the primer's rules and warnings into a marker-delimited block of AGENTS.md, 600 tokens by default. It never edits outside its markers. ee diag agentsmd-drift reports where the file and the memory disagree.
Sources and assumptions
ee is a command the harness calls.
Agents write evidence to ee and read context from it.
Push in · writes
Pull out · reads
readtouches source of truth · index · graph
ee pack "<task>" --workspace . --max-tokens 4000 --format markdownAssembles a token-budgeted context pack; every item carries an evidence pointer and a score breakdown.
The harness keeps its tools, approvals and prompt loop; ee stores memory and answers queries. The dashed boxes are derived data: if the index is lost, ee index rebuild regenerates it from the source of truth.
Sources and assumptions
The basic loop in five commands.
- 1
Open a workspace
ee init --workspace .Idempotent. The store is FrankenSQLite under .ee/; indexes beside it are derived and rebuildable.
- 2
Teach it a rule
ee remember "Run cargo fmt --check before tagging a release." \ --workspace . --level procedural --kind rule --jsonText that looks like a secret is refused with exit 7, and the error says where it matched. A memory written this way starts in the human_explicit trust class.
- 3
Hand the next session a pack
ee pack "prepare the release" --workspace . \ --max-tokens 4000 --format markdownRules, decisions, failures and evidence that match the task, within the budget, each with provenance and a score.
- 4
Say what helped
ee outcome <memory-id> --workspace . --signal helpful \ --reason "caught the unformatted file before the tag"Feedback moves the memory's posterior. Harmful counts 2.5 times as much as helpful.
- 5
Ask why
ee why <memory-id> --workspace . --jsonWhere a memory came from, what supports it, how fresh and how trusted it is, and what would change its rank.
Typed memories with half-lives.
A scratch note is useful for a day and a procedural rule for a year, so ee stores memories at four levels, each with its own half-life. When the decay pass runs, a stale memory is demoted, then leaves retrieval with an audit entry.
How fast each level fades.
ee maintenance run --include-decay) weighs freshness × confidence × utility to demote or tombstone a memory, with an audit entry either way.Age, confidence and utility decide when a memory is demoted or tombstoned.
Preserve
3
Demote
1
Tombstone
1
Confidence × utility
0.25
Demote once freshness drops below 0.2; tombstone below 0.04.
Age. Age runs from the latest of a memory’s creation, update and last access, so a memory that keeps being recalled stays fresh.
Demotion. A demoted procedural memory moves down to semantic and a semantic one to episodic, and its importance halves.
Tombstones. A tombstoned memory leaves retrieval and gets an audit entry. The row is kept, and ee curate untombstone <id> restores it.
Sources and assumptions
working
Task notes, scratch, in-progress facts
- decay
- fastest
- packing
- low; suppressed across sessions
episodic
“On 2026-03-12 the release failed because…”
- decay
- medium
- packing
- medium
semantic
Project conventions, architectural facts
- decay
- slow
- packing
- high
procedural
Rules, anti-patterns, playbooks
- decay
- slowest
- packing
- highest
Fields a search can filter on.
--kind failure --field family^rustc). Plain prose gets no typed fields; ee does not invent them.rule
procedural- condition
- action
- exceptions
condition: before tagging · action: cargo fmt --check
anti-pattern
procedural- trigger
- blast_radius
- safer_alternative
trigger: git rebase on main · safer: merge
decision
semantic- options
- chosen
- rationale
- supersedes
- revisit_by
chosen: Asupersync · rationale: no Tokio
convention
semantic- scope
- pattern
scope: tests/*.rs · pattern: allow header after //!
command
procedural- command
- when_to_use
- exit_meaning
exit_meaning: 124 means the command timed out
failure
episodic- cause
- regression_surface
- reverted_at_sha
- family
family: rustc E0277 · cause: missing bound
Every memory also carries its level, kind, content hash, tags, confidence, utility, importance, access count, source, evidence spans, links and trust class. README, “Memory Model”.
How ee builds a pack.
The pack is what an agent reads at the start of a task: the memories that match it, within a token budget, near-duplicates dropped, each item with its source and score. The same inputs give the same pack.
A pipeline of timed stages.
ee pack runs a fixed pipeline. It validates the request, retrieves with lexical and semantic search fused by rank, resolves and admits candidates, selects under quotas, and assembles the pack with provenance. It reports every degradation, and --explain-performance adds each stage's time.Twelve of ee pack's timed stages, in order.
ee pack times each of these stages and names it in its timing trace (--explain-performance). Select a stage to read what it does; Play steps through them.
bars: candidates remaining, illustrative conditional opt-in unavailable
requestValidateevery packParses the task, profile and budget, and caps the token budget and candidate pool to the workspace's runtime profile. Every built-in profile asks for a pool of 64.
Search · lexical and semantic, fused
Lexical · BM25
exact words, names, flags
Reciprocal-rank fusion
Σ 1 / (60 + rank)
weights 0.45 · 0.45
Semantic · Model2Vec
potion-multilingual-128M · 256-d
Both searches run locally. If the model cannot load, a deterministic hash embedder replaces it and gets no semantic credit; lexical scores take the semantic weight, and the response records this in degraded.
Ordering · quality multipliers
score = base × recency × confidence × utility × maturity × harmful × scope + anchor match (±0.08)
- recencyexp(−age / 30 days), floor 0.5
- confidencethe memory's confidence, floor 0.1
- utility0.5 + 0.5 × utility
- maturityrules: retired 0 · candidate 0.5 · established 1 · proven 1.5
- harmful1 − 0.1 per harmful report, floor 0.2
- scope× 1.2 on an exact workspace or scope match
Recency, confidence and harmful reports each have a floor, so they can lower a memory's rank but cannot remove it. Maturity is the only multiplier that reaches 0, for a deprecated or retired rule. Memories that are not rules have maturity 1.
Sources and assumptions
Build a pack yourself.
Set a profile and a budget, and see what ee's rule packs.
$ ee pack "prepare the v0.20 release" --profile balanced --max-tokens 800 --explain
Profile
Selection
Candidates · ranked by relevance
select one to see its arithmetic
Why · m04 · 62 tokens · procedural:rule:release
- gain = 0.75 × 0.87 − 0.25 × 0.95 = 0.415
- max similarity 0.95 with m01 (same diversity key procedural:rule:release)
- room for 30 of its 62 tokens under the procedural_rules quota, and the preview tier (20%) was spent: a link, “Memory m04”, 14 tokens, in the peripheral index
Budget spent
680 / 800
- procedural_rules224/240
- decisions160/160
- failures160/160
- evidence108/160
- artifacts28/80
Items
14
6 full · 3 preview · 5 link
Omitted
5
each with a reason
Avg relevance
0.70
of what was chosen
Near-duplicates in
1 / 3
redundancy lowers gain
Sources and assumptions
Six questions every item answers.
ee why and ee pack --explain show the full detail.01
Why selected?
Score components for each stage of the pipeline.
02
What supports it?
Provenance URIs back to the session, file or command.
03
How fresh?
The recency term: a 30-day time constant, floored at 0.5, the same for every level.
04
How reliable?
Confidence, evidence count, and the weight of harmful feedback.
05
What scores mattered?
The final score, its kind, a normalized relevance, and the raw breakdown.
06
What would change it?
A counterfactual hint, when there is one.
Relevance scores rank results; they are not probabilities that a result answers the task. When results exist, ee reports retrieval quality as unknown rather than inventing a number, because score size, result count and interval coverage do not establish that an answer is correct. Judge a memory by its content and its evidence.
README, “Explainable Retrieval”
A pack hash that reproduces.
The bytes behind a pack's hash.
A pack's hash is a BLAKE3 digest of ten component digests (nine when the pack leaves out its skipped list), each over labeled fields. The first version fed a provenance's uri and note as raw adjacent bytes, so two different packs could get the same hash. Edit the fields below; the digests are BLAKE3, computed in your browser.
Pack A
Bytes fed to the hash
10 bytes · blake3
08c2db064656d895354dc8141e164f10869474e638ae198fe5acf14b9a087d81
Pack B
Bytes fed to the hash
10 bytes · blake3
08c2db064656d895354dc8141e164f10869474e638ae198fe5acf14b9a087d81
Scores, quantized before hashing
Every score the hash consumes is first rounded to Q20.12 fixed point (round(x × 4096) as a u32), so floating-point noise far below a quantum (1/4096 ≈ 0.000244) usually leaves the bytes, and the hash, unchanged. The exception is two scores on either side of a half-step: they round to different quanta however close they are.
Score A (f32)
0.75
× 4096 = 3072.0000
Score B (f32)
0.75000006
× 4096 = 3072.0002
Q20.12 A
3072
00 0c 00 00
Q20.12 B
3072
00 0c 00 00 · same bytes
Guaranteed
- Same source and index snapshots, config, profile, budget, seed, query and decision inputs: ties resolve the same way and the pack hash reproduces.
- The composite is built from tagged component digests, so the component two packs differ in can be found.
Not yet
- Selection itself still compares raw f32 scores.
- v7 does not yet establish cross-process or cross-host determinism gates (ADR 0087).
Sources and assumptions
It learns from outcomes.
Agents report whether a memory helped or misled them. ee keeps a Bayesian posterior for every memory, promotes it only when the evidence is clear, demotes it faster than it promotes, and does not let an agent's report stand in for a person's.
A posterior for every memory.
human_explicit for an ordinary ee remember, agent_assertion for a registered agent's attempt-family write, cass_evidence for a line imported from a session. Outcomes move a Beta posterior, and the class changes only when its 90% interval crosses a threshold.How outcomes move a memory's trust class.
Outcomes, sized by weight
1 2.5
α helpful
0.5
β harmful
0.5
Mean
0.5
the legacy confidence
CI90
0.01–0.99
α + β
1
sample-size gate
Helpful outcomes
0
The trust ladder
- human_explicit0.85
- peer_human_attested0.75
- agent_validated0.65
- agent_assertion0.5
Agent claim with no outcome yet
Promote when
- CI90 lower > 0.70now 0.006
- α + β ≥ 6now 1
Demote when
- CI90 upper < 0.35now 0.994
- cass_evidence0.45
- legacy_import0.3
Last class change
None yet. Every change writes a trust_class.transition audit row.
Harm weighs 2.5 times
harmful β + 2.5 · helpful α + 1
So the mean falls faster than it rises.
The 90% interval decides
Promote when the lower bound clears one threshold, demote when the upper bound falls below another. In between, the class holds.
The top class needs a person
No number of ordinary outcomes reaches human_explicit. It takes --source-type human_explicit, a named --actor and a --reason.
Sources and assumptions
Fixes from past sessions.
ee diagnose-error or ee pack --error-log returns the fix with its provenance.Fixes recalled by error fingerprint.
cass-session://ses_01J…7Q · an agent's session, as cass recorded it
A toy in your browser · not ee- L1tool call
$ cargo test --lib
- L2tool result
error[E0277]: the trait bound `Widget: Serialize` is not satisfied --> src/widget.rs:41:9
the failure
- L3assistant
Let me look at the widget module.
narration: dropped
- L4assistant
Widget needs to derive Serialize: add #[derive(Serialize)] to the struct.
the fix
- L5tool call
$ cargo test --lib
- L6tool result
test result: ok. 3 passed; 0 failed
the proof
ee import cass reads the sessions your agents already recorded. It pairs each failing tool result with the assistant turns that explained the fix and a later successful run of the identical command that proved it.
Only admitted assistant sentences can become the fix. Narration is dropped, and a bare exit code is never an error class on its own.
Sources and assumptions
Proposed changes go through review.
--include-decay, demotes and tombstones on its own; both are audited. No LLM turns a session journal into candidates.Propose
Candidates come from journals, imported sessions, consolidation and the steward. Nothing is applied yet.
ee curate candidates --workspace . --jsonValidate
Each candidate is checked against policy, duplicates and contradictions before anyone can apply it.
ee curate validate <candidate-id> --workspace . --jsonApply
Applying writes the change and an audit entry together. Promotions, merges and tombstones are all logged.
ee curate apply <candidate-id> --workspace . --json
Checks on the way in and out.
ee remember refuses secrets
Text that looks like an API key, JWT, password, private or SSH key, AWS secret or OAuth token is refused with exit 7, and the error says where it matched. --allow-secret-mention stores it anyway and writes an audit entry. Commands that export take a redaction level from none to paranoid.
Stored instructions are screened
Before packing, stored memories are screened for role overrides, hidden-prompt requests, credential requests and authority claims. A match is omitted with an explanation and kept for inspection.
Preflight only advises
ee preflight looks up the risk history of a command before you run it. It reports what it finds, and the risk it finds does not change its exit code; it does not block the command, and no ee hook denies one.
Imported evidence is committed
Session lines imported since v0.19.0 carry keyed BLAKE3 commitments under the store's root key, so evidence can be checked without keeping raw digests of it.
$ ee remember "DATABASE_URL=postgres://user:hunter2@host/db"
# refused: exit 7, policy_denied, detectedPattern database_url; nothing is writtenFor work that runs for weeks.
Some work runs for weeks: a performance hunt, a recurring incident, a research question you keep returning to. ee records each attempt as evidence, can propose a repeated family of failures as a rule, and keeps each session's pack within the same budget as the store grows.
Twenty-six weeks of one campaign.
As the store grows, each pack stays within 4,000 tokens.
Query-engine performance
A coding agent and its benchmarking skill, one repository
./optimization/query-engine
- Memories live
- working0t½ 1 d
- episodic160t½ 30 / 90 d
- semantic92t½ 180 d
- procedural13t½ 365 d
Memories live
265
1,825 written · 1,560 retired
Procedural rules
13
+14 promoted · −1 deprecated
Pack tokens
3,715
of a fixed 4,000; the store holds ≈ 27k
Dead ends avoided
43
a known failure surfaced before a retry
Decay sweeps: 60 stale notes tombstoned
This week's sweep took 10. Bench notes unrecalled for months fall below lifecycle 0.01 and are tombstoned: an audited, reversible removal from retrieval.
$ ee maintenance run --job decay_sweep --include-decay
Event 9, Week 25 · Sun: Decay sweeps: 60 stale notes tombstoned
Monday · week 26
3,715 / 4,000 tokens
The session starts with this pack
$ ee pack “find the next p99 win on oltp-mixed” --max-tokens 4000
- ## procedural_rules1,115/1,200
Don't prefetch B-tree leaves on a fixed stride: three regressions on small-N reads, all cache pollution.
procedural · anti-patternagent_assertion
bench-run://2026-09-12T14:23/oltp-mixed-small-n
Every optimization lands with a median-of-3 bench diff and its revert SHA.
procedural · rulehuman_explicit
git-sha://5d1e0a7
- + 11 more · 955 tokens
- ## decisions730/800
Keep the B-tree. An LSM rewrite was rejected as too much risk for one campaign.
semantic · decisionhuman_explicitrevisit due
design-review://w08/storage
p99 target reaffirmed at 2.0 ms after the revisit; supersedes the first.
semantic · decisionhuman_explicit
charter://oltp-campaign/v2
- + 6 more · 570 tokens
- ## failures755/800
After the allocator switch, 64 KiB arenas cost +18% p99 on two runs.
episodic · failurecass_evidence
bench-run://alloc/post-switch
- + 7 more · 675 tokens
- ## evidence715/800
p99 at 1.9 ms: under target for the first time.
episodic · factcass_evidence
bench-run://oltp-mixed/w24
- + 6 more · 635 tokens
- ## artifacts400/400
docs/perf/negative-ledger.md: every attempt that lost, and why.
semantic · artifactagent_assertion
file://docs/perf/negative-ledger.md
- + 6 more · 345 tokens
spend by sectionbudget 4,000, a hard cap
Rules from repeated lessons. When three notes carry the same lesson, ee playbook extract proposes a rule candidate, which a reviewer validates and applies. Three harmful outcomes from two sources propose an anti-pattern.
Revisit dates. ee decide record stores the choice, the alternatives and the reason. With --revisit-by +90d, the decision is listed by ee decide revisit when it falls due, and the new decision supersedes the old one.
What leaves the store. Scratch expires when its workflow closes. The decay sweep tombstones notes that nobody recalls. A rule with harmful outcomes from two sources is deprecated through curation. The pack stays within its budget however large the store gets.
Sources and assumptions
A ledger of failed attempts.
The same search, with and without a failure ledger.
- Brighter: looks more promising
- Tried, failed
- A known dead end, tried again
- Pruned by an anti-pattern
- A win
- This session's attempts
No memory
Each session starts with no record of the others
Dead ends re-tried
35
of 96 attempts
First win
S18
2 of 3 found
Families pruned
0
70 tries spent in them
With ee
Each session starts from the ledger's pack
Dead ends re-tried
0
of 96 attempts
First win
S8
3 of 3 found
Families pruned
6 of 6
71 untried cells ruled out
Session 24/24
96 attempts each · landscape #22
Session 24 of 24. No memory: 3 of 4 attempts repeated a known dead end, and one hit a win. With ee: 4 attempts, none on a recorded failure or a pruned family.
The ledger, by family
distilled at 3 recorded failures
| Family | With ee | No memory |
|---|---|---|
| A | anti-pattern from S612 cells never tried | 10 tries · 4 again |
| B | anti-pattern from S129 cells never tried | 4 tries · 1 again |
| C | anti-pattern from S412 cells never tried | 23 tries · 11 again |
| D | anti-pattern from S314 cells never tried | 22 tries · 13 again |
| E | anti-pattern from S712 cells never tried | 7 tries |
| F | anti-pattern from S812 cells never tried | 4 tries |
The ee commands in this loop
- 1
Capture
$ ee remember "Tried … Family: B. Cause: …" --level episodic --kind failure
- 2
Group
$ ee search "<the idea>" --kind failure --field family=B
- 3
Distill
$ ee curate validate <id> · ee curate apply <id>
- 4
Pack
$ ee pack "<the next idea>"
Invented for this page
- The landscape, the agent, and its taste for promising-looking ideas.
- Curation running by itself at a family’s third failure.
- No family ever holding a win. A real one might, so an anti-pattern stays an audited rule with its evidence attached.
ee’s own
- A failure carries its family as a typed field, and a search on that field returns the family’s failures together.
- A rule exists only once ee curate apply accepts it, and the next pack puts what not to do first.
- Three is ee’s threshold: ee playbook extract waits for three notes carrying one lesson, and three harmful outcomes propose an anti-pattern.
Sources and assumptions
Any work with sources and decisions.
Investment researchper a position
Thesis revisions, valuation methods, failed screens, peer sets
$ ee init --workspace ./positions/AAPL-long
- sec-filing://…
- earnings-call://…
- analyst-note://…
Legal workper a matter
Case rules, drafting conventions, negotiation outcomes, due-diligence steps
$ ee init --workspace ./matters/smith-v-jones
- case://…
- pacer://…
- westlaw://…
Security and incident responseper an incident
IOCs, TTPs, response playbooks, detection-rule outcomes
$ ee init --workspace ./incidents/2026-11-phish
- cve://…
- mitre://…
- incident://…
Marketing analysisper a program
Campaign retrospectives, A/B results, channel rules, segmentation methods
$ ee init --workspace ./growth/q4-launch
- ga4://…
- mixpanel://…
- campaign://…
Product managementper a product line
User research, launch retrospectives, personas, prioritization rules
$ ee init --workspace ./product/onboarding
- interview://…
- linear://…
- notion://…
Medicine or clinical operationsper a protocol
Guideline facts, near misses, differential-diagnosis procedures
$ ee init --workspace ./clinic/sepsis-pathway
- pubmed://…
- guideline://…
- emr://…
Sales and account workper an account
Call notes, objection patterns, account maps, qualification playbooks
$ ee init --workspace ./deals/2026-q3-acme
- crm://…
- salesforce://…
- gong://…
- Privileged work
A matter-confidential or patient-adjacent workspace should neither read shared memories nor leak its own into them. One setting takes it out of the user-global lane; retrieval then says so in
degradedinstead of silently narrowing.$ ee config set memory.participate false
README, “Beyond Coding”. The URIs are what you pass to ee remember --source; ee records them as provenance and does not fetch them. Session import through cass is coding-specific; elsewhere, use ee remember or ee import jsonl.
From one agent to a team.
How ee's memory works at four scales.
The same store, trust classes and rules at every scale, and none of them needs a server.
A write goes into the database, the index is derived from it, and a pack reads from both.
Agents
1
a one-shot CLI
Writers at once
1
one write lock per store
Stores
1
.ee/ee.db, in the repository
Incoming trust class
human_explicit
a direct ee remember · the highest class
01 / 04One agent in one workspace
The store lives in the repository's own .ee directory. It holds one database, and everything else in it is derived from that database.
.ee/ee.dbis a FrankenSQLite database and the source of truth. Its search index is stored next to it in.ee/index/. src/core/status.rs · src/config/workspace.rs- Indexes, embeddings, graph snapshots and caches are derived data. If the index is lost,
ee index rebuildregenerates it from the database. README.md · Design Philosophy §6 - Every core workflow runs as a one-shot command and needs no daemon, network or cloud. README.md · Design Philosophy §1, §3
- Every promotion, consolidation, replacement and tombstone writes an audit entry. README.md · Design Philosophy §9
Commands
ee init --workspace .
ee remember "<lesson>" --workspace . --json
ee pack "<task>" --workspace . --max-tokens 4000 --format markdown
ee index rebuild --workspace .Lanes · fixed precedence on overlap
- 1workspacethis repository's own .ee store
- 2teamteammates' rows, peer_human_attestedzoom out
- 3globalyour house rules, in global/zoom out
- Same subject, same text: the workspace row wins over the team copy, and the decision is recorded.
- Same subject, different text: both stay in the pack, flagged, and ranking does not choose between them (team_lane_conflict_deferred, global_lane_conflict_deferred).
Sources and assumptions
Output an agent can act on.
Most of ee's callers are agents. With --json, every command answers in one versioned JSON envelope with a typed exit code; anything that ran in a reduced mode is listed with a code, and errors carry a recovery plan when ee has one.
A session, the way an agent runs it.
resume to handoff, every step but the work itself is one ee command, and its JSON answer has named fields the next step reads.The ee commands in one agent session.
Nine stations: five only read from ee, three write to it, one is the harness's own work. Pick one to see its command and the JSON it returns, or press Play.
- reads only
- writes
- the harness
- between sessions
- What it returns
- The last three sessions' episodic memories, decisions waiting on a revisit, items tagged next, todo, blocking and the like, and a stale flag on any item a newer memory has superseded.
- Why it works this way
- When the store is missing or empty, resume still succeeds. It returns an empty report that lists populated stores nearby with the exact command to retarget, and it never creates a store. An agent started in the wrong directory is given the command for the right store, and resume does not suggest ee init.
checked against src/core/resume.rs · src/cli/mod.rs · docs/schemas/ee.resume.v1.json · src/core/effect.rs
Resume the last session
read-onlyWhere was I?
$ ee resume --workspace . --json- The agent reads
data.report.sessionsdata.report.openLoopsdata.report.nearbyStoresdata.report.nextCommands
What comes back · a store with nothing to resumeexcerpt · highlighted: what the agent reads
{ "schema": "ee.response.v2", "data": { "report": { "schema": "ee.resume.v1", "episodicTotal": 0, "sessions": [], "openLoops": { "revisitDecisionsTotal": 0, … }, "nearbyStores": { "stores": [{ "documents": …, "provenance": "child_scan", … }], "outcome": "complete" }, "nextCommands": ["ee resume --workspace … --database … --json", …] } }, "degraded": [{ "code": "resume_no_session_evidence", … }]}Sources and assumptions
Errors that say what to do next.
How an agent reads an ee error or degraded result.
A typical CLI
A toy in your browser · not eeError: search index is out of date. Please rebuild the index and try again.exit 1
The message names no command and does not say whether a rebuild is safe to run unattended.
ee · stdoutexit 4
$ ee … --json
pinned: tests/snapshots/error_envelope_golden__error_envelope_search_index.snap
An agent’s reading
Read 7 of 7 · Re-check
Exit 0, and no index code left in degraded[].
Each risk class and its next action
ee's rule, computed here- read_only_proberun it
- idempotent_refreshrun it · preflight if given · ask if approval
- mutating_local_repairrun it · preflight if given · ask if approval
- mutating_external_coordination_repaircoordinate first · ask if approval
- approval_required_repairask a human
- destructive_or_irreversible_repairask a human
- unavailable_or_manual_onlymanual only
From repair_command_preflight_policy in src/core/preflight_guard.rs. Two classes always lead to ask_human and one to manual_only; three more lead to ask_human when requiresHumanApproval is true.
Sources and assumptions
It documents itself to the agent.
ee --agent-docs
A machine-readable overview of ee and the index of every documentation topic.
ee agent-docs recipes
32 workflows, each with its command, a jq selector for the answer, a success check and its failure branches.
ee agent-docs <topic>
Twelve focused topics: guide, commands, contracts, schemas, paths, env, exit-codes, fields, errors, formats, examples, recipes.
ee --help-json
The whole command tree as JSON, so a harness can build its own tool list.
ee schema list
Every public JSON Schema by id; ee schema export <id> prints one to validate against.
ee introspect
ee's command, schema and error maps in one response.
ee capabilities
What this build can do: feature flags, the binaries it found, the environment overrides in force.
- 0successread data
- 1usagefix the call
- 2configurationfix the config
- 3storagefollow repair
- 4search indexrebuild the index
- 5importcheck the source
- 6degraded, required mode unmetrelax or repair
- 7policy deniedask a human
- 8migration requiredee migrate run
- 9eval found regressionsread the report
- 10workspace store missingcheck the path; don't init blindly
- 130cancelledretry with more budget
ProcessExitCode, src/models/mod.rs · stdout carries JSON, stderr carries diagnostics
ee status reports one of five postures, so an agent can tell a store that is still warming up from one that needs a repair and one it must not touch. ee doctor uses three of them: ok, degraded_recoverable and blocked.
- ok
- initializing
- degraded_recoverable
- degraded_required
- blocked
src/models/posture.rs
Memories form a graph.
A rule supports a decision, a failure derives from a session, one fact contradicts another. ee stores those links and finds the memories many others rest on, and the ones that are a topic's only bridge to the rest.
What the links show.
Five lenses on a toy graph of 22 memories.
The question
Which memories does everything else lean on?
- $ ee graph pagerank --limit 10
- $ ee graph centrality --algorithm pagerank
Rank flows from each memory to the memories it leans on, so it collects in the facts and incidents the rules were built from. In this toy a contradicts link passes no rank.
Highest under this lens
Tap a memory to see its neighborhood.
On demand
Each lens is a command you run over your own store.
Off by default
The features that would change ranking, retention or pack explanations (Pack DNA, proximity, HITS profiles, structural decay), and the knowledge skyline. Each is a graph.feature.* flag.
Not available
Personalized PageRank: a request reports graph_ppr_upstream_unavailable and falls back to textual ranking.
Sources and assumptions
Each algorithm answers a question.
ee config set line that turns it on. Provenance, not the graph, stays the record of where a memory came from.PageRank
Which memories does everything else lean on?
ee graph pagerank --limit 10
HITS
Which memories are hubs that point at good ones, and which are the authorities?
ee graph hits --limit 10
Articulation points
Which single memory, if wrong, cuts a topic off from the rest?
ee graph articulation
Louvain communities
Which memories form a topic, whatever their tags say?
ee graph louvain
k-core
Where is the knowledge dense, and where is it thin?
ee graph k-core --json
Link prediction
Which links are missing? Proposed, never written silently.
ee graph suggest-links --propose
Gomory-Hu proximity
How tightly are two memories bound, and through what?
ee proximity <memory-a> <memory-b> --json
needs ee config set graph.feature.proximity.enabled true
k-truss and contradiction clusters
Which groups of memories hold together, and where do contradictions cluster?
ee health --robot-insights --json
needs ee config set graph.feature.structural_health.enabled true
Causal paths
What chain of events led to this failure?
ee why <memory-id> --causal-explain --json
needs ee config set graph.feature.causal_explain.enabled true
Pack DNA
Why does this pack look the way it does: dominators, communities, ego graphs.
ee pack "<task>" --explain --json
needs ee config set graph.feature.pack_dna.enabled true
Knowledge skyline
The store's posture across layers, communities, trust, age and support.
ee insights --section knowledgeSkyline --json
needs ee config set graph.feature.skyline.enabled true
Evidence, limits and install.
A wrong memory misleads every session that reads it, so ee is held to strict rules: a check that refuses banned dependencies, 630 failure-mode fixtures, 280 versioned JSON schemas, and a published list of what does not work yet. The chapter ends with the install commands.
ee beside the alternatives.
Swipe the table for the other three →
Commands still answer with parts missing.
What still works when a part is missing.
Still working
8/9
capabilities not switched off
Entries
1
what ee reports, below
Failure modes
630
documented, one fixture each
- worksCapture · remember, journal, outcomewrites go to the source of truth
- worksLexical search · BM25full
- offSemantic similaritylexical search answers the query
- degradedHybrid fusion · RRFlexical arm only
- worksRerankingoptional, local
- worksGraph boosts and enrichmentcurrent links
- worksSession evidence importee import cass
- degradedContext packs · ee packbuilt from the lexical arm
- worksProvenance and the JSON contracton every --json response
What ee reports, and where
// ee search … --json · data.degraded[]
// src/core/search.rs
{
"code": "embed_model_unavailable",
"severity": "warning",
"message": "Embedding model unavailable (<reason>); semantic similarity is disabled and lexical search remains available.",
"repair": "ee index reembed --workspace ."
}Working offline. With the model cached, going offline changes nothing. A machine that has never downloaded the model falls back to deterministic hash embeddings and reports embed_model_unavailable.
Stale index. When a read-only request’s whole corpus fits within 4,096 rows and 16 MiB, ee searches a complete in-memory snapshot instead of the index and reports search_live_snapshot_lexical.
Sources and assumptions
Dependencies the checks refuse.
Tokio, async-std, smol
Asupersync
Structured concurrency, cancellation as a value, deterministic lab tests.
rusqlite, SQLx, Diesel
FrankenSQLite + SQLModel
One Rust storage stack with MVCC, owned end to end.
petgraph
FrankenNetworkX
Graph algorithms with NetworkX semantics, in Rust.
hyper, axum, reqwest
No HTTP framework
Memory needs no network. The optional ee serve is a loopback server on Rust's standard library.
- lines of Rust in src/
- 1.44M771 files; another 443k lines of tests.
- architecture decisions
- 91Numbered ADRs in docs/adr, each with a status.
- forward-only migrations
- 133No down-migrations: back up, then move forward.
- commits
- 14,486Since the first one, 2026-04-29.
Asupersyncruntime
Structured concurrency with cancellation as a value.
FrankenSQLitestore
The source of truth, with MVCC, through SQLModel.
Frankensearchsearch
BM25 and Model2Vec vectors, fused by reciprocal rank.
FrankenNetworkXgraph
PageRank, HITS, communities, cores, cuts.
cassevidence
Search over your past Claude Code, Codex, Cursor and Gemini sessions.
v0.12026-05-15
First release: remember, search, pack.
v0.132026-07-30
A user-global memory lane beside each workspace.
v0.142026-08-18
Team confederation: signed, hash-chained sharing between stores.
v0.152026-09-12
Published on crates.io.
v0.162026-09-27
ee ask answers from procedural rules and imported session evidence.
v0.172026-10-02
Retrieval quality ranking, and a Pareto-frontier knowledge skyline.
v0.182026-10-14
Failure-to-fix recall from imported sessions.
v0.192026-11-21
Keyed CASS commitments, warm daemon packs, Go/Rust/Vitest/Jest error recall, cargo audit 12 → 0.
From the tags and CHANGELOG.md.
What is not done yet.
Personalized PageRank is unavailable
The pinned graph library has no deterministic personalized PageRank yet, so that ranking signal and Pack DNA's PPR neighbors are unavailable; both report graph_ppr_upstream_unavailable and fall back. PageRank, HITS, Louvain and articulation points are unaffected.
Most graph views are opt-in
Every graph.feature.* flag defaults to off, so ee proximity, ee why --causal-explain, ee health --robot-insights, the knowledge skyline and Pack DNA report graph_feature_disabled until you run ee config set graph.feature.<name>.enabled true. PageRank, HITS, Louvain and articulation points need no flag.
Determinism is per platform, and not yet gated across hosts
The pack hash binds the target architecture, OS and enabled features, so the same inputs give the same hash on the same platform. Tie-breaks still compare raw f32, and no gate yet checks determinism across processes or hosts (ADR 0087).
Heavy write swarms need a write owner
Many agents can read at once. FrankenSQLite is single-process MVCC, so heavy concurrent writing goes through job locks or the optional daemon.
Releases are signed but carry no SLSA provenance
Current releases ship SHA-256 sums and minisign signatures. There are no Sigstore bundles or SLSA provenance, so --require-provenance fails by design.
Some performance gates are unproven
Since v0.16.0, a read-only pack through a warm daemon measured 708 ms against 3,155 ms for the same pack built locally, on one worker; the 10,000-memory, 2x median gate is still unverified.
Install it and connect your harness.
# Release installer: checks SHA-256, installs to ~/.local/bin, runs a self-test
curl -fsSL https://github.com/Dicklesworthstone/eidetic_engine_cli/releases/download/v0.19.0/install.sh -o install.sh
EE_VERSION=v0.19.0 bash install.sh --easy-mode --verify# Homebrew (macOS, Linux)
brew install Dicklesworthstone/tap/ee# From crates.io (nightly Rust)
cargo +nightly install eidetic-engine --version 0.19.0 --lockedClaude Code
ee hook claude-code --install --workspace . --json
Four managed hooks: orientation at session start, recall before an edit, a journal entry when a Bash command fails, and capture suggestions at the end. They fail open and never deny a command.
Codex
ee hook codex --install --workspace . --json
Codex shells out, so every ee command works as is; ee pack --json drops straight into a message.
MCP
ee mcp manifest --json
The stdio adapter needs a build with --features mcp; without it the manifest reports the adapter as disabled. Its tools, such as ee_context, ee_search and ee_remember, follow the CLI's contracts.
Anything with a shell
ee pack "<task>" --workspace . --format markdown
Scripts and people get the same commands and the same JSON as the agents.