ctx is an open-source CLI for fast local search across your past coding agent sessions.
Coding agents usually start from zero. They can inspect the current repo, but they often cannot recover the discussions, decisions, failed attempts, commands, and test results from earlier work.
Those sessions are full of useful context:
decisions, constraints, intent, and rejected approaches from you
bug investigations, refactors, file paths, commands, patches, and notes from previous agents
ctx indexes those logs into SQLite on your machine, then gives current and future agents a CLI for finding the prior discussion, command, or failed attempt before they repeat it.
Install and set up ctx
curl -fsSL https://ctx.rs/install | sh
Optional but recommended for agent sessions:
npx skills add ctxrs/ctx
... continue reading