frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Ctx – a /resume that works across Claude Code and Codex

https://github.com/dchu917/ctx
17•dchu17•1d ago
ctx is a local SQLite-backed skill for Claude Code and Codex that stores context as a persistent workstream that can be continued across agent sessions. Each workstream can contain multiple sessions, notes, decisions, todos, and resume packs. It essentially functions as a /resume that can work across coding agents.

Here is a video of how it works: https://www.loom.com/share/5e558204885e4264a34d2cf6bd488117

I initially built ctx because I wanted to try a workstream that I started on Claude and continue it from Codex. Since then, I’ve added a few quality of life improvements, including the ability to search across previous workstreams, manually delete parts of the context with, and branch off existing workstreams.. I’ve started using ctx instead of the native ‘/resume’ in Claude/Codex because I often have a lot of sessions going at once, and with the lists that these apps currently give, it’s not always obvious which one is the right one to pick back up. ctx gives me a much clearer way to organize and return to the sessions that actually matter.

It’s simple to install after you clone the repo with one line: ./setup.sh, which adds the skill to both Claude Code and Codex. After that, you should be able to directly use ctx in your agent as a skill with ‘/ctx [command]’ in Claude and ‘ctx [command]’ in Codex.

A few things it does:

- Resume an existing workstream from either tool

- Pull existing context into a new workstream

- Keep stable transcript binding, so once a workstream is linked to a Claude or Codex conversation, it keeps following that exact session instead of drifting to whichever transcript file is newest

- Search for relevant workstreams

- Branch from existing context to explore different tasks in parallel

It’s intentionally local-first: SQLite, no API keys, and no hosted backend. I built it mainly for myself, but thought it would be cool to share with the HN community.

Comments

buremba•1h ago
Since prompt caching won't work across different models, how is this approach better than dropping a PR for the other harnesses to review?
dchu17•1h ago
Sorry, I may be misunderstanding the question.

The way this works is that it stores workstreams and session state in a local SQLite DB, and links each ctx session to the exact local Claude Code and/or Codex raw session log it came from (also stored locally).

What do you mean by prompt caching?

Wowfunhappy•1h ago
Prompt caching is done on the provider side. If you send two requests to a provider in short succession and the beginning of your second request is the same as your first (for example, because your second request is the continuation of an ongoing chat), the repeated tokens are much less expensive the second time.

Obviously, your tool does not provide this. But I think GP is undervaluing the UX advantages of having your conversation history.

t0mas88•1h ago
Have you considered making it possible to share a stream/context? As an export/import function.
dchu17•1h ago
that's interesting, I hadn't at this point but this sounds potentially useful
rkuska•15m ago
I wrote a tool for myself to copy (and archive) the claude/codex conversations github.com/rkuska/carn

The Vercel breach: OAuth attack exposes risk in platform environment variables

https://www.trendmicro.com/en_us/research/26/d/vercel-breach-oauth-supply-chain.html
61•queenelvis•1h ago•24 comments

Laws of Software Engineering

https://lawsofsoftwareengineering.com
620•milanm081•7h ago•322 comments

Britannica11.org – a structured edition of the 1911 Encyclopædia Britannica

https://britannica11.org/
27•ahaspel•53m ago•25 comments

A Periodic Map of Cheese

https://cheesemap.netlify.app/
49•sfrechtling•1h ago•22 comments

Show HN: GoModel – an open-source AI gateway in Go

https://github.com/ENTERPILOT/GOModel/
104•santiago-pl•4h ago•32 comments

Fusion Power Plant Simulator

https://www.fusionenergybase.com/fusion-power-plant-simulator
89•sam•4h ago•33 comments

Kasane: New drop-in Kakoune front end with GPU rendering and WASM Plugins

https://github.com/Yus314/kasane
25•nsagent•2h ago•2 comments

Show HN: VidStudio, a browser based video editor that doesn't upload your files

https://vidstudio.app/video-editor
196•kolx•6h ago•75 comments

Trellis AI (YC W24) Is hiring engineers to build self-improving agents

https://www.ycombinator.com/companies/trellis-ai/jobs/SvzJaTH-member-of-technical-staff-product-e...
1•macklinkachorn•1h ago

Running a Minecraft Server and More on a 1960s Univac Computer

https://farlow.dev/2026/04/17/running-a-minecraft-server-and-more-on-a-1960s-univac-computer
129•brilee•3d ago•22 comments

Edit store price tags using Flipper Zero

https://github.com/i12bp8/TagTinker
131•trueduke•2d ago•144 comments

Modern Front end Complexity: essential or accidental?

https://binaryigor.com/modern-frontend-complexity.html
21•gsky•2d ago•6 comments

Tindie store under "scheduled maintenance" for days

https://www.tindie.com/
87•somemisopaste•5h ago•40 comments

A type-safe, realtime collaborative Graph Database in a CRDT

https://codemix.com/graph
116•phpnode•7h ago•32 comments

Clojure: Transducers

https://clojure.org/reference/transducers
88•tosh•2d ago•25 comments

Anthropic says OpenClaw-style Claude CLI usage is allowed again

https://docs.openclaw.ai/providers/anthropic
413•jmsflknr•14h ago•238 comments

MNT Reform is an open hardware laptop, designed and assembled in Germany

http://mnt.stanleylieber.com/reform/
217•speckx•1d ago•85 comments

Original GrapheneOS responses to WIRED fact checker

https://discuss.grapheneos.org/d/34369-original-grapheneos-responses-to-wired-fact-checker
198•ChrisArchitect•3h ago•112 comments

Tim Cook's Impeccable Timing

https://stratechery.com/2026/tim-cooks-impeccable-timing/
222•hasheddan•6h ago•320 comments

Show HN: Mediator.ai – Using Nash bargaining and LLMs to systematize fairness

https://mediator.ai/
125•sanity•1d ago•63 comments

Framework Laptop 13 Pro

https://frame.work/laptop13pro
32•Trollmann•27m ago•7 comments

Recommended GPU Repairshop in Europe (Germany)

21•DogRunner•2d ago•3 comments

Leonardo, Borgia, and Machiavelli: A Fateful Collusion

https://www.historytoday.com/archive/leonardo-borgia-and-machiavelli-fateful-collusion
30•apollinaire•5d ago•0 comments

Show HN: Daemons – we pivoted from building agents to cleaning up after them

https://charlielabs.ai/
29•rileyt•2h ago•19 comments

Anthropic takes $5B from Amazon and pledges $100B in cloud spending in return

https://techcrunch.com/2026/04/20/anthropic-takes-5b-from-amazon-and-pledges-100b-in-cloud-spendi...
186•Brajeshwar•5h ago•186 comments

Slava's Monoid Zoo

https://factorcode.org/slava/monoids.html
50•luu•1d ago•8 comments

Show HN: Ctx – a /resume that works across Claude Code and Codex

https://github.com/dchu917/ctx
17•dchu17•1d ago•6 comments

Meta capturing employee mouse movements, keystrokes for AI training data

https://economictimes.indiatimes.com/tech/technology/meta-to-start-capturing-employee-mouse-movem...
19•dlx•46m ago•4 comments

Salmon exposed to cocaine and its main byproduct roam more widely

https://www.science.org/content/article/cocaine-pollution-gives-salmon-wanderlust
119•1659447091•12h ago•78 comments

Colorado River disappeared record for 5M years: now we know where it was

https://phys.org/news/2026-04-colorado-river-geological-million-years.html
16•wglb•1d ago•4 comments