Skip to content
context Timeline
Login

Timeline

50 descendants and 45 ancestors of b9985e54072c1e2e

2026-11-11
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
00:55
Clone project repositories, and add the first research sources

zit repositories are not plain Fossil files, so a project is cloned over the sync protocol. The sources are the research behind the wiki design. closed check-in: b9985e5407 user: dmestas tags: pilot-sources2

00:53
Add the wiki compile skill and the first research sources check-in: f1f018f0f5 user: context-bot tags: trunk
00:51
Add the wiki compile skill and the first research sources

The sources are the research behind the wiki design, with recorded origins. closed check-in: d19b59060e user: dmestas tags: pilot-sources

00:50
Generate wiki index and health pages and a review queue check-in: 9b3311104b user: context-bot tags: trunk
00:48
Generate wiki index and health pages and a review queue

The index, health page and queue are computed from what is stored. Staleness times impact orders review. Automatic retirement touches only what nothing uses, and anything else goes to a person as a ticket. closed check-in: 415a62c12b user: dmestas tags: queue

00:43
Retire old information without erasing it check-in: 66d706d0fd user: context-bot tags: trunk
00:41
Retire old information without erasing it

A source can be replaced, amended or retracted through an append-only event. Search stops serving what was retired, and re-pinning moves each claim whose quote survives and opens a ticket for each one that does not. closed check-in: d27b3ce9c1 user: dmestas tags: retire

00:32
Add the wiki write gate and provenance commands check-in: 6d2e57dd34 user: context-bot tags: trunk
00:30
Add the wiki write gate and provenance commands

ctx wiki save refuses a page unless every claim is cited, every quote exists at its pinned version, and every source has a recorded origin. ctx wiki why follows a claim back to its origin, and ctx source uses lists what depends on a source. closed check-in: 16e7803c2a user: dmestas tags: wiki-gate

00:24
Index sources and wiki pages and check their citations check-in: b03078cbfd user: context-bot tags: trunk
00:22
Index sources and wiki pages and check their citations

ctx index reads a project repository at trunk, makes sources and Markdown wiki pages searchable, and records each citation with its pinned check-in, file hash and whether its quote is really there. ctx project pull updates the repository. closed check-in: c3db3464d4 user: dmestas tags: index

00:16
Add projects and sources with recorded origins check-in: 1b1e114631 user: context-bot tags: trunk
00:14
Add projects and sources with recorded origins

A project maps a directory to a shared repository, created or imported. A source cannot be added without saying where it came from, keeps its exact bytes and hash beside it, and is never edited in place. A check finds anything that drifted. closed check-in: 61015632b8 user: dmestas tags: sources

2026-11-09
23:53
Update libfossil to onefile ab34f5e39c check-in: 8021c6d57d user: context-bot tags: trunk
23:50
Update libfossil to onefile ab34f5e39c

Adds clone into a named repository, reads inside writing statements, and writers that wait for the busy timeout. Build it with the same SQLite flags. closed check-in: 072a95d3a8 user: dmestas tags: libfossil-ab34

23:35
Add tickets: new, ready, show, claim, done, drop check-in: 601c96e302 user: context-bot tags: trunk
23:33
Add tickets: new, ready, show, claim, done, drop

Tickets live in the private repository until shared ones exist. A claim is atomic, session start offers ready work, and audit findings can become tickets. closed check-in: 97a66a25ee user: dmestas tags: tickets

23:26
Add ctx audit, sharing one rules table with redaction check-in: 8c26a6ac65 user: context-bot tags: trunk
23:24
Add ctx audit, sharing one rules table with redaction

A new rule now redacts future sessions and finds the same secret in stored text. Audit reports locations and shapes only, keeps counts per run, and lets a false alarm be allowed by fingerprint. Adds more token prefixes and secret manager JSON. closed check-in: 83b295c861 user: dmestas tags: audit

22:54
Harden the skill eval from its first real run check-in: 06d07db45e user: context-bot tags: trunk
22:52
Harden the skill eval from its first real run

Question writing retries and reports its work, the workspace no longer counts as an isolation breach, and build caches stay out of the copies. closed check-in: 064ece271d user: dmestas tags: eval-fixes

22:02
Read only real commands in the eval usage report check-in: 81def434bf user: context-bot tags: trunk
22:00
Read only real commands in the eval usage report

