Ctx

Ctx

Fast local search across your coding agent history.

87/100Safe BetFreeFree

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.

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
  • Teams that share agent histories via ctx cloud (when available)
Not ideal for
  • 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)
Visit Website

IntermediateCLINo public APIVerified 12d ago
Pricing
Free
FreeFree tier
Learning curve
Intermediate
Runs on
CLI
No public API · 10 integrations
Integrates with
Claude CodeCodexCursorPiOpenCodeAntigravity+4 more
Live sentiment
Is Ctx actually worth it?

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
Run a free scan

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 ago

Across the latest 4 updates: 4 changelog entries.

Viability Score

87/100
Safe Bet

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.

momentum
100
funding runway
40
website health
90
wrapper dependency
100

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

FreeIntermediateNo APICLI

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

Models Under the Hood

intfloat/multilingual-e5-small

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.

Annual total
Free
Over 12 months
Effective monthly

Vendor list price only. Add-on usage, seat overages, and contract minimums are surfaced under Hidden costs & gotchas.

Featured Head-to-Head Comparisons

Popular in Code & Development

Temporal AI

Temporal AI

Durable execution platform for building reliable AI agents and workflows.

FreemiumTry
Spider Cloud

Spider Cloud

Fast web crawling, scraping & search API for AI agents

FreemiumTry
Voyage AI

Voyage AI

Domain-specialized embedding models and rerankers for enterprise RAG.

Contact SalesTry

Frequently Asked Questions

Used Ctx? Help shape our editorial sentiment research.