ctx
A CLI tool for searching local coding agent records and finding sessions where code was written.
What does it do?
After setup, ctx finds local agent conversation records and indexes sessions, messages, tool calls, and their relationships. Search for an error message or filename, then open related events or the full conversation to review earlier decisions. It also tracks sessions where code was written. Default search uses BM25, with optional semantic search based on local embeddings.
Key features
- Find and index local agent records
- Search sessions for errors, files, commands, and decisions
- Open matching events and full conversation records
- Trace the agent session that wrote code
- Optionally use semantic search based on local embeddings