Skip to content
context Timeline
Login

Timeline

50 descendants and 50 ancestors of 0ee3d8ff0d73f50b

2026-11-25
20:28
usage: pic journals as a source, by generation check-in: 670b921525 user: dmestas tags: usage-collect
20:14
usage: merge report fixes and the collection cap into handoff check-in: 86d9b20baf user: dmestas tags: usage-handoff
19:53
usage: windows by reset, current weeks, once a day, tagged logins check-in: 24b7fc938c user: dmestas tags: usage-report
19:38
usage: a scan collects for at most 3 minutes; collect --for check-in: bb6367a00c user: dmestas tags: usage-collect
19:27
usage: merge collect and report re-review fixes into handoff check-in: b5b9229203 user: dmestas tags: usage-handoff
19:17
usage: merge collect batches into report check-in: 29f6b1fefc user: dmestas tags: usage-report
19:17
usage: shorter read batches so a hook's write gets in check-in: 5e1cf98120 user: dmestas tags: usage-collect
19:05
usage: merge collect re-review fixes; limits-in keeps a login it cannot reread check-in: 65089e35a9 user: dmestas tags: usage-report
18:32
usage: unreadable logins, yielding batches, forget and exclude spend, stated prices check-in: 13c991ac63 user: dmestas tags: usage-collect
17:58
usage: handoff points after the scan lock; count the note's cost check-in: eb6894317b user: dmestas tags: usage-handoff
17:37
usage: merge collect and report fixes into handoff check-in: 8d42799fd1 user: dmestas tags: usage-handoff
17:16
usage: merge collect fixes; report shows unknown accounts check-in: 2c50f494a1 user: dmestas tags: usage-report
16:54
usage: Codex threads, accounts by time, one row per message, batched reads check-in: 6bedf75460 user: dmestas tags: usage-collect
16:26
usage: per-model handoff point from cost and quality, warned once check-in: 4825552f9d user: dmestas tags: usage-handoff
15:42
Create new branch named "usage-handoff" check-in: df5f0d16a0 user: dmestas tags: usage-handoff
15:42
usage: ctx usage report, status line limits, plan line at session start check-in: 8fa8ce721f user: dmestas tags: usage-report
15:25
land ticket-notes

Checks tested the merge with trunk at dce1250a901c; trunk has moved since. check-in: 5403d67dfe user: context-bot tags: trunk

