Show HN: ctx – an Agentic Development Environment (ADE)
TL;DR Highlight
A local CLI that searches coding-agent history, blames code to sessions, graphs repos, and trims tool output.
Who Should Read
A developer who has used Claude Code or Codex for months and keeps losing past decisions and failed approaches, wasting tokens.
Core Mechanics
- It searches the agent history on your machine
- ctx setup reads JSONL and SQLite sessions under ~/.claude, ~/.codex and similar, and builds a local index.
- It never modifies the originals and needs no hooks or code inside the agent.
- Search is BM25 (keyword ranking) by default, and ctx semantic enable adds local embeddings.
- ctx blame finds the session behind a commit
- git blame names the last commit, while ctx blame names the agent session that produced it, with citations to the transcript.
- You can start from a file, line range, commit, or PR.
- If the session is on a teammate's machine, ctx says it cannot prove the attribution.
- It differs from agent memory
- The article says memory compacts events into summaries or facts that can go stale.
- ctx returns the real record with no lossy step.
- It claims 50x better token efficiency than raw transcript search, with results varying by query and corpus.
- ctx graph is a Rust rewrite of Graphify
- The graph lives in SQLite, only changed files are updated, and it ships as one native binary.
- The article claims 1000x faster search and 89x faster updates than Graphify.
- On VS Code (19,036 files, M1 Mac mini), cold indexing was about tied, with 2.4x nodes, 1.7x edges and 31% less peak memory.
- ctx sift trims noisy tool output
- It leaves commands untouched and spends fewer tokens on repeated paths, logs and formatting.
- In the v0.4.0 benchmark it was faster than RTK 0.49 on all ten sample workloads.
- On the authors' real workloads, tool output dropped 43%.
- Search is fast because it writes straight to Tantivy
- It skips the SQLite ingest step and writes records directly to a Tantivy index with parallel workers.
- The article says this was 16x faster than its earlier optimized SQLite version.
- It admits smaller projects may not need ctx graph.
Community Reactions
- A view that multi-repo work is a limit
- One commenter works from a workspace root with dozens of repos and plans features that span several of them.
- They complained that single-repo tools fit that poorly.
- Pointing out the GitHub repo has no source
- Several comments said the repo claims open source but holds only links, with no code or license.
- Another asked how the project plans to make money.
- Many questions about running parallel agents
- Commenters asked how merge conflicts between worktree agents get resolved and whether VMs are supported besides containers.
- One asked whether it forces a GitHub and PR workflow like Conductor.
- A report of a Linux failure
- One user said that on Linux the window opens blank and the menu is greyed out.
- A question about replacing Cursor-style indexing
- One commenter asked whether a tool like Lumen is still needed to avoid burning tokens on grep-style guessing in big codebases.
How to Apply
- Index and search your own agent history
- Today, install with curl -fsSL https://ctx.rs/install | sh and run ctx setup.
- Search a recent error or file name, such as ctx search "failed migration".
- Open the original with ctx show session <id> to see what failed before.
- Run ctx blame on a buggy line
- When a bug has no obvious cause, run ctx blame file <path> --lines start:end.
- Pass the session ID to ctx show session and read the assumptions and constraints.
- In PR reviews, use ctx blame pr <URL>.
- Try ctx graph on a large repo
- Run ctx graph index . then ctx graph search <symbol> to find call relationships.
- Pass an exact node ID to ctx graph impact to see what a change affects.
- After edits, run ctx graph update to refresh only changed files.
- Prefix noisy commands with ctx sift
- Run long-output commands as ctx sift -- cargo test.
- To apply it automatically, run ctx integrations install sift --agent claude-code.
Try It
# Paste into Claude Code (after installing ctx)
Do the following in order.
1. Run `ctx search --term "{{error message or keyword}}" --term "{{related file name}}"` in the terminal to check whether earlier sessions tried something similar.
2. If sessions come up, read them with `ctx show session <session-id>` and summarize failed approaches and the constraints and assumptions at the time.
3. Run `ctx blame file {{file path}} --lines {{start}}:{{end}}` to find the session that wrote that code, and tell me with citations whether that decision still holds.
4. Do not repeat approaches that already failed, and propose a new solution.Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques