Skip to content
context Benchmarks
Login

Benchmarks

This page lists what ctx has been measured to do. Every figure comes from a result file in bench/results/, and each result shows the date it was measured, the check-in it was measured on and the command that reruns it. Figures measured on the author's own private session archive give counts only, because the sessions themselves are not published. Results that failed the bar set before the run are kept on purpose.

How to read this page

At a glance

Result Outcome What it means
Ranking: full-text search against grep Passed its bar The ranking ctx uses finds about 57% of the labelled documents in its top 10, against 37% for grep. It is a clear win over grep and still misses a lot; no target for the absolute score has been set.
LongMemEval-S, retrieval only No bar ctx's search is level with another tool's published keyword search (two questions apart in 470, which is noise) and well ahead of grep. Both are weakest where evidence is spread over several sessions or depends on dates. Tools that use embeddings report higher figures on this benchmark, but those are their own reports under other scoring, so they are not shown as a comparison.
A small public set of coding sessions Passed its bar ctx clears the check. It says little more than that: the set is 15 invented sessions, and grep does as well. A harder public set of coding sessions does not exist yet.
209 coding sessions: finding the session that holds the answer Passed its bar At this size the index is clearly better than ranked grep. In the session's own terms ctx found the right session for 125 of 139 questions and grep for 71; ctx alone was right on 54 and grep alone on none (p below 0.0001). Where the answer is spread over two or more sessions, ctx found all of them for 27 of 40 questions and grep for 6. On the 32-session corpus the two were level. Paraphrased questions are still poor: 23 of 139, though again well ahead of grep's 5.
Coding sessions: finding the session that holds the answer, first run No bar ctx did worse than ranked grep here, 20 against 26 of 30 held-out questions in the session's own terms, and the cause was a fault, not ranking. Questions that name a flag, such as --json, made ctx search stop with an error and return nothing; an agent searching its history for a flag would have hit the same error. The result is kept as it was measured. The next result shows the same questions after the fault was fixed. Paraphrased, both methods fail most of the time.
Coding sessions: finding the session, after search accepted flag names No bar With the fault fixed, ctx finds the right session for 28 of 30 held-out questions in the session's own terms, against grep's 26. ctx alone was right on 3 and grep alone on 1, which is not a difference by the rule set beforehand, so the two are level on this small corpus. Over all 67 questions it is 64 against 52. The change was chosen using only the questions that are not held out, and the held-out ones were run once. Paraphrased questions did not improve: 5 of 30 for ctx and 7 for grep. That is the limit of keyword search, and it is what tools using embeddings should be tested on.
Coding sessions: other tools on the same questions No bar In the session's own terms every tool that ran properly is level with ctx; only TraceDecay was worse (p = 0.008). Paraphrased, the three tools using embeddings are clearly better than ctx: cass found 23 of 30, episodic-memory 20 and agentmemory 17, against ctx's 5 (each p below 0.001). That is the real gap in ctx's search. It costs them indexing time: one to nineteen minutes for 32 sessions, against seconds for keyword indexes. cass with keywords alone scored 1 of 30 because its default search needs every word of the question to match; that is its default, not its ceiling. This measures finding the session only. In the separate answer test, paraphrasing barely changed what agents got right, because agents rewrite their searches.
Would small embeddings close the paraphrase gap? Failed its bar A real gain, but short of the bar. Fusing the 30 MB model with keyword search finds 13 of 30 paraphrased questions instead of 5 (better on 9, worse on 1, p = 0.02) and loses nothing in the session's own terms. That is about half of what the neural tools gain, for almost no indexing cost. The smaller model does less and the larger one no better. ctx does not use embeddings as a result: the bar was not met, and in the answer test paraphrasing did not make agents answer worse, so the gain here may not reach the answers.
Small embeddings on 209 sessions Failed its bar The gain does not hold. Fused search found 126 and 25 of 139 against 125 and 23 for keywords alone, which is no difference (p = 0.77 on paraphrased questions). The improvement on the small corpus came from its size: with few sessions a rough sense of topic is enough to pick one, and with many sessions on one codebase it is not. ctx does not use embeddings. Tools that run a neural model were not tried at this size.
209 sessions: neural embeddings and other tools at finding the session No bar For one search on a reworded question, neural embeddings are far better than keywords, and the model is what decides by how much. Small models from 2019 to 2022, which the other tools use, find 37 to 55 of the 139 paraphrased questions; current models find 62 to 87; ctx's keywords find 23. In the session's own terms the best models also edge ahead, 134 against 125. What unit of text is embedded matters little. Blending a strong model's ranking with the keyword ranking at equal weight throws away most of its gain on paraphrased questions. None of this is in ctx: whether it changes what an agent answers is the next result.
A wiki compiled from documents No bar At this size the sources already answer nearly everything; the wiki added one answer and cost more tokens. Recorded late, on 2026-11-17, from the run of 2026-11-10.
A wiki compiled from past sessions Failed its bar Small wikis do nothing; a large one lifts retrieval clearly above its control and answers a little, exactly on the questions its pages cover. The gain, about 4% on paraphrased questions, does not clear the bars, so ctx does not compile wikis from sessions.
Coding sessions: do agents answer better with ctx? No bar Plain transcript files with a hint where they are scored highest. ctx as installed is level with them by the test set beforehand (better on 2 questions, worse on 6, p = 0.29) but three points lower, and ctx without its note is significantly worse (p = 0.04). The whole gap is use: the agent searched with ctx on 24 of 30 questions with the note and 19 without, and where it did search, its answers were as good as the transcript arm's. What ctx buys is cost: about a third fewer tokens, less than half the time, and two or three tool calls where grep needs seven to nine. Paraphrasing the question made almost no difference to any arm, because agents rewrite their own searches. With only the repository the agent could answer 6 of 30, so the questions do need session history.
209 coding sessions: do agents answer better with ctx? No bar Level on accuracy by the bar, and much cheaper. In the session's own terms ctx scored 116.5 against 111.5 (better on 24 questions, worse on 15, p = 0.20); paraphrased, 112.0 against 100.5 (better 26, worse 16, p = 0.16). Neither difference is significant on its own. Both times ctx cost about half as much, took a third of the time and a quarter of the tool calls, and gave fewer wrong answers. Paraphrase hurt the transcript arm more than ctx: its score fell by 11 and ctx's by 4.5, although a single ctx search finds the right session for only 23 of the 139 paraphrased questions. Agents make up for that by searching again with other words, three searches at the median.
Coding sessions: adding snippets or a reminder to the prompt Failed its bar Neither helps, and both arms scored below ctx as installed, significantly so on paraphrased questions. The reason is that they almost never act: snippets were added for 4 and 3 of 30 questions and the reminder for 1 and 0, so these arms are in effect the skill alone. On the few questions where snippets were added, the answers were right. The session-start note remains the one thing shown to make agents search, and both hooks stay off by default.
209 coding sessions: ctx as tools over MCP, against the skill Passed its bar The two are level, so the tools are a sound way in for clients without a shell. Over MCP the agent scored 121.5 against 116.5 in the session's own terms (better on 16 questions, worse on 8, p = 0.15) and 116.0 against 114.0 paraphrased (18 and 17). It used slightly fewer tokens, took a second or two less per question, and ran into far fewer refused commands, since a tool call has no shell pipeline for a permission rule to reject. It gave 6 wrong answers against 3 in the session's own terms and 4 against 4 paraphrased. A two-line tool description and one sentence did the work of the whole skill here, on questions that are all about past work.
209 sessions: do agents answer better with vector search? Failed its bar No. None of the three vector arms differs from keyword search on answers, in either wording, and two of them give more wrong answers. An agent does not stop at one search: with keywords it rewords and tries again, and ends where a single good vector search would have put it, at the same cost. Injection made agents search less (79 and 107 of 139 against 120 and 131) and say they did not know less often, but be wrong more often. ctx does not use embeddings for session search. The test has limits: every question has a findable answer, the corpus is 209 sessions, and one model answered.
209 sessions: what gets an agent to look in the archive Passed its bar Telling the agent at the start is what matters: the skill and note take the score from 22.5 to about 117. An agent told nothing makes two tool calls, finds nothing in the repository and gives up. Turning its first search back once with the note recovers most of that, 85.5, and where it then searched ctx it scored 79 of 90; it cannot help in the 39 runs where the agent never searched at all. Adding lines after a search is worth little, 30.0, because it waits for a rare word and fired in 30 of 139 runs. With the note already in place the hint changed nothing (117.0 against 117.5; 111.5 against 113.0 paraphrased). So ctx gate exists as a fallback for sessions the note did not reach, and is off unless installed.
Answering questions about past work Passed its bar Telling the agent at session start that an archive exists is worth about 7 questions in 90 and costs no extra tokens. The difference is borderline by a sign test (p = 0.052), so it is kept as likely but not proven.
Reaching for the archive unprompted Failed its bar Rewording the triggers made no real difference (one question in 23), so the wording was not changed. Fresh agents already search about four times in five without being told.
A reminder when a prompt refers to earlier work Failed its bar The reminder changed nothing because agents already searched every time. The hook exists but is off by default. This test cannot show what happens deep in a long session, where the reminder might matter more.
Finding standing instructions in what a person types No bar A small model finds about five in six standing instructions; cue words find one in six. About a quarter of what it proposes is not a rule, which is why a person accepts or rejects each proposal.
Flagging rules that have gone stale Passed its bar The stronger model never flagged a rule that was still true, so it is the one ctx uses. It finds only a few of the stale rules, because most are never contradicted in conversation; a monthly review covers the rest.
Which kinds of rule go stale No bar Status notes go stale within weeks and rules in a person's own words rarely do, so ctx fades by kind. Fading by age would have silenced about a quarter of rules that were still true.
Finding stale memory notes Failed its bar Notes rarely go stale because a later session contradicts them; they go stale because the work stops, which no transcript says. Silence catches most of those for nothing, so ctx fades notes of silent projects. It misses the bar on true notes, but a faded note returns with its project's next session.
Duplicate memory notes No bar Agents rarely write the same note twice, so ctx does not merge notes.
Instructions said more than once No bar A repeat means an instruction is true now, not true forever: 5 of the 6 rejected ones had been repeated, all months earlier. So ctx serves a repeated proposal as a tentative rule that lapses 30 days after it was last said, and only an accepted one is kept.
A model judging rule proposals for the person Failed its bar Automatic adding stays imperfect, so ctx's automatic judge leans toward deleting: most proposals it dismisses, often as already covered, and every decision, kept or dismissed, is shown at session start, in ctx rules activity and on the decisions page, and reversible with ctx rules undo.
Holding back a question the archive may answer Failed its bar The idea failed clearly. Three in four firings were irrelevant and one in twelve pointed at a conflicting answer, so the hook was removed before it shipped.
Matching answers to the questions agents asked Passed its bar The record of questions and answers is consistent on a real archive. This checks that answers are attached to the right question, not that they were read correctly word for word.
Hooks and commands on a real archive Passed its bar Every hook takes 4 to 30 ms at the median and none came near the bar; the slowest single run was the compaction brief at 62 ms. The brief used to take 0.4 to 1.2 s on its first run: to find the last landing the person reported it read the text of every typed turn in the archive. It now finds the session's own documents first and reads only their turns. The gate adds about 5 ms to a search or shell command, most of which is the cost of starting a process. The two listing commands are typed by a person, not run by a hook, and are slower.
Hooks and commands on a real archive, machine heavily loaded Failed its bar At the median every hook takes under 50 ms even with the machine running at three times its capacity. The run failed its bar because the first compaction brief took 1.2 s. A second run on a quiet machine gave the same first-run figure, so that cost belongs to the brief and not to the load.
Background work No bar Background work costs a few seconds of processor time an hour. The rebuild is a one-off of a few minutes when the index format changes.
Fuzzing and sanitizers No bar Fuzzing found a real bug this week, in a rule that could match across a line break. It did not let a secret through. The failing input is now replayed on every check.