15:22
Create new branch named "usage-report" check-in: 971fc75b50 user: dmestas tags: usage-report
15:21
usage: one row per model response, priced at its date; Codex limit readings check-in: 5b6dfe5e50 user: dmestas tags: usage-collect
14:56
land judge-nits check-in: fba3075c8d user: context-bot tags: trunk
14:46
ticket: notes with a pic conversation, held tickets at start, short ready closed check-in: 65766ccc16 user: dmestas tags: ticket-notes
14:42
Create new branch named "usage-collect" check-in: a6d4e1471b user: dmestas tags: usage-collect
14:26
rules: same-rule judge keeps long reasons, escapes prompt fields closed check-in: 2534a7fb25 user: dmestas tags: judge-nits
14:24
land handoff check-in: dce1250a90 user: context-bot tags: trunk
14:14
Create new branch named "judge-nits" check-in: e981495481 user: dmestas tags: judge-nits
14:13
land judge-same-rules check-in: ca120dd2c6 user: context-bot tags: trunk
14:03
handoff: a note for the next session in the project closed check-in: 5f7f5728e0 user: dmestas tags: handoff
13:45
merge trunk (telemetry-nits) into judge-same-rules closed check-in: 647193d659 user: dmestas tags: judge-same-rules
13:30
rules: same-rule judge decides once, sends whole texts, undoes exactly check-in: 0635f66d01 user: dmestas tags: judge-same-rules
13:20
land telemetry-nits check-in: f1fc3c37b1 user: context-bot tags: trunk
13:00
telemetry: roll a day 10 minutes after it ends; walk 30 days only closed check-in: 32fdccc11e user: dmestas tags: telemetry-nits
12:50
land telemetry-from-calls check-in: 62cc372b8b user: context-bot tags: trunk
12:49
Create new branch named "telemetry-nits" check-in: 4d47006cc8 user: dmestas tags: telemetry-nits
12:48
rules: the automatic judge decides same-rule groups, with undo check-in: a60e097dc2 user: dmestas tags: judge-same-rules
12:26
Create new branch named "judge-same-rules" check-in: 66facd8845 user: dmestas tags: judge-same-rules
12:25
telemetry: roll each day's Parquet from ctx_call, not the call log closed check-in: 489878dbc4 user: dmestas tags: telemetry-from-calls
12:07
Create new branch named "telemetry-from-calls" check-in: 99d59910e1 user: dmestas tags: telemetry-from-calls
12:05
land guard-quiet check-in: eb779588f7 user: context-bot tags: trunk
11:53
test: guard post time bound is the hook timeout for release builds only closed check-in: 46757e0ece user: dmestas tags: guard-quiet
11:24
guard: pass counting pipes and here-document text check-in: 0ef277aa9f user: dmestas tags: guard-quiet
00:20
land dup-turn-id check-in: 1e03b1d59e user: context-bot tags: trunk
00:02
archive: a turn id written twice in one transcript is stored once closed check-in: a3e57ef35a user: dmestas tags: dup-turn-id
2026-11-24
23:51
land findings check-in: 1b86ab513c user: context-bot tags: trunk
23:32
findings: fix review: watch hooks over budget, safer ingest, 10 s scale closed check-in: d671cfd3cd user: dmestas tags: findings
22:59
findings: take the call log in hourly, from where the last scan stopped and across rotation, into ctx_call (30 days); daily figures computed from it in SQL check-in: 7f318ce917 user: dmestas tags: findings
22:47
findings: daily call summaries in SQLite, detectors in ctx scan, ctx doctor, findings at session start, in the prompt hook, in ctx status and at the top of ctx page check-in: faaffa763f user: dmestas tags: findings
14:15
land secrets-guard check-in: b8df7ab563 user: context-bot tags: trunk
14:02
guard post: a lone surrogate decodes to U+FFFD so the reply stays UTF-8; a result over 16 MB exits 1 with a message instead of passing silently; howto names what passes unchecked closed check-in: bf51212f61 user: dmestas tags: secrets-guard
13:52
guard post: one pass over the JSON's strings (linear, every duplicate key, NULs kept), a field named data redacted with only base64 blobs left alone, and a host name under dp.st. not taken for a Doppler token check-in: eb30db897d user: dmestas tags: secrets-guard
13:30
ctx guard: keep secrets out of the conversation. PreToolUse turns back direct reads of secret files (Read on .env, cat/grep of one, < from one, env or printenv alone) with a way to use them unprinted; ctx guard post (PostToolUse) returns the tool's result with the archive's redaction applied, as updatedToolOutput for pic and updatedMCPToolOutput for Claude Code's MCP tools. Redaction now also catches Doppler service tokens with a config (dp.st.prd.TOKEN), version 4, so the archive is redacted again. check-in: 100c35d51c user: dmestas tags: secrets-guard
11:37
land stats-pic-journal check-in: 0ee3d8ff0d user: context-bot tags: trunk
11:11
stats reads the workspace's pic journal: pic refuses its user database ~/.pic/pic.sqlite as --db, so ctx stats runs pic usage --lapse on .pic/journal.sqlite in the working directory (CTX_PIC_JOURNAL overrides, empty skips) closed check-in: 6b3f03353c user: dmestas tags: stats-pic-journal
2026-11-23
23:19
land skill-catch-up check-in: 1257b95b32 user: context-bot tags: trunk
23:07
ctx skill: check archived work against its real state before reporting it

When picking up earlier work, an agent checks each branch, PR, ticket or check-in the archive mentions against git, gh, zit or the forge, and says which threads are merged, open, in flight, reverted or only planned. closed check-in: 78ad2dd0e7 user: dmestas tags: skill-catch-up

20:47
land turn-user check-in: 791b2bd0d3 user: context-bot tags: trunk
20:24
ctx turn --user: show only what the person typed in a stretch

