Index once
Run ctx init at the root of a project. It creates a local .ctx/ SQLite index.
Stop manually collecting files for Cursor, Claude Code, Codex, and other coding agents. Describe the job once — Context Compiler ranks the relevant files, trims noise, and produces a paste-ready context pack.
$ ctx "fix the auth race condition"
→ indexing repo if needed…
✓ Selected 4 files · ~3.1K tokens
1. src/auth/middleware.ts 92%
2. src/auth/session-store.ts 78%
3. src/types/session.ts 71%
4. tests/auth-race.test.ts 65%
✓ Context copied to clipboard
Install
The installer downloads a release binary when one exists. Until public releases are cut, it automatically falls back to building from GitHub source with Cargo.
curl -fsSL https://ctx-compiler.getaxiom.ca/install.sh | sh
# then, inside any repo
ctx init
ctx "add tests for the payment webhook"
Quick Test
After installing, run this command to confirm ctx is on your PATH and ready to use.
ctx --version
Workflow
Run ctx init at the root of a project. It creates a local .ctx/ SQLite index.
Run ctx "fix login timeout" or ctx compile -b 16000 "task".
The selected files are formatted into a context pack and copied to your clipboard.
Combines lexical/semantic matching, dependency graph signals, and history from previous sessions.
Keeps types, signatures, and logic while removing obvious boilerplate and comments.
The current MVP uses local embeddings and SQLite. No source code has to leave your machine.
Docs now match the actual CLI: ctx init, ctx compile, shorthand ctx "task", status/history/done/watch.
Wiki
ctx init.ctx "describe the feature or bug".ctx init — create the local index.ctx "task" — shorthand compile with default budget.ctx compile -b 16000 -m 8 "task" — custom token budget and file limit.ctx status — show indexed files/languages/history.ctx reindex — rebuild from scratch.ctx history / ctx done — view and save task history.ctx watch — periodically rebuild while files change.ctx reindex.ctx compile -o context.md "task"..ctx/; it is local cache data.Verification
ctx "task" implemented to match docs.