Ranking: full-text search against grep

Whether SQLite FTS5 with BM25 ranking, which ctx search uses, finds the right documents more often than ranked grep, the method an agent falls back on without it.

Measure Result
BM25, recall at 10 0.565
BM25, recall at 50 0.784
BM25, nDCG at 10 0.470
BM25, mean reciprocal rank 0.517
grep, recall at 10 0.372
grep, recall at 50 0.528
grep, nDCG at 10 0.313
grep, mean reciprocal rank 0.348

Measured 2026-11-08; good until 2027-02-06.

bench/run.sh

Result file

LongMemEval-S, retrieval only

A public benchmark of long-term memory in chat assistants. Run retrieval-only, it asks whether a search returns the sessions that hold the evidence for each question. It is chat, not coding work, but it is data anyone can rerun and others publish scores on.

Measure Result
Strict recall at 5 (every evidence session found) 85.1% (400 of 470)
Fractional recall at 5 92.1%
Any hit at 5 96.6% (454 of 470)
Strict, knowledge-update 71 of 72
Strict, multi-session 88 of 121
Strict, single-session-assistant 56 of 56
Strict, single-session-preference 25 of 30
Strict, single-session-user 63 of 64
Strict, temporal-reasoning 97 of 127

Measured 2026-11-12; check-in 9ca411f83487; good until 2027-05-11.

