Skip to content
context Check-in [1521145a06]
Login

Check-in [1521145a06]

Overview
Comment:Archive pic conversations from rows in pic.sqlite
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 1521145a062b7c8e87a76a0df0137caf36b06d8b0c3c9e7d45658bf76e526e20
User & Date: context-bot on 2026-11-19 19:00:39.185
Other Links: manifest | tags
Context
2026-11-19
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
Changes