Skip to content
context Timeline
Login

Timeline

50 ancestors of 05c5f0b429db9d2d

2026-11-11
19:27
Record each published artifact page and the version the person approved; carry recent pages in the brief closed check-in: 05c5f0b429 user: dmestas tags: artifacts
19:04
Add a recall hook and a note for subagents; measure reach with plainly asked questions check-in: f27198e6d4 user: context-bot tags: trunk
18:53
Add a recall hook and a note for subagents; measure reach with plainly asked questions closed check-in: 03b134f8e9 user: dmestas tags: reach
17:16
Pick rules to judge in one pass over an index of speakers, and stop a model call after 120 seconds check-in: 44d491f29a user: context-bot tags: trunk
15:16
Pick rules to judge in one pass over an index of speakers, and stop a model call after 120 seconds closed check-in: 841613f578 user: dmestas tags: judge-fast
15:12
Record decisions from AskUserQuestion turns and brief a session on where it stood after a compaction check-in: 4b3a0f25d3 user: context-bot tags: trunk
14:56
Record decisions from AskUserQuestion turns and brief a session on where it stood after a compaction closed check-in: 5a57d23172 user: dmestas tags: decisions-brief
03:38
Ask about a rule only with the person's own words as evidence; monthly review; scan on any turn check-in: 15c4935f34 user: context-bot tags: trunk
03:24
Ask about a rule only with the person's own words as evidence; monthly review; scan on any turn

A judge command (ctx rules judge-with CMD, any command that answers on stdout) checks active rules in projects with new turns, at most weekly per rule and 20 per run, beside the person's latest 60 turns there. It flags a rule only with a quote of at least four words and 24 characters found exactly in one of those turns, so it cannot invent a contradiction or stitch one from two turns. A failing or unreadable answer records nothing. Instruction files (CLAUDE.md, AGENTS.md) are never judged.

The SessionStart offer then asks about at most one flagged rule, once in 30 days, with the quote, at a natural break; the answer runs ctx rules keep (not asked again for 90 days) or retire. ctx rules review lists up to 30 rules not reviewed or kept in 90 days, and the offer mentions it once a month.

The hourly scan, which archives, imports rules, proposes, judges and syncs, now also rides on Stop events: sessions that run for days and start once got it only on resume or compaction.

In an experiment on 42 labelled rules (bench/rules/stale_judge.py), Sonnet flagged 3, all stale; Haiku flagged 9 with 3 wrong. An independent audit found seven problems, all fixed with tests: instruction files judged, malformed answers recorded as checks, same-day turns reversed, a crash on an early model failure, a short-quote bar, quotes spanning turns, raw wait status in messages.

A kept table records checks, so the user version rises to 5. closed check-in: efad0e0a17 user: dmestas tags: rule-judge

01:08
Fade memory status notes 30 days after they were written

Checks tested the merge with trunk at 14aff6c7c5bc; trunk has moved since. check-in: 33be4383d3 user: context-bot tags: trunk

00:55
Add a bench that replays rule-decay policies against labelled rules check-in: b3865cf364 user: context-bot tags: trunk
00:52
Fade memory status notes 30 days after they were written