bench/longmemeval.py --data longmemeval_s_cleaned.json

Result file

A small public set of coding sessions

The only public set of coding-session questions found. It is tiny and invented, and plain grep nearly ties on it, so it is a check that nothing is broken and not a measure of how good a tool is.

Measure Result
Questions with every evidence session in the first 5 15 of 15
Recall at 5 1.000
Questions with at least one evidence session in the first 5 15 of 15

Measured 2026-11-12; check-in 9ca411f83487; good until 2027-05-11.

bench/coding_life.py --data DIR

Result file

209 coding sessions: finding the session that holds the answer

The first corpus had 32 sessions, few enough that counting matching words per session works about as well as an index. This one is six times larger, and its streams reuse each other's vocabulary.

Measure Result
ctx, session's own terms 125 of 139 (one session needed: 98 of 99; two or more: 27 of 40)
grep, session's own terms 71 of 139 (one session needed: 65 of 99; two or more: 6 of 40)
ctx, paraphrased 23 of 139
grep, paraphrased 5 of 139
Questions only one method got right, own terms ctx 54, grep 0
Questions only one method got right, paraphrased ctx 22, grep 4 (p = 0.0005)

Measured 2026-11-12; check-in 87fb691a8cb2; good until 2027-05-11.

tar -xzf bench/shipyard2/sessions.tar.gz -C DIR && cp bench/shipyard2/questions.json DIR && bench/shipyard.py --data DIR --turns 200

