Skip to content
context Timeline
Login

Timeline

50 ancestors of b3865cf3641ea83b

2026-11-11
00:55
Add a bench that replays rule-decay policies against labelled rules check-in: b3865cf364 user: context-bot tags: trunk
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

02:20
Keep undated turns whole when another machine rebuilds sessions check-in: ffab6e6436 user: context-bot tags: trunk
02:18
Keep undated turns whole when another machine rebuilds sessions

A turn with no timestamp has a heading with nothing after its role, and parsing read on into the next line. About four percent of real turns were merged into the turn before them on the other machine. closed check-in: e964676ffd user: dmestas tags: undated-turns

02:08
Add sync, and restore tests a bad edit removed check-in: 1e2424b516 user: context-bot tags: trunk
02:06
Add sync, and restore tests a bad edit removed

ctx remote and ctx sync push and pull each repository with a remote. A second machine starts with ctx init --clone and indexes the first one's sessions. A claim syncs before and after, so two machines cannot both take a ticket.

The previous landing's edit to the deadline test deleted the tests that followed it, from audit through retirement. They are back. closed check-in: 107db11b5e user: dmestas tags: sync

01:43
Measure the wiki against plain sources, and fix what that found check-in: e86a9ed2a9 user: context-bot tags: trunk
01:41
Measure the wiki against plain sources, and fix what that found

The eval gains a sources-only condition and two wiki conditions, and grades in batches. ctx wiki why keeps a sentence whole across abbreviations. The deadline test no longer depends on how busy the machine is. closed check-in: b8b2a89501 user: dmestas tags: wiki-eval

01:12
Tell the compile skill to keep hedges, scope and credit check-in: b8b47e198c user: context-bot tags: trunk
01:11
Tell the compile skill to keep hedges, scope and credit

A review of the first compiled pages found five of 28 claims overstated, each by dropping a caveat or attribution the source carried. closed check-in: 2947c16a6f user: dmestas tags: skill-caveats

01:10
Fix what the first real run of the wiki found check-in: 891e1788df user: context-bot tags: trunk
01:08
Fix what the first real run of the wiki found

Repository names keep only letters and digits, because libfossil refuses a name that extends another with an underscore. Spaces in page links are encoded instead of breaking the link. The compile skill says where tickets live. closed check-in: f14ffaa27a user: dmestas tags: real-run-fixes

00:57
Clone project repositories, and add the first research sources check-in: 891147b28d user: context-bot tags: trunk