frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

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

https://github.com/ctxrs/ctx
6•luca-ctx•1h ago
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 local and doesn't require anything fancy like a graph database or hosted memory service.

This is the idea behind ctx, a Rust CLI that handles the ingestion and searching.

We give our agents a skill that tells them to reference past sessions before working in an area. Usually we do this through an "Agent History Research Subagent" whose job is just to prepare a short brief covering any relevant history before the task begins.

A real example: sometimes our test suite runs would fail because disk was full on the runner. The correct approach was to run the cleanup runbook, but the root cause of the failure was not clear to the agents, so they would think it was a test regression and go down the wrong rabbit hole debugging. When the agent searched history, it realized this failure had been encountered before and found the right workaround immediately. That got the agent onto the right cleanup path, and later we improved the log output so the same failure would be clearer next time. It's a boring story, but it's real agent productivity.

Another nice use case is quickly generating session transcripts for sharing. You can exclude the noisy intermediate messages, so the transcript shows the important parts of the session more cleanly. Try attaching a session transcript to your next PR so your teammate and their agent can review the provenance and prompting behind the change.

If you're up for an additional challenge, ask your agent to "exhaustively review all agent history in this repo and find where the SDLC is struggling or isn't agent-native". Using past sessions to recursively improve the agentic SDLC is a loop that we're using a lot today.

If you try it out, please let us know what you think!

Comments

luca-ctx•1h ago
Building this made it obvious that there should be a standard format / specification for agent transcripts and logs (similar to ACP for runtime events). If you're interested in discussing this, please reach out!

What if AGI is here, but it just actually sucks?

1•arm32•1m ago•0 comments

Amsterdam Invented the Fire Department

https://worksinprogress.co/issue/how-amsterdam-invented-the-fire-department/
1•deunamuno•3m ago•0 comments

Indians using app to shut down e-rickshaws in the middle of roads

https://timesofindia.indiatimes.com/etimes/trending/can-kill-people-indians-are-using-a-chinese-a...
1•astroanax•4m ago•0 comments

Sports Rightsholders Want an EU ASN/IP Blacklist for 'Piracy' Hosting Providers

https://torrentfreak.com/sports-rightsholders-want-an-eu-blacklist-for-piracy-hosting-providers/
1•iamnothere•5m ago•1 comments

Ask HN: What's the simplest way for me to get my AMEX data agentically?

2•artur_makly•6m ago•0 comments

CMA CGM to Buy FedEx Supply Chain for $1.4B

https://www.wsj.com/business/logistics/french-shipping-company-cma-cgm-to-buy-fedex-supply-chain-...
2•petethomas•7m ago•0 comments

Weird Al Yankovic Pulled Out of AI Ad Deal: 'I Can't Be the Poster Boy for AI'

https://variety.com/2026/biz/news/weird-al-yankovic-rejected-ai-commercial-money-offer-1236800794/
1•fortran77•7m ago•0 comments

The Download: a startup has a solution for AI's groupthink problem

https://www.technologyreview.com/2026/07/02/1140027/the-download-ai-groupthink-llms/
1•joozio•8m ago•0 comments

The Elon Musk boycott is fizzling out–and Tesla is winning again

https://www.msn.com/en-us/autos/news/the-elon-musk-boycott-is-fizzling-out-and-tesla-is-winning-a...
2•petethomas•9m ago•0 comments

For Sale: AI platform for creating viral short-form videos

https://flippa.com/13365327-ai-powered-video-generation-platform-for-creating-viral-short-form-co...
1•kilincarslan•9m ago•0 comments

Russia is using drones from the war in Ukraine in Africa

https://www.france24.com/en/africa/20260702-unprecedented-images-russia-using-drones-war-ukraine-...
1•loandbehold•9m ago•0 comments

Show HN: Flashtype – Markdown editor for Claude and Codex with in-line diffs

https://flashtype.com/
3•samuelstros•10m ago•0 comments

Cloudflare fronts 42% of indie launches. It's also at 42% of the Fortune 500

https://stackscope.dev/blog/state-of-indie-launches-june-2026
1•datafreak_•10m ago•0 comments

Agents collaboratively writing a wiki on RL for LLMs

https://huggingface.co/spaces/rl-llm-wiki/rl-dashboard
1•victormustar•10m ago•0 comments

Cisco confirms attackers exploiting Unified CM flaw

https://www.bleepingcomputer.com/news/security/cisco-finally-confirms-attackers-exploiting-unifie...
2•Brajeshwar•11m ago•0 comments

Gen Z Was Told We Could Save the World. Is It Silly to Think We Still Can?

https://www.teenvogue.com/story/gen-z-was-told-we-could-save-the-world-is-it-silly-to-think-we-st...
1•Tomte•14m ago•0 comments

Thinking Machines' Interaction Models

https://blog.bytebytego.com/p/inside-thinking-machines-interaction
1•gmays•15m ago•0 comments

Excommunication decreed for Lefebvrite episcopal ordinations

https://www.vaticannews.va/en/vatican-city/news/2026-07/holy-see-decrees-excommunication-lefebria...
2•haunter•15m ago•0 comments

Ask HN: What are you go to LLM models for the following

1•mrburton•16m ago•0 comments

Who should the U.S. Talk to in China on AI?

https://mattsheehan.substack.com/p/who-should-the-us-talk-to-in-china
1•taiwandongsuan•18m ago•0 comments

Show HN: Who wants to be hired?" meets "Who is hiring?" (July 2026)

https://hn-job-match-production.up.railway.app/
1•lellow•19m ago•0 comments

Back end-for-Front end: The most secure architecture for browser-based apps

https://fusionauth.io/blog/backend-for-frontend-security-architecture
2•mooreds•19m ago•0 comments

A Unique Strategy for Creating and Crowdfunding Games: 6 Questions

https://stonemaiergames.com/34671-2/
1•Tomte•20m ago•0 comments

Europe's top court upholds Google's record $4.7B antitrust fine

https://www.neowin.net/news/europes-top-court-upholds-googles-record-47-billion-antitrust-fine/
2•bundie•20m ago•1 comments

Linux kernel archives temporarily unavailable, fix has been implemented

https://social.kernel.org/notice/B7viUNMy1UsGX9pwHY
1•infinet•21m ago•0 comments

Unraveling the Complexity of Boundary Maintenance

https://www.psychologytoday.com/us/blog/lessons-from-a-burnt-out-psychologist/202403/unraveling-t...
1•toomuchtodo•21m ago•0 comments

Teen Girls' Suicide Rates Are Rising in Many Countries Around the World

https://www.afterbabel.com/p/teen-girls-suicide-rates-are-rising-2026-twenge
1•Tomte•21m ago•1 comments

Worship me at the office altar: Why narcissistic leaders resist remote work

https://www.sciencedirect.com/science/article/pii/S0749597826000300
2•momentmaker•22m ago•1 comments

Internet viral experiment recreated 20 years later

https://www.1mpixelwall.com/
1•peasantforklift•22m ago•1 comments

Fable Came Back Nerfed

https://twitter.com/bridgemindai/status/2072662214704533888
3•vm•23m ago•1 comments