The ctx repeats review (#27) found agents piping ctx turn through grep to read the user's side of a stretch. --user does it directly and says when the stretch has none. The ctx skill and how-to use it. closed check-in: f634c462a6 user: dmestas tags: turn-user

02:58
land artifacts-midnight check-in: 149ef419ec user: context-bot tags: trunk
02:36
artifacts: find a publish's command across a day boundary

A session is archived one document per day, so a publish just before UTC midnight can have its result in the next day's document. The command lookup searched only three turns back in the result's own document, so the publish was dropped (publisher pages) or lost its title (Artifact tool). It now also searches the last turns of the same session's previous day when the result is among a day's first turns. The publisher test failed between 00:00 and 02:00 UTC for this reason; a fixed-date test now covers it. closed check-in: 09cd4cfd60 user: dmestas tags: artifacts-midnight

02:35
land repeats check-in: c1de11a33a user: context-bot tags: trunk
02:13
ctx repeats: the shell commands agents run again and again, grouped by shape

Normalises archived shell calls (heredocs to their first statement, quoted text, scratch paths, home, hex ids and numbers to placeholders; leading cd, echo and assignments, quiet redirects and trailing head, tail or cut -c dropped), groups by the first six words, and lists the top shapes with session, call and project counts and the latest turn. --inline keeps calls that hand an interpreter a script. ctx_shape(command) exposes the shape to ctx sql. Reads the redacted archive only; no model, no writes. Ticket #27. closed check-in: 403549a9f6 user: dmestas tags: repeats

2026-11-22
20:32
land stats-pic check-in: 8e764bec7b user: context-bot tags: trunk
20:10
ctx stats ends with pic's measured compaction savings, from pic usage --lapse closed check-in: 03da28c1f3 user: dmestas tags: stats-pic
17:42
land docs-drift check-in: 2cc283c1ad user: context-bot tags: trunk
17:31
Docs: name ctx gate, learned rules and ctx page; say docs checks never read code; test that docs and commands agree closed check-in: 922a62f1a3 user: dmestas tags: docs-drift
12:35
land libfossil-8aa1823ae1 check-in: 7a387f8571 user: context-bot tags: trunk
12:35
Re-vendor libfossil from sql-ext-int 8aa1823ae1: autosync fixes and the onefile write-lock fix closed check-in: cd0ccbd7cf user: dmestas tags: libfossil-8aa1823ae1
2026-11-21
13:17
land ctx-now check-in: 695c5d4c7e user: context-bot tags: trunk
13:06
CTX_NOW: run as if the clock read a past moment

A default SQLite VFS that answers the time with CTX_NOW moves every 'now' in every query, so a replay of a past moment, on an archive copy cut there, gets the brief it would have had. An unreadable value is refused. closed check-in: 08c5064553 user: dmestas tags: ctx-now

2026-11-20
22:30
land telemetry-page check-in: 15ad4cb4f8 user: context-bot tags: trunk
22:19
ctx telemetry page: charts of hook calls, times, cut-offs, decisions and harnesses from the Parquet files, queried through duckdb closed check-in: f78798bfdc user: dmestas tags: telemetry-page
22:11
land telemetry-parquet check-in: 74215439ef user: context-bot tags: trunk
22:00
Compare only permission digits in the telemetry mode test; a setgid parent adds 2000 closed check-in: 0ce0c5fa21 user: dmestas tags: telemetry-parquet
21:57
Read file modes with GNU stat first; on Linux stat -f is file-system status check-in: 23ffb2d238 user: dmestas tags: telemetry-parquet
21:06
Keep the call log as daily Parquet files: ctx telemetry roll | path. End lines now record exit, outcome, bytes, harness and session; never prompt, tool or file text. check-in: 47ce90b6ce user: dmestas tags: telemetry-parquet
12:17
Read pic rows on ctx hook from pic check-in: 0096f1806c user: context-bot tags: trunk
12:06
Read pic's rows on ctx hook from pic, never its transcript_path

pic will run ctx hook after each reply and on exit, with transcript_path naming pic.sqlite and the conversation's rows committed first. On a hook marked "harness": "pic", ctx no longer queues transcript_path as a Claude Code transcript; it reads pic's database at once (ctx scan --pic, cheap when nothing changed), then runs the hourly scan when due, as before. closed check-in: ca35b2f5fc user: dmestas tags: pic-hook-archive

01:06
Keep memory working in any harness check-in: f0aab8b69b user: context-bot tags: trunk
00:44
Keep memory working in any harness: tool names in any case, a remember line, an index line

pic sends lowercase tool names (bash, read, edit, write, grep, find, ls), and it writes no memory notes the way Claude Code's model does.

- ctx gate, ctx hook post and the docs nudge compare one canonical tool name (lowercased; Glob is find, MultiEdit is edit), and ctx stats counts shell calls recorded in either case. - The session-start offer always carries one line saying what to save and how: ctx remember "TEXT", with --project '*' for every project. Its room is reserved before rules are placed, so a project whose rules fill the cap still gets it. - When rules are left out, the list ends with "N more: ctx rules", since the whole index is no longer loaded by the harness. - Every project with an archive now gets an offer, because the remember line is always there. closed check-in: a68b13a1e8 user: dmestas tags: harness-neutral-memory

00:05
Offer pic the memory notes Claude Code would load itself check-in: 952a8a7de4 user: context-bot tags: trunk
2026-11-19
23:43
Offer pic the memory notes Claude Code would load itself

pic will run ctx's hooks from ~/.pic/hooks.json and marks each run with "harness": "pic" in the input and PIC_HOOK=1 in the environment. ctx rules offer leaves out the memory folder of the starting directory because Claude Code loads it; pic loads no memory folder, so on a hook from pic those notes are offered too. closed check-in: 4223fe05aa user: dmestas tags: pic-hooks-offer

19:29
Rules for every coding agent, not only Claude Code check-in: 5b376bda6d user: context-bot tags: trunk
19:07
Rules for every coding agent, not only Claude Code: global and project instruction files from one agent table

ctx assumed Claude Code was the only agent. A table of agents (claude, codex, gemini, pi, opencode) now gives each one's global instruction file, with its env override, and the project file names it reads.

- Every existing global instruction file is a * rule with an agent: line; project CLAUDE.md, AGENTS.md and GEMINI.md are imported, and whole instruction files are excluded everywhere by name from the table. - The covered check judges a project rule only against the global instructions of the agents it reaches (rule_reach: Claude Code memory and ctx remember rules reach claude), and retires it only when the quote is in a global file of every one of them. Reasons name the files, kept in ctx_rule_covered_file; old CLAUDE.md-worded retirements still revive. - An import retires a global instruction-file rule only when its file is gone from disk, so scans run with different CODEX_HOME, XDG_CONFIG_HOME or CLAUDE_CONFIG_DIR no longer retire and re-import each other's globals; other rules retire as before when an import no longer sees them. - Messages and docs say global instructions and name the file. Each instruction-file rule gets one new version on the first scan after upgrading. closed check-in: f3ab690bb4 user: dmestas tags: agent-instructions

19:00
Archive pic conversations from rows in pic.sqlite check-in: 1521145a06 user: context-bot tags: trunk
18:39
Archive pic conversations from rows in pic.sqlite (picu_pi_session_line)

pic is moving its conversations off ~/.pic/sessions files into a table of ~/.pic/pic.sqlite holding the same Pi v3 lines. ctx now reads those rows: each decoded line goes through the existing Pi path, so turns get the same pi-

/<entry id> keys as the file form and nothing is archived twice across the switch; the old files are still read.

- The session id comes from the header row, kept in a per-conversation cursor (ctx_pic_cursor) with the last seq read and the workspace; a conversation whose header can't be decoded is skipped. - pic.sqlite is opened read-only, the conversation list is read first and rows in chunks, so no read is held across ctx's commits; a WAL database with no -wal or -shm is read immutable and re-checked after each read. - An unchanged database (size, mtime and change counter) is skipped on the hourly scan. - ctx exclude --project and --remove work for pic conversations by their workspace. - Deflated rows are inflated with zlib, with size checks; a bad row is skipped with a warning. - CTX_PIC_DB sets the path (default ~/.pic/pic.sqlite); empty skips it.

closed check-in: f6eb510ee2 user: dmestas tags: pic-rows
17:17
Reduce rule redundancy: covered-by-global retirement, identical-copy collapse, global-rule offers, restore check-in: 0f26acda1d user: context-bot tags: trunk
17:07
Reduce rule redundancy: covered-by-global retirement, identical-copy collapse, global-rule offers, restore

A benchmark on real rules found reworded duplicates inside a project are rare; the redundancy is project rules that restate the global CLAUDE.md, identical copies, and one rule saved in several projects.

- ctx rules restore KEY undoes any retirement or replacement, and neither automatic check retires that rule again while its text and the global text are unchanged. - Identical copies in one project collapse after each import (frontmatter and spacing ignored); a copy comes back when the rule it was collapsed into leaves force. - ctx rules covered sends active project rules to the automatic judge in bounded batches and retires one only with a verbatim quote of at least 20 characters from the global CLAUDE.md; the rule comes back when the quote leaves the global text, and a verdict is skipped if the rule changed during the call. - The decisions page offers groups of the same rule in several projects as one global rule; make global acts only on the listed keys, needs two projects, and refuses CLAUDE.md, AGENTS.md, global rules and rules with an until date. - ctx rules activity lists collapses, covered retirements and restores. tools/rule_redundancy.sh reports what each step would do on a copy of an archive.

On a copy of the live archive: 380 active rules, 3 retired as covered, 0 identical copies, 10 cross-project groups offered. closed check-in: 35bb724e4f user: dmestas tags: rule-redundancy

15:42
Keep a retired memory rule retired while its file is unchanged check-in: 8c855fd9ae user: context-bot tags: trunk
15:22
Keep a retired memory rule retired while its file is unchanged

ctx rules retire on a rule read from a memory file was undone by the next import, which runs in every hourly scan: the unchanged file was saved again without its status. Import now leaves a rule retired or replaced on purpose alone while the file's text is the same. Editing the file is a new statement and brings the rule back, and a file that returns after its removal retired the rule revives it as before. closed check-in: 2bb91b0d1f user: dmestas tags: rule-retire-sticks

11:43
Archive Pi and pic session files: a second format in the same pipeline, from ~/.pi/agent/sessions and ~/.pic/sessions (CTX_PI_ROOTS), searchable and readable like Claude Code turns check-in: fc25af9a2a user: context-bot tags: trunk
11:33
The scan test waits for the hourly scan the hook started in the background closed check-in: 6690e7eea7 user: dmestas tags: pi-sessions
11:19
Archive Pi and pic session files: a second format in the same pipeline, from ~/.pi/agent/sessions and ~/.pic/sessions (CTX_PI_ROOTS), searchable and readable like Claude Code turns check-in: 91b6237cac user: dmestas tags: pi-sessions
02:01
land bench-docs-tickets check-in: 9105c67d40 user: dmestas tags: trunk
01:52
Record the docs-tickets benchmark, before and after the offer change: closures right and guarded, prods delivered, uptake still fails closed check-in: 62463acb84 user: dmestas tags: bench-docs-tickets
01:04
The docs-ticket offer is one line that says to claim before working; ctx ticket done on a docs ticket is refused while the problem is still in the documents check-in: 2511537072 user: context-bot tags: trunk
00:54
The docs-ticket offer is one line that says to claim before working; ctx ticket done on a docs ticket is refused while the problem is still in the documents closed check-in: 54bcf456d9 user: dmestas tags: docs-offer-v2
2026-11-18
23:15
Redact the stored archive once more with redaction that repeats until stable check-in: 8ac818e396 user: context-bot tags: trunk
22:56
Redact the stored archive once more with redaction that repeats until stable closed check-in: bfdc97d36f user: dmestas tags: redact-v3
22:47
ctx status --json reports the current project for the status line; redaction repeats until stable, so a cut that changes what a later rule sees can no longer leave a secret behind (fuzz seed kept) check-in: f9f45e55a5 user: context-bot tags: trunk
22:37
Every possibly empty sort goes through the guarded helper, defined before its first use closed check-in: abdfc0b66c user: dmestas tags: status-json
22:19
ctx status --json reports the current project for the status line; redaction repeats until stable, so a cut that changes what a later rule sees can no longer leave a secret behind (fuzz seed kept) check-in: 8634d573cb user: dmestas tags: status-json
21:26
Docs tickets are filed automatically and offered to agents to fix or close without sign-off; claims recorded after the command runs; ctx ticket prod reaches the holding session through ctx hook post; the page shows tickets per project and refreshes itself check-in: 502d16c2cb user: context-bot tags: trunk