Show HN: ctx – Search the coding agent history already on your machine
Not a pilot. Developers are already using agent memory systems to catch production failures before they cascade.

Why it matters
A practical tool addressing a real AI agent limitation—lack of long-term memory—by indexing local agent transcripts. Relevant to teams building with coding agents who need to reduce hallucination and repeated mistakes across sessions.
The key facts
14 to knowctx is a Rust CLI for ingesting and searching coding agent transcripts locally
Uses structured SQLite database with ranked text matching—no external services required
Real-world use case: agents avoiding repeated debugging of known failures by searching history
Enables 'Agent History Research Subagent' pattern to prep context before tasks
Can generate clean session transcripts for PR reviews and knowledge sharing
Published: July 2, 2026
Low adoption signal: 20 HN points, 4 comments (niche developer tool)
ctx is a Rust CLI for ingesting agent transcripts into local SQLite
Fully local—no hosted memory service or graph database required
Real use case: agent identified disk-full test failures by searching history, avoided debugging rabbit hole
Designed to integrate 'Agent History Research Subagent' into agentic workflows
Supports session transcript generation for code review and PR collaboration
Open-sourced on GitHub (ctxrs/ctx)
Published July 2, 2026 on Hacker News
Go to the source
Hacker Newsgithub.com
Publisher excerpt: Coding agents don't have long-term memory. But you do have months of full-fidelity agent transcripts stored on your machine. A simple solution that goes a long way: ingest those transcripts and logs into a structured SQLite database, then search them with ranked text match. Everything is fully…