Skip to content
Tech News
← Back to articles

Show HN: ctx – Search the coding agent history already on your machine

read original more articles
Why This Matters

The ctx CLI tool enhances the productivity of coding agents by enabling fast, local search of past sessions, including decisions, commands, and test results. Its token-efficient indexing allows developers to quickly retrieve relevant context without relying on external services, preserving privacy and speed. This advancement helps streamline coding workflows and reduces redundant efforts in software development.

Key Takeaways

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:

decisions, constraints, intent, and rejected approaches from you

bug investigations, refactors, file paths, commands, patches, and notes from previous agents

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.

Install and set up ctx

curl -fsSL https://ctx.rs/install | sh

Optional but recommended for agent sessions:

npx skills add ctxrs/ctx

... continue reading