ctxrs/ctx
#592 of 783 by Stars among GitHub repos
Search the coding agent history already on your machine
About
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.
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.
By structuring agent history into sessions, events, metadata, and indexed fields, then returning ranked cited matches, agents can access meaningful history with far fewer tokens than raw search. Results vary by query and corpus, but…
Excerpted from github.com/ctxrs/ctx
Latest metrics
| Stars | 882 | 2026-07-16 |
|---|---|---|
| Forks | 51 | 2026-07-16 |
| Commits | 352 | 2026-07-16 |
| Releases | 23 | 2026-07-16 |
| Watchers | 5 | 2026-07-16 |
| Open issues | 3 | 2026-07-16 |
| Open PRs | 3 | 2026-07-16 |