Result file

Coding sessions: finding the session that holds the answer, first run

Each question is asked twice: once in the session's own terms, once paraphrased with none of its distinctive words. Exact terms favour keyword search; paraphrase is where it is weakest.

Measure Result
ctx, session's own terms 20 of 30
grep, session's own terms 26 of 30
ctx, paraphrased 5 of 30
grep, paraphrased 7 of 30
ctx, all questions, own terms and paraphrased 48 and 18 of 67
grep, all questions, own terms and paraphrased 52 and 16 of 67

Measured 2026-11-12; check-in 7150d2056fec; good until 2027-05-11.

bench/shipyard.py --data DIR

Result file

Coding sessions: finding the session, after search accepted flag names

Each question is asked twice: once in the session's own terms, once paraphrased with none of its distinctive words. Exact terms favour keyword search; paraphrase is where it is weakest.

Measure Result
ctx, session's own terms 28 of 30
grep, session's own terms 26 of 30
ctx, paraphrased 5 of 30
grep, paraphrased 7 of 30
ctx, all questions, own terms and paraphrased 64 and 18 of 67
grep, all questions, own terms and paraphrased 52 and 16 of 67

Measured 2026-11-12; check-in 4095a7b2dab0; good until 2027-05-11.

bench/shipyard.py --data DIR

Result file

Coding sessions: other tools on the same questions

The same held-out questions, given to four other tools that search past agent sessions. Three of them can use embeddings as well as keywords; ctx uses keywords only.

Measure Result
cass, keywords and embeddings 30 and 23 of 30 (own terms and paraphrased; index 67 s)
episodic-memory, embeddings 30 and 20 of 30 (index 584 s)
agentmemory, keywords and embeddings 28 and 17 of 30 (index about 1,120 s)
ctx, keywords 28 and 5 of 30 (index a few seconds)
ranked grep 26 and 7 of 30
agentmemory, keywords 25 and 10 of 30 (index 14 s)
TraceDecay, session search 20 and 3 of 30 (index 3 s)
cass, keywords only 1 and 0 of 30 (its default requires every word to match)

Measured 2026-11-12; check-in 4095a7b2dab0; good until 2027-05-11.

bench/shipyard/results/score.py

Result file

Would small embeddings close the paraphrase gap?

ctx finds 5 of 30 paraphrased questions; tools that run a small neural network over every chunk find 17 to 23 and take minutes to index 32 sessions. This asks whether embeddings with no network at all, which index the same corpus in a tenth of a second, get most of that.

Measure Result
ctx keywords 28 and 5 of 30 (own terms and paraphrased)
30 MB static model fused with keywords 28 and 13 of 30 (index 0.1 s, 2 MB of vectors)
30 MB static model alone 27 and 11 of 30
8 MB static model fused with keywords 28 and 10 of 30
129 MB retrieval-tuned static model fused with keywords 27 and 9 of 30 (alone: 28 and 12)
Neural tools, for comparison 28 to 30 and 17 to 23 of 30 (index 67 to 1,120 s)

Measured 2026-11-12; check-in 4095a7b2dab0; good until 2027-05-11.

bench/vectors.py --models DIR --model potion-base-8M

Result file

Small embeddings on 209 sessions

On the first corpus, fusing a static embedding model with keyword search found 13 of 30 paraphrased questions instead of 5, and agents answered slightly better with it, though not significantly. This repeats the retrieval test on a corpus six times larger, on questions the method was not chosen with.

Measure Result
ctx keywords 125 and 23 of 139 (own terms and paraphrased)
Static model fused with keywords 126 and 25 of 139
Static model alone 108 and 22 of 139
Paraphrased questions only one method got right fused 7, keywords 5

