Ctx
Fast local search across your coding agent history.
ctx solves a real pain for heavy agent users: lost context across sessions. Its local, token-efficient design is practical and privacy-friendly. If you regularly use coding agents and hate repeating yourself, this is worth installing.
- Developers using multiple coding agents who want to retain context across sessions
- Engineers debugging failed agent attempts by reviewing past commands and results
- Power users tired of repetitive context loss and manual transcript search
- Teams that share agent histories via ctx cloud (when available)
- Users who only run one agent session and never revisit history
- Developers needing cloud-hosted search without local setup
- Teams requiring collaborative history without a shared server (free tier is local-only)
We scan live Reddit threads, YouTube comments, X posts, G2 reviews and other communities — and hand you an honest verdict in under a minute.
- Honest verdict, not marketing
- Real pros & cons from real users
- Attributed quotes with receipts
3 free scans · no card needed
In short
Ctx — Fast local search across your coding agent history. Best for Developers using multiple coding agents who want to retain context across sessions, Engineers debugging failed agent attempts by reviewing past commands and results, Power users tired of repetitive context loss and manual transcript search. Free to use.
What's new in Ctx
Checked 12 days agoAcross the latest 4 updates: 4 changelog entries.
ctx 0.17.0 – Exact file-only search and explicit search intent
Search now requires explicit intent; path imports need explicit provider. Hardened config handling.
ctx 0.18.0 – Hosted installer handoff markers
Added handoff marker support for managed installs; setup-start lifecycle event.
ctx 0.16.0 – Custom history-source plugins and JSONL imports
Added ctx-history-jsonl-v1 imports, local history-source plugins, and cursor handoff.
ctx 0.15.0 – Native support for OpenClaw, Hermes, NanoClaw, AstrBot
First-class local history import and search for four new agent platforms.
Viability Score
How likely is Ctx to still be operational in 12 months? Based on 4 signals — momentum (how recently it shipped), wrapper dependency, revenue model, and web presence.
Last calculated: July 2026
How we score →Key Features
- Index local agent history from multiple providers
- Natural language search across past sessions
- Multi-term search with --term flag
- View matching session snippets and event IDs
- Print full session transcripts or event windows
- 50× token-efficient vs raw transcript search
- Local SQLite storage, no background service needed
- Rust-based, fast and scriptable CLI
- Supports Claude Code, Codex, Cursor, Pi, OpenCode, Antigravity, Gemini CLI, Copilot CLI, Factory, Droid
- MCP integration for agent tools
- Open source under MIT license
- JSON output for programmatic use
- ctx skill for agent tool integration via npx
About Ctx
ctx is an open-source CLI tool that indexes your past coding agent sessions into a local SQLite database, enabling fast natural-language search across historical context. It discovers and imports persisted history from popular agent harnesses like Claude Code, Codex, Cursor, and Copilot CLI, storing normalized session and event data optimized for retrieval. Designed for developers who rely on coding agents, ctx helps agents recover prior discussions, failed attempts, commands, and test results without starting from zero each time. By returning ranked, cited matches, it is often 50× more token-efficient than raw transcript search. Written in Rust, ctx runs entirely locally with no background service, no cloud dependency, and no API key required. Searches are scriptable via CLI, and results include session IDs that let agents retrieve full transcripts or specific event windows. Unlike vector-based agent memory tools that store compact summaries, ctx keeps retrieval tied to raw sessions and events, offering transparent evidence for decisions.
Behind the Verdict
ctx addresses a gap most agent users have felt but few tools solve: recovering past context. When an agent starts a new session, it has no memory of previous decisions, failed attempts, or commands. ctx indexes those logs and makes them searchable, so the next agent can pick up where the last one left off. Its local-first approach is a strong point — no cloud, no API key, no background service. The 50× token efficiency claim over raw transcript search is plausible given the structured indexing. It supports a growing list of agent harnesses including Claude Code, Codex, Cursor, Copilot CLI, and newer ones like Pi, OpenCode, and Factory. Where ctx falls short is discoverability: users need to explicitly install the skill for agent integration (npx skills add ctxrs/ctx). The free tier is strictly local; shared team history requires a cloud tier that isn't detailed on the site. If you only use one agent and rarely revisit sessions, ctx may be overkill. Its real value is for power users juggling multiple agents or complex, multi-session projects. Compared to agent memory tools like Mem0 or Graphify-style codebase graphs, ctx is more transparent — it retrieves raw transcripts rather than compressed summaries. For debugging why an agent chose a certain path, that's invaluable. Caveat: the tool is young, so provider support may lag behind new agent releases. But the MIT license means anyone can extend it.
Researching Ctx? Get your full AI stack in 60 seconds.
Free, no signup — tell us your goal and get tools matched to your budget & existing stack.
Use Cases
- Search past agent sessions for a failed migration command to avoid repeating mistakes
- Recover previous discussion context when starting a new coding session on the same codebase
- Show a prior agent's full transcript to understand decisions made weeks ago
- Index all local agent logs for faster retrieval without manual file browsing
Models Under the Hood
as of 2026-07-15
Limitations
- ctx is currently local-only, so team sharing requires the private beta ctx cloud.
- It relies on agent harnesses persisting history locally; some agents may not store all logs.
- Only supported providers are indexed.
- Semantic search is opt-in and requires downloading a model.
12-month cost
Project the real annual outlay, including the implied monthly cost when only an annual tier is published.
Vendor list price only. Add-on usage, seat overages, and contract minimums are surfaced under Hidden costs & gotchas.
Integrations
Resources & Guides
Official links
Featured Head-to-Head Comparisons
Popular in Code & Development
Temporal AI
Durable execution platform for building reliable AI agents and workflows.
Spider Cloud
Fast web crawling, scraping & search API for AI agents
Frequently Asked Questions
Best-of guides
Topics
Used Ctx? Help shape our editorial sentiment research.