Code in heredocs and Go parameters named ctx were counted as commands. Parallel author runs no longer overwrite each other. closed check-in: 172175da4c user: dmestas tags: usage-parse

21:59
Add a harness to measure and gate the agent skill check-in: b4e311f737 user: context-bot tags: trunk
21:58
Add a harness to measure and gate the agent skill

Questions come from private sessions and stay in ~/.ctx/eval. Skill changes are tried on a dev set and judged on a held-out set, in isolated runs graded blind. A stand-in for the model lets CI test the harness itself. closed check-in: d3b3799016 user: dmestas tags: skill-eval

21:54
Teach the skill what the benchmark showed check-in: 4cdf48c0b3 user: context-bot tags: trunk
21:52
Teach the skill what the benchmark showed

Short searches, other words for the same thing, checking the archive even when the log seems to explain it, and how to read only the human side. closed check-in: b39b961c69 user: dmestas tags: skill2

21:36
Add an agent skill for searching the archive check-in: 627850b711 user: context-bot tags: trunk
21:34
Add an agent skill for searching the archive

Tells agents when past sessions may hold the answer and how to search for what a session would have contained. closed check-in: e8f66e6094 user: dmestas tags: skill

20:14
Hand the capture deadline to child runs check-in: 26b3444795 user: context-bot tags: trunk
20:12
Hand the capture deadline to child runs

fork clears alarms, so scan and archive runs outlived the parent that held the lock. Each child now gets the time left, and a test covers it. closed check-in: e92238c4a5 user: dmestas tags: deadline

20:07
Capture sessions from hooks and a periodic scan check-in: 4cdbcb0331 user: context-bot tags: trunk
20:06
Capture sessions from hooks and a periodic scan

A hook appends to a spool file and returns at once. One detached process at a time archives what is spooled, under a one-hour deadline. A scan catches transcripts no hook reported. closed check-in: c2db98adac user: dmestas tags: hooks

20:01
Assign each archived turn to its own project check-in: c9220eb0ca user: context-bot tags: trunk
19:59
Assign each archived turn to its own project

A session can start in one directory and work in another, so a project taken from the first line filed whole sessions in the wrong place. Each turn now uses its own directory, resolved to the repository containing it. closed check-in: cf7b85f0a1 user: dmestas tags: turn-project

19:55
Add ctx search and ctx turn check-in: bd7d737e35 user: context-bot tags: trunk
19:53
Add ctx search and ctx turn

Search archived turns with BM25, within the current project by default, and read a turn with its neighbours. Very long turns are cut unless --full is given. closed check-in: 5ad592effa user: dmestas tags: search

18:38
Archive transcripts into the private repository check-in: 30dc085279 user: context-bot tags: trunk
18:36
Archive transcripts into the private repository

`ctx archive` saves new turns as one technote per day and indexes them, and the technote, the index and the read position commit together. A rerun stores nothing, a line still being written waits, and a replaced file is read again without storing a turn twice. closed check-in: 76403049b1 user: dmestas tags: archive

18:27
Redact secrets during extraction check-in: de48c217d0 user: context-bot tags: trunk
18:26
Redact secrets during extraction

Remove tokens, JWTs, private keys, bearer values, credentials in URLs and secret-named assignments before anything is stored, in a single pass, without altering ordinary text such as "token limit". closed check-in: e02dfb0bb0 user: dmestas tags: redact

17:35
Add the ctx host and transcript extraction check-in: fb34758bd3 user: context-bot tags: trunk
17:34
Add the ctx host and transcript extraction

Build one binary from vendored SQLite and libfossil. `ctx init` creates the database, and `ctx extract` turns an agent transcript into numbered turns with tool output kept and very long output cut. closed check-in: c758967eda user: dmestas tags: host-and-extract

07:14
Update the schema for one SQLite file check-in: 3d4c8f2d64 user: context-bot tags: trunk
07:13
Update the schema for one SQLite file

Repositories now live beside the ctx tables, so ctx_repo names them instead of pointing at files. Add ctx_project to map directories to projects, ctx_capture to record how far each transcript has been archived, and a turn id so a re-read skips what is already stored. closed check-in: 6f0b8d14ad user: dmestas tags: schema-one-file

01:00
Start ctx on zit check-in: 23c9c08e56 user: dmestas tags: trunk