ctxrs/ctx
#591 of 803 by Stars among GitHub repos
Instant recall for coding agents. Search the history already on your machine. Git blame, but for agent sessions.
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 | 1.1k | 2026-09-12 |
|---|---|---|
| Forks | 70 | 2026-09-12 |
| Commits | 3.6k | 2026-09-12 |
| Releases | 38 | 2026-09-12 |
| Watchers | 5 | 2026-09-12 |
| Open issues | 11 | 2026-09-12 |
| Open PRs | 5 | 2026-09-12 |