Artifact f96267caa9b910b5fc42dcc0dee339d1984491cf1da5d92c62574b4652f83da8:
- File
README.md
— part of check-in
[6f0b8d14ad]
at
2026-11-09 07:13:32
on branch schema-one-file
— 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. (user: dmestas, size: 1018) [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. There is no working binary yet. ## 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. ## 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`.