Store everything. Bring back only what helps.
A lost message never comes back, so ChloeCtx keeps everything. Reading costs the model attention, so each question gets only what it needs.
From something you said to the answer that needed it
- You say it
In any assistant, once.
"The client's machines run Python 3.8." - Captured
Secrets redacted, cut into small records.
[prompt · s3] client machines run Python 3.8 - Stored as said
One file on your machine, with its date. No model call.
words + meaning indexed - Noted
Later, a small model writes down what was agreed.
fact · by user: Python 3.8. When: choosing a library - Brought back
Weeks later, the request that needs it gets it.
"Add a settings.toml loader" → no tomllib on 3.8
It runs itself: six moments in a session
Claude Code calls ChloeCtx at each moment, so nothing depends on the model remembering to save or ask. Each call takes a few milliseconds.
- Session startA briefing
Rules, decisions and planned work, checked against today's code.
gives context - Every promptThe history it needs
Matching decisions, and older records when the evidence is strong.
gives context - Before an editNotes on that file
Earlier errors and decisions about the file it is about to change.
gives context - Every tool callStored, secrets removed
The call and its result. A failure that later passed becomes a fix.
records - End of a turnWhat was agreed
A small model writes down what the turn decided.
in the background - CompactionNothing is lost
The summary is stored, and what it dropped can come back when a prompt needs it.
records
SessionStart. The briefing names the rules first, then decisions, planned work with its requirements, and facts.
A small model writes down what each turn agreed
Off the prompt's path, for about $0.001 a turn.
From the kickoff with the client: their machines run Python 3.8. Also, let's drop the ICS feed, their system rejects it. Next sprint we'll add SMS reminders, max 160 characters.
Dropped the ICS export and kept everything 3.8-compatible. SMS reminders noted for next sprint.
Stop · notes written in the background
fact · by userClient machines run Python 3.8.
When: choosing a library or standard-library module; parsing a config file
decision · by user · replaces 2f1c:88The ICS calendar feed is dropped: the client's system rejects it.
planned · requirementSMS reminders, next sprint: at most 160 characters each.
Each note names its situations, so "add a settings.toml loader" finds "Python 3.8" with no word in common.
Only what you state becomes a rule. An assistant's guess stays a guess.
New notes replace, close or retire old ones, and a note whose code changed says so.
It never repeats what the model can still see
Recall skips what is already in the context window. After a compaction, what the summary dropped can come back.
The next prompt can bring back exact details the summary threw away, such as an error message or a number.
Full, brief, or nothing at all
When the evidence is weak, it adds nothing. Drag the slider to see what a prompt would get. It is the weakest part of the design, and the benchmarks say why.
- [error · s2 · turn 14] cannot borrow `rows` as mutable · export.rs:118
- [decision · s2] stream rows instead of building the CSV in memory
- [tool_call · s2] cargo test -p export · 41 passed
- [prompt · s1] count sheets go in walking order by bin
- [episode · s2 · turn 15] export.rs, tests.rs changed · tests pass
- [fact · s1] the receipt printer is 42 characters wide
It connects a request to what it implies
"Enter the school's order" never says "nut-free". The query engine finds it anyway, in the background while Claude starts work.
- 1 · Plan
A small model turns the request into several searches.
"the school's rules" · "the catalog" - 2 · Search
All at once, by words, meaning, kind and date.
4 searches, one snapshot - 3 · Fuse
The results become one ranked list.
top records + their context - 4 · Pick
A second call keeps what changes the answer.
rule: nut-free · fact: Bakewell has almonds
One small daemon per project owns the file
Hooks and the MCP server are its clients over a Unix socket. It starts on demand and stops when idle.
A hook that can't reach the daemon in time exits silently.
What a web page or tool returned is never injected on its own.
A failure that later passed comes back when the error does.