ctxrs/ctx
Instant recall for coding agents. Search the history already on your machine. Git blame, but for agent sessions.
Build with Backblaze B2
SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.
Loading star history...
Where it stands
Rank, growth pace and release cadence relative to everything GStars tracks.
5 releases in the last 90 days, the latest 5 days ago, with 20 contributors on GitHub.
Use Cases & Benefits
- Provides a CLI tool for fast local search across past coding agent sessions by indexing session logs into a local SQLite database.
- Enables instant, token-efficient recall of detailed agent session history without relying on cloud services or external APIs.
- Use for recovering context from previous coding agent decisions, commands, and failed attempts to avoid redundant work.
- Use for integrating with AI coding agents like Codex, Claude Code, or Cursor to enhance their memory with searchable session history.
- Use for auditing and inspecting detailed local agent session transcripts and metadata securely on your machine without data leakage.
Should you depend on it?
License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.
License
Apache 2.0
Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.
Community files
- README: present
Watch-outs
No watch-outs from GStars' checks.
General guidance from repository metadata, not legal advice. How we score
From the README
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:
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.
Optional but recommended for agent sessions:
For marketplace/plugin installs in Codex, Claude Code, Cursor, and raw Agent Skills, see Agent Skill Install.
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 raw search is often so token-heavy that it can be effectively the same as not having usable history.
Daily snapshots
Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots
Forks
76+20
Open issues
13+11
Compared with peers in AI Agents
Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth
| Repository | Stars | +7d | Health | Last release |
|---|---|---|---|---|
| vercel-labs/agent-desktop | 17.0K | +13.3K | 33 | today |
| thedotmack/claude-mem | 113.6K | +8.8K | 35 | today |
| stablyai/orca | 116.8K | +6.6K | 40 | today |
| milind-soni/OpenMausBot | 13.5K | +6.0K | 45 | today |
| HKUDS/DeepTutor | 55.5K | +5.5K | 65 | 5 days ago |
| ctxrs/ctx | 1.2K | — | 40 | 5 days ago |
| Category median | 55.5K | +6.6K | 40 | — |
Discover Repositories
Search across tracked repositories by name or description