Measured 2026-11-12; check-in 87fb691a8cb2; good until 2027-05-11.

bench/vectors.py --models DIR --model potion-base-8M --data CORPUS --whole

Result file

209 sessions: neural embeddings and other tools at finding the session

A small static embedding model added nothing at this size. This asks the same of real neural models: the two session-search tools that use one, and ten hosted models scanned exactly with no keyword search at all.

Measure Result
ctx keywords 125 and 23 of 139 (own terms and paraphrased)
episodic-memory 125 and 49 (alone right on 34 paraphrased questions against ctx's 8, p = 0.0001)
cass, hybrid 116 and 43 (alone right on 26 paraphrased against 6, p = 0.0005)
Voyage-4-lite, vectors alone 134 and 82 (132 and 87 embedding whole exchanges)
Voyage-code-4, vectors alone 126 and 83
Qwen3-embedding-4B and 8B, vectors alone 131 and 76; 129 and 80
Perplexity pplx-embed 0.6B, vectors alone 132 and 72
OpenAI text-embedding-3-small, vectors alone 132 and 63
MiniLM-L6, GTE-base, E5-base, MPNet, vectors alone 119 to 124 and 37 to 48
Voyage-code-4 blended with keywords at equal weight 131 and 48 (against 126 and 83 alone)

Measured 2026-11-13; check-in 6abc4db74538; good until 2027-05-12.

bench/shipyard2/results/README.md for the two tools; hosted models: each window of what people and agents wrote embedded through a hosted API, exact scan, first five distinct sessions

Result file

A wiki compiled from documents

Whether pages compiled from a project's documents help agents answer questions about those documents.

Measure Result
Sources only 18 of 20
Wiki searchable 19 of 20 (4% more tokens)
Wiki as files 18 of 20 (10% more tokens; one wrong answer)

Measured 2026-11-10; good until 2027-02-08.

eval/skill_eval.py

Result file

A wiki compiled from past sessions

Whether pages compiled from session history help agents answer questions about past work, the consolidation idea in Anthropic's article on agent memory. Retrieval was gated first, with no agent runs; answers were then compared over 1,668 runs.

Measure Result
Retrieval, paraphrased: no pages 25 of 139
Retrieval, paraphrased: small wiki 29 of 139 (its random-citation control: 30)
Retrieval, paraphrased: large wiki 33 of 139 (its random-citation control: 23; bar 35)
Retrieval, own words: no pages, large wiki 126 and 133 of 139
Answers, paraphrased: no wiki, large wiki 110.0 and 115.5 of 139 (better on 38, worse on 27, p = 0.22; bar +8)
Answers, paraphrased, the 101 questions the pages cover 78.7 and 84.2 (p = 0.13; on the other 38, 31.3 and 31.3)
Answers, own words 114.8 and 115.3 of 139 (p = 0.89)
New tokens with the wiki 2% fewer (bar 20% fewer)

Measured 2026-11-17; good until 2027-02-15.

Result file

Agent behaviour

Coding sessions: do agents answer better with ctx?

An agent is asked each question under four conditions: with only the repository, with the transcript files and ordinary search tools, with ctx and its skill, and with ctx as it is installed (the skill plus the one-line note its session-start hook adds). A correct answer scores 1 and a partly correct one a half.

Measure Result
Transcripts and ordinary tools 27.0 and 26.5 of 30 (own terms and paraphrased; 7 to 9 tool calls, 15 to 21 s, 796k and 943k tokens)
ctx as installed, skill and session-start note 24.0 and 24.5 of 30 (used ctx on 24 and 26 questions; 2 to 3 tool calls, 6 to 8 s, 540k and 617k tokens)
ctx, skill only 21.5 and 22.5 of 30 (used ctx on 19 and 23 questions; 591k and 616k tokens)
Repository only 6.0 of 30 (own terms; 22 answers of "don't know")
Wrong answers, own terms 1 in every arm

Measured 2026-11-12; check-in 4095a7b2dab0; good until 2027-05-11.

eval/skill_eval.py --bank BANK run --set all --only HELD_OUT --ask plain --cond A,B,C,H && eval/skill_eval.py grade RUNS

Result file

209 coding sessions: do agents answer better with ctx?

On 32 sessions an agent with the raw transcript files and ordinary tools answered as well as one with ctx, or slightly better. This repeats the comparison where there are 209 sessions to look through.

Measure Result
Own terms: transcripts and ordinary tools 111.5 of 139 (99 correct, 25 partial, 6 wrong, 9 did not know)
Own terms: ctx as installed 116.5 of 139 (108 correct, 17 partial, 3 wrong, 11 did not know)
Own terms: questions where one arm scored higher ctx 24, transcripts 15 (p = 0.20)
Paraphrased: transcripts and ordinary tools 100.5 of 139 (91 correct, 19 partial, 6 wrong, 23 did not know)
Paraphrased: ctx as installed 112.0 of 139 (104 correct, 16 partial, 4 wrong, 15 did not know)
Paraphrased: questions where one arm scored higher ctx 26, transcripts 16 (p = 0.16)
Cost of 139 answers, ctx against transcripts $12.21 against $22.55; $14.19 against $27.15 (own terms; paraphrased)
Median time and tool calls per question 7 s and 2 to 3 against 19 to 24 s and 9 to 11
Questions on which the agent searched ctx 120 and 131 of 139 (own terms and paraphrased)

Measured 2026-11-12; check-in d6c91279f3d9; good until 2027-05-11.

eval/skill_eval.py --bank BANK run --set all --ask plain --cond B,H && eval/skill_eval.py grade RUNS, once per wording

Result file

Coding sessions: adding snippets or a reminder to the prompt

Two ways of helping without waiting for the agent to search: put matching snippets in front of it, or remind it to search. Both are hooks that ctx has and does not install by default.

Measure Result
Snippets added to the prompt 19.5 and 19.5 of 30 (own terms and paraphrased; added for 4 and 3 questions)
Reminder to search 20.0 and 18.5 of 30 (given for 1 and 0 questions)
ctx as installed, for comparison 24.0 and 24.5 of 30
Answers when snippets were added 4 of 4 and 1.5 of 3

Measured 2026-11-12; check-in 4095a7b2dab0; good until 2027-05-11.

eval/skill_eval.py --bank BANK run --set all --only HELD_OUT --ask plain --cond I,R && eval/skill_eval.py grade RUNS

Result file

209 coding sessions: ctx as tools over MCP, against the skill

ctx mcp offers search and turn as tools to clients that cannot run commands. This asks whether an agent given only those tools does as well as one given the skill and the command line.

Measure Result
Own terms: skill 116.5 of 139 (3 wrong)
Own terms: MCP tools 121.5 of 139 (6 wrong; better on 16, worse on 8, p = 0.15)
Paraphrased: skill 114.0 of 139 (4 wrong)
Paraphrased: MCP tools 116.0 of 139 (4 wrong; better on 18, worse on 17)
New tokens, MCP against skill 2.70 M against 2.70 M; 2.97 M against 3.11 M (own terms; paraphrased)
Cost of 139 answers, MCP against skill $12.01 against $12.21; $13.47 against $14.19
Median time per question 5 to 6 s against 7 s
Questions on which the agent searched 125 and 129 of 139 against 120 and 131
Commands or calls refused by permissions 2 and 4 against 12 and 13

Measured 2026-11-13; check-in a9ff52ecda29; good until 2027-05-12.

eval/skill_eval.py --bank BANK run --set all --ask plain --cond H,M && eval/skill_eval.py grade RUNS, once per wording

Result file

Neural embeddings find the right session for a reworded question three to four times as often as keywords do. This asks whether an agent then answers better, in three ways of using them.

Measure Result
Keywords (ctx as installed) 115.0 and 112.5 of 139 (own terms and paraphrased; 2 and 3 wrong)
Vectors 110.5 and 114.5 (better 13 worse 21, p = 0.23; better 15 worse 12, p = 0.70; 5 and 7 wrong)
Vectors first, skill reworded 115.0 and 113.5 (better 13 worse 12; better 19 worse 19; 4 and 4 wrong)
Injection of the five nearest turns 115.5 and 113.5 (better 18 worse 18; better 22 worse 22; 8 and 7 wrong)
Cost of 139 answers, every arm $12 in own terms, $13.50 to $14.20 paraphrased
Searches per question, median 2 to 3 in every search arm; 1 to 2 with injection

Measured 2026-11-13; check-in 6abc4db74538; good until 2027-05-12.

eval/skill_eval.py with a stand-in for `ctx search` (and, for one arm, `ctx inject`) backed by Voyage-code-4 vectors; all arms graded together, once per wording

Result file

209 sessions: what gets an agent to look in the archive

ctx only helps if the agent looks. This measures how much each way of prompting it to look is worth, from saying nothing to the note ctx gives at session start.

Measure Result
Told nothing 22.5 of 139 (99 did not know; searched ctx on 1)
Hint after a search 30.0 (better on 18, worse on 6 than told nothing, p = 0.02; searched ctx on 10)
Gate: first search turned back once 85.5 (better on 73, worse on 4, p below 0.0001; searched ctx on 90; 3 wrong)
As installed: skill and note 118.5 (searched ctx on 120; 2 wrong)
As installed plus the hint 117.0 against 117.5 (own terms; 111.5 against 113.0 paraphrased; the hint fired 14 times in 278 runs)
Gate against as installed better on 8, worse on 45
Cost of 139 answers $10 told nothing, $11.25 gate, $12.21 as installed
What the gate costs where no history is needed one more tool call, 1.4 s and 0.6 cents, once a session (60 questions about a repository's own documents, each a fresh session without the note: score 46.0 against 44.5 without the gate, new tokens up 3.5%; 3 of 60 went on to search ctx)
Time the gate adds to a search or shell command about 5 ms (on a 1.3 GB archive; see the hooks result)

Measured 2026-11-13; check-in 6d76fed1687c; good until 2027-05-12.

eval/skill_eval.py --bank BANK run --set all --ask plain --cond A,Q,G,H,P with SKILL_EVAL_POSTTOOL and SKILL_EVAL_PRETOOL set to the hook commands

Result file

Answering questions about past work

Agents answer questions whose answers exist only in past sessions. Both conditions have ctx and its skill; one also gets the one-line note that the session-start hook adds.

Measure Result
Score with the session-start note 73.5 of 90
Score with the skill alone 66.5 of 90
Questions where the note did better 16 (worse on 6; sign test p = 0.052)
New tokens with the note 7% fewer

Measured 2026-11-10; good until 2027-02-08.

eval/skill_eval.py run --set all --cond C,H && eval/skill_eval.py grade RUN

Result file

Reaching for the archive unprompted

Whether rewording the skill's trigger description around agent situations ("before asking the user", "after a compaction") makes agents search more often. It did not, so the wording was left alone.

Measure Result
Searched the archive, existing wording 18 of 23
Searched the archive, reworded triggers 19 of 23

Measured 2026-11-11; good until 2027-02-09.

eval/skill_eval.py run --set holdout --ask plain --cond C [--skill OLD.md]

Result file

A reminder when a prompt refers to earlier work

ctx recall adds one line telling the agent to search first. Agents already searched every time, so the hook is not installed by default.

Measure Result
Searched the archive, with the reminder 13 of 13
Searched the archive, without it 13 of 13

Measured 2026-11-11; good until 2027-02-09.

eval/skill_eval.py run --set all --only IDS --ask plain --cond C,R

Result file

Rules

Finding standing instructions in what a person types

A classifier proposes rules from a person's own turns; only the person accepts one. Matching cue words such as "always" and "never" is the baseline.

Measure Result
Claude Haiku 84% recall, 76% precision
DeepSeek 80% recall, 60% precision
Cue words 17% recall

Measured 2026-11-10; good until 2027-02-08.

eval/rules_bench.py --classify "CMD"

Result file

Flagging rules that have gone stale

A judge reads a rule beside the person's recent turns and may flag it only with their own words as evidence. Most stale rules are never contradicted in conversation, so recall is low by design; precision is what matters.

Measure Result
Claude Sonnet 3 flagged, 3 truly stale
Claude Haiku 9 flagged, 6 truly stale

Measured 2026-11-10; good until 2027-02-08.

ctx rules judge-with CMD && ctx rules judge

Result file

Which kinds of rule go stale

Whether rules should fade by age or by kind. Fading by age quieted about a quarter of rules that were still true, so ctx fades only status notes, 30 days after their file was last written.

Measure Result
Stale, rules in the person's own words 12%
Stale, corrections 44%
Stale, status notes 83%

Measured 2026-11-10; good until 2027-02-08.

bench/rules/decay.py

Result file

Finding stale memory notes

Whether stale notes can be found by checking them against the sessions, the verification step of the article's dreaming pass, or by noticing that a project has gone quiet.

Measure Result
Judge: stale caught, true flagged 1 of 29, 4 of 44
Silent project: stale caught, true faded 18 of 29, 3 of 44 (every catch was in a project with no session since the archive began)
Stale notes in active projects caught by either 0 of 11
Applied to the live archive 109 more notes faded (on the labels: 12 stale, 1 true; 8 stale and 10 true were already faded by the status-note rule)

Measured 2026-11-17; good until 2027-02-15.

Result file

Duplicate memory notes

Whether merging duplicate notes, one step of the article's dreaming pass, has anything to do.

Measure Result
Near-duplicate pairs by text 1
Pairs by description, at 30% and 50% word overlap 19 and 2

Measured 2026-11-17; good until 2027-02-15.

Result file

Instructions said more than once

Whether a proposed rule the person said again in another session can be served before they review it, and for how long.

Measure Result
Open proposals said again in another session 47 of 84
Rejected proposals said again 5 of 6 (all last said more than 30 days ago)
Accepted proposals said again 0 of 16
Repeats last said within 30 days 40, none rejected

Measured 2026-11-17; good until 2027-02-15.

Result file

A model judging rule proposals for the person

Whether a model can decide rule proposals on the person's behalf, since in practice nobody reviews the queue: 84 proposals were waiting.

Measure Result
Tentative rules as built, kept by the person 38 of 56 (68%) (served on repeats alone, with no model deciding)
Haiku, no context: served rules the person keeps 75%
Sonnet, no context: served rules the person keeps 70%
Opus with global instructions and project rules: agrees with the person 26 of 56
Opus with context: served, and kept by the person 16 served, 12 kept (75%)
Opus with context: dismissed as already covered, though the person called them true 19

Measured 2026-11-18; good until 2027-02-16.

Result file

Records

Holding back a question the archive may answer

A hook that stopped an agent's question once when the person seemed to have answered it before. Most questions agents ask are new decisions, so the hook was removed.

Measure Result
Questions it would have held back 18% (133 firings)
Firings where the earlier turns held the answer then given 16%
Firings where they held a conflicting answer 8%
Firings that were irrelevant 76%

Measured 2026-11-11; good until 2027-02-09.

Result file

Matching answers to the questions agents asked

ctx reads each question an agent asked and the person's answer from the archived turns. An answer must belong to exactly one question, including when it arrived after midnight or the session was cut off first.

Measure Result
Answers credited to more than one question 0
Questions left without a status 0

Measured 2026-11-11; good until 2027-02-09.

ctx decisions --all

Result file

Speed

Hooks and commands on a real archive

How long an agent session waits for ctx. Hooks run on every session start, compaction and subagent start, so they are held to a 3-second limit and should take a small fraction of it.

Measure Result
Session start: rules and archive note 5 ms (slowest 6 ms)
Session start: open tickets 5 ms (slowest 6 ms)
After a compaction: the brief 29 ms (slowest 62 ms)
Subagent start: archive note 6 ms (slowest 6 ms)
Prompt submitted: recall check 4 ms (slowest 4 ms)
Before a search: the gate, session told 5 ms (slowest 5 ms)
Before a command that is not a search: the gate 5 ms (slowest 5 ms)
Status line 6 ms (slowest 7 ms)
Search, two words 85 ms (slowest 223 ms)
Read a turn with its neighbours 5 ms (slowest 11 ms)
List decisions 278 ms (slowest 1190 ms)
List published pages 334 ms (slowest 622 ms)

Measured 2026-11-15; check-in eb38a24c3045; good until 2027-02-13.

bench/speed.py --runs 7

Result file

Hooks and commands on a real archive, machine heavily loaded

How long an agent session waits for ctx. Hooks run on every session start, compaction and subagent start, so they are held to a 3-second limit and should take a small fraction of it.

Measure Result
Session start: rules and archive note 17 ms (slowest 41 ms)
Session start: open tickets 16 ms (slowest 25 ms)
After a compaction: the brief 48 ms (slowest 1234 ms)
Subagent start: archive note 10 ms (slowest 12 ms)
Prompt submitted: recall check 8 ms (slowest 9 ms)
Status line 9 ms (slowest 21 ms)
Search, two words 148 ms (slowest 491 ms)
Read a turn with its neighbours 12 ms (slowest 22 ms)
List decisions 443 ms (slowest 6318 ms)
List published pages 552 ms (slowest 1631 ms)

Measured 2026-11-11; check-in 3b1415efd3e0; good until 2027-02-09.

bench/speed.py --runs 7

Result file

Background work

What ctx does away from the session: the hourly scan, the judge's pass over rules, and the one-off rebuild when the index format changes.

Measure Result
Hourly scan, processor time about 2.5 s (20 to 32 s elapsed on a heavily loaded machine)
Choosing rules to judge 0.12 s (about 140 s before an index was added)
One-off index rebuild 101 to 212 s

Measured 2026-11-11; good until 2027-02-09.

time ctx scan

Result file

Safety

Fuzzing and sanitizers

Redaction must never crash, must change nothing when run twice, and must leave no secret that a rule recognizes. Every input that ever broke one of these is kept as a seed and replayed on each check.

Measure Result
Bugs found by fuzzing this week 1 (a token rule matched across a line break, so redacting twice differed from once; fixed)
Saved inputs replayed for redaction 6

Measured 2026-11-11; good until 2027-02-09.

make check

Result file