Rules now record their kind (a memory note's type) and the day their file was last written. A memory note of type project is a status snapshot; it fades 30 days after it was written and comes back when edited. Rules in the person's own words and corrections never fade on their own. Faded rules are not offered or searched by default; ctx rules --all and search --history show them.

The bench chose this over age: on 42 labelled rules, 12% of the person's own rules were stale, 44% of corrections and 83% of status notes, while age-based policies quieted a quarter of the true rules. On the real archive 83 of 519 imported notes fade; on the labels, 3 faded were stale and 1 was true. closed check-in: bab2180482 user: dmestas tags: fade-by-kind

00:43
Add a bench that replays rule-decay policies against labelled rules

bench/rules/decay.py scores policies that quiet rules (none, a flat 90 days, a review schedule renewed by use, and the schedule with dormant-project and missing- file checks) against private labels of which rules are still true, at a given day, with timing for rules whose staleness has a month and a count of how often an agent would ask.

On 42 labelled rules the age-based policies caught 60 to 67% of the stale rules but quieted 26 to 30% of the true ones; renewal by use almost never fired. The kind of rule separated them better: 12% of rules in the person's own words were stale, 44% of memory feedback notes, 83% of memory project notes. closed check-in: d273928542 user: dmestas tags: decay-bench

00:19
Install the rules offer hook; keep redaction stable after an earlier redaction check-in: 14aff6c7c5 user: context-bot tags: trunk
00:12
Redaction is stable when a keyword's value follows an earlier redaction

The redaction fuzzer found an input that redacting twice changed: after token: the value was too short to redact, until other rules' markers made it long enough on a second pass. A keyword's value now counts only up to an earlier [REDACTED] marker. A first pass never sees such a marker, so archived text is unaffected. The input is kept as a seed. closed check-in: f39feb5b03 user: dmestas tags: rules-offer-hook

00:07
Install the rules offer hook: it helped on Claude and DeepSeek

On 90 questions about past work, Claude with the SessionStart hook scored 73.5 against 66.5 without it (better on 16, worse on 6, p=0.052), with the same wrong answers, half the don't-knows and 7% fewer tokens. On DeepSeek, agents used ctx in 89 answers instead of 66, needed half the tool calls and time, and none timed out.

The plugin now runs ctx rules offer at session start, and the how-to says so. check-in: 1ec6241dca user: dmestas tags: rules-offer-hook

2026-11-10
23:47
Propose rules with any classifier command instead of cue words check-in: 4e05baca7c user: context-bot tags: trunk
23:34
Propose rules with any classifier command instead of cue words

Cue words found 17% of the person's standing instructions on 1,000 hand-checked turns, at 42% precision. A model judging each turn does far better: Haiku 84% at 76%, DeepSeek 80% at 60%.

ctx stays model-free. A classifier is any command that reads a prompt on stdin and answers on stdout; ctx rules classifier CMD saves it (CTX_CLASSIFY overrides), and ctx rules propose sends unclassified turns the person typed, never tool output, in batches of 25 with ctx's own prompt. Only answers about turns in the batch are recorded, as proposals the person accepts or rejects. A failed or unreadable answer leaves the turns for the next run. The hourly scan proposes when a classifier is set. ctx rules candidates, prompt and suggest let other tools do the same job.

eval/rules_bench.py scores any classifier command against a private labelled set.

A kept table records classified turns, so the user version rises to 4. closed check-in: bf53ab041b user: dmestas tags: classifier

22:32
Propose rules from what the person types; rules offer hook; eval condition H check-in: 0ba6400153 user: context-bot tags: trunk
22:18
Propose rules from what the person types; rules offer hook; eval condition H

Turns the person typed that read like standing instructions are proposed as rules when archived; tool output and harness text never are. ctx rules proposed lists them, accept turns one into a rule linked to its turn, reject keeps it from coming back, and scan looks through turns archived earlier. On the real archive a scan finds 124 proposals in 3 seconds, among them rules that never reached memory.

ctx remember --from TURN records the turn a rule came from by its transcript id, which a rebuild keeps, and ctx turn accepts that id.

ctx rules offer is a SessionStart hook: it says past sessions are searchable, lists rules Claude Code would not load itself, and mentions waiting proposals. It is not installed by default; the eval's new condition H measures it.

eval: tool calls are recorded per answer, --deadline sets the time each answer may take, and the harness tests no longer read the real archive.

The kept schema gains ctx_rule_proposal, so the user version rises to 3. closed check-in: e29bf9a7f9 user: dmestas tags: proposals

18:26
Keep standing rules: ctx remember, ctx rules, and CLAUDE.md and memory files imported check-in: c98075c647 user: context-bot tags: trunk
18:10
Keep standing rules: ctx remember, ctx rules, and CLAUDE.md and memory files imported

A rule is an instruction for every future session. Each is a technote in the private repository tagged rule, so every version is kept and rules sync. Its header records key, project, source file, origin session, until date, and status with the rule that replaced it and why.

ctx remember TEXT [--project P] [--until DATE] adds one. ctx rules lists those in force for this project and every project; --all shows retired, replaced and expired ones; ctx rules retire KEY --reason WHY [--by KEY] retires or replaces. Every scan imports ~/.claude/CLAUDE.md, each project's CLAUDE.md and AGENTS.md, and Claude Code's memory files, redacted as transcripts are: a changed file makes a new version, a removed one retires its rule. A memory file's project is the one its neighbouring transcripts were archived under, then the session it names, then the folder its name stands for, decoded against the disk.

Rules are indexed from the technotes as their own kind, newest technote per key, and search returns those in force for this project and every project. Technotes tagged rule are never indexed as sessions. The derived schema version rises to 3, so the index rebuilds once.

On the real archive: 507 rules from memory files and CLAUDE.md files, imported in about a second.

eval: --via FILE routes every model call through the env of a Claude Code settings file, such as a proxy to cheaper models; --yolo runs answers without permission checks. Each run records its route and the commands it was denied; compare refuses runs with different models, routes or permissions. The test suite now never reads the real Claude config. closed check-in: b70296c566 user: dmestas tags: rules

16:15
Update libfossil to e84af25d79; fuzz SQLite with the function sanitizer on check-in: 12e86a9f6a user: context-bot tags: trunk
16:02
Update libfossil to e84af25d79; fuzz SQLite with the function sanitizer on

libfossil's fsl_sqlext_init now takes sqlite3_api_routines const *, so SQLite's call through the extension pointer is well typed. ctx's declaration matches it, and the fuzzers' sqlite3.o no longer turns -fsanitize=function off. The alignment exemption for libfossil.o stays until the SHA-1 fix reaches onefile. closed check-in: 8fe1a2a0aa user: dmestas tags: libfossil-e84af25d79

15:02
Tell the person's turns from tool output and harness text, and drop request-blob copies check-in: 0d045e82e4 user: context-bot tags: trunk
14:49
Tell the person's turns from tool output and harness text, and drop request-blob copies

Transcripts label tool results, reminders, notifications and peer messages as the user's. Turns now record user (what the person typed), assistant, tool or meta, from origin.kind, isMeta, the message parts and harness openings, and technotes carry the speaker so it syncs. The technote parser reads all four.

Records that are not user or assistant lines are skipped. api-request-blob records copy the conversation with no timestamp, and were archived as extra turns.

Once per machine, the scan corrects the existing archive from the transcripts still on disk, matched by session and timestamp since older headings carry no turn id. On the real archive: 182,840 turns now say tool or meta, 48,820 request copies are removed from 1,120 technotes, 9,926 turns remain the person's, and a rebuild reproduces the result. Each technote is read and saved in one write transaction, and the done marker is written last.

The ctx skill and the how-to describe the four speakers. closed check-in: 6b84c8be59 user: dmestas tags: speakers

07:43
Add ctx stats; ctx remote writes a missing local copy; usage knows every command check-in: f430dde4b9 user: context-bot tags: trunk
07:30
Add ctx stats; ctx remote writes a missing local copy; usage knows every command

ctx stats shows, per week and per project, session days and how often agents really used ctx: searches, searches with no matches, ctx turn reads and skill loads. It counts commands that ran, not mentions in arguments or heredocs, through a ctx_calls(body, sub) SQL function that ctx sql can use too, and runs in seconds on a 500,000-turn archive. A new fuzz target covers the command scanner.

ctx remote NAME FILE, given a local file that does not exist, writes a copy of the repository there, readable only by its owner, so sharing no longer needs a manual fsl_export. An existing file is never overwritten.

eval/skill_eval.py usage now reads the command list from ctx's own usage text, so wiki, source, project and the other newer commands are no longer counted as unknown. closed check-in: a4373d90f3 user: dmestas tags: stats

06:28
Rewrite the README and add a how-to guide; --as-of serves undated sources check-in: dc66ca307b user: context-bot tags: trunk
06:15
Rewrite the README and add a how-to guide; --as-of serves undated sources

README.md is now a front page: what ctx does, install, a first look, how it is stored, checks, releases and the license. docs/howto.md walks through each task: install, archiving, search, audit, projects, tickets, sources, supersession, the wiki, syncing machines, the opt-in inject hook, rebuild, the skill eval, raw SQL and the environment. Every command in it was run against a sandbox database and Fossil repository, and the docs were reviewed against the code.

search --as-of compared a source's valid-from date directly, so a source added without --valid-from, such as any evergreen one, never appeared. A missing date now means valid from the start, with a test. closed check-in: c96b21ad6d user: dmestas tags: docs

06:01
License ctx under the BSD 2-Clause license check-in: 5b9690f2b2 user: context-bot tags: trunk
05:49
License ctx under the BSD 2-Clause license

The plugin manifest names it and release archives carry it beside libfossil's. closed check-in: 2b6dbda9ad user: dmestas tags: license

05:11
Build either Linux architecture with tools/dist-linux.sh check-in: 992dc470d9 user: context-bot tags: trunk
04:57
Build either Linux architecture with tools/dist-linux.sh closed check-in: a4aa00bbad user: dmestas tags: distarch
04:52
Release archives as a Claude Code plugin, and one command for every check check-in: 9cb40830bf user: context-bot tags: trunk
04:44
Fail make fuzz when a fuzzer fails; the pipe through tail hid its status closed check-in: 5fbe03cc46 user: dmestas tags: check
04:39
Release archives as a Claude Code plugin, and one command for every check

make dist builds build/dist/ctx-VERSION-OS-ARCH.tar.gz: bin/ctx, the ctx and ctx-wiki skills, hooks that archive each session, a local marketplace entry, install notes and libfossil's license. On Linux zlib is linked statically. tools/dist-linux.sh builds the Linux archive in Ubuntu 22.04 under docker so it runs on glibc 2.34 or later. make check runs everything CI runs, and CI now runs make check. check-in: ee9ba5ffcd user: dmestas tags: check

04:38
Run the suite and every saved fuzz input under Fil-C check-in: 4f68b6ac9b user: context-bot tags: trunk
04:30
Add the fuzz replay driver and the Fil-C script closed check-in: 0089dfd06a user: dmestas tags: filc
04:30
Run the suite and every saved fuzz input under Fil-C

make filc builds ctx and the four fuzz harnesses with Fil-C, runs test/run.sh against the Fil-C binary and replays the seeds and corpora through a small driver that needs no libFuzzer. tools/filc.sh fetches a pinned, checksummed Fil-C release and zlib, builds zlib with it, and runs make filc; it skips on anything but Linux x86_64 and aarch64. CI runs it. The link rule now honours LDFLAGS. check-in: a751f20e85 user: dmestas tags: filc

04:08
Version the schema, and rebuild derived tables instead of migrating check-in: 3345845225 user: context-bot tags: trunk
04:02
Version the schema, and rebuild derived tables instead of migrating

State and derived tables are split into schema/state.sql and schema/index.sql, both applied on open. When the derived version changes, ctx rebuilds those tables from the repositories once; ctx rebuild does it on request. Technotes now record each turn's id, so a rebuilt index still knows which turns it holds. closed check-in: c7e932c08b user: dmestas tags: schema-version

03:53
Fuzz the parsers and run the suite under sanitizers check-in: 01079ca3a2 user: context-bot tags: trunk
03:50
Make the eval's copy without the wiki before parallel runs share it closed check-in: 942c243e70 user: dmestas tags: fuzz
03:43
Fuzz the parsers and run the suite under sanitizers

make sanitize runs every test under AddressSanitizer and UBSan, and make fuzz runs libFuzzer on redaction, transcript lines, wiki pages and technotes, checking properties as well as crashes. They found real bugs, fixed here: a token glued to another survived redaction, redaction was not idempotent around Doppler output and URL credentials, and a Doppler rule matched its own marker. Two findings are in libfossil and are reported there; only those checks are off, only for those objects. check-in: e827ba9421 user: dmestas tags: fuzz

02:58
Add ctx inject, a selective prompt hook, and an eval condition for it check-in: b1d696dce4 user: context-bot tags: trunk
02:56
Add ctx inject, a selective prompt hook, and an eval condition for it

It adds up to three turns from earlier sessions of the same project, only when a turn holds at least two of the prompt's rare words, and nothing otherwise. The eval can now compare the skill with and without it. Not yet installed. closed check-in: 5357595347 user: dmestas tags: inject

02:52
Link each cited check-in from a page sources section check-in: 2964b48ad7 user: context-bot tags: trunk
02:50
Link each cited check-in from a page's Sources section

In a Markdown page Fossil records a backlink for [label](/info/HASH) but not for a bare [HASH], so check-ins could not list the pages citing them. closed check-in: 971af3351b user: dmestas tags: backlinks

02:28
Keep NUL bytes out of technotes, and read old ones whole check-in: e0ce171eca user: context-bot tags: trunk
02:26
Keep NUL bytes out of technotes, and read old ones whole

Tool output can carry NUL bytes. Stored in a technote they end the text for any C reader, so another machine indexed only part of 22 sessions. New turns are stored without them, and existing technotes are read by length. closed check-in: 757ca132d4 user: dmestas tags: nul-bytes