Artifact 96cef7f86229703ba07d1407708e4595189227a2f93a3914788cc9d2eec7e4fd:
- File
README.md
— part of check-in
[76403049b1]
at
2026-11-09 18:36:06
on branch archive
— 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. (user: dmestas, size: 1252) [annotate] [blame] [check-ins using] [more...]
# context ctx keeps agent sessions and knowledge durable, shares them between people and machines, and makes them cheap to search. It is being built as one C binary on SQLite and libfossil. So far it creates its database and archives agent transcripts, redacted, into a private repository; search comes next. ## What is here - `schema/index.sql`: ctx's tables in the machine's one SQLite file: the search index, project mapping and capture positions. - `schema/ticket-table.sql`: the tickets agents and people work on, for each shared Fossil repository. - `schema/check.sql`: checks for the index schema. - `bench/`: a retrieval bench that scores grep and BM25, with the metrics in SQL. Source documents are check-ins, the compiled wiki is Fossil wiki in Markdown, work items are tickets, and session transcripts are technotes in a per-person repository. ## Building `make` builds `./ctx` from the SQLite and libfossil sources in `vendor/`, and `make test` checks it. It needs a C compiler and zlib. ## The bench `bench/run.sh` reads pinned corpus copies and their labels from `~/projects/ctx-corpora` (or `CTX_CORPORA`). It needs ripgrep and a `sqlite3` that can load extensions, so on macOS use Homebrew's rather than `/usr/bin/sqlite3`.