Loading video...

Video Failed to Load

Go Home

built a small CLI tool that moves your AI coding session context between Claude Code, Gemini, Copilot, Codex and OpenCode when you hit rate limits. no more re-explaining what you were doing, or painful copy/paste from terminal that lose tool-call context. just `npx continues`

214,012 views • 8 months ago •via X (Twitter)

52 Comments

Yigit Konur's profile picture
Yigit Konur8 months ago

show hn today: repo:

AriesTheCoder's profile picture
AriesTheCoder8 months ago

Pretty funny how the world builds the same shit at the same time... I've got a nononesense version of this. written in sqllite. I bounce between Claude, Codex, Droid (GLM 5|KimiK2.5|MiniMax2.5) and Kilo-open-Code (to run copilot sub) Basic af, but works - AGENTS md: "After every session - handoff into sqlite."

Yigit Konur's profile picture
Yigit Konur8 months ago

sqlite is great idea! copilot sdk uses same pattern on their fleet agent system and better than handling jq over jsonl

Yigit Konur's profile picture
Yigit Konur8 months ago

first new feature: @droid support thx @DCasota

Aykut's profile picture
Aykut8 months ago

It looks pretty good, Yigit. I will give a shot. ✨

Yigit Konur's profile picture
Yigit Konur8 months ago

it'd be an honor to build a utility that even an elite typescript dev like you would actually use 🫡

Yigit Konur's profile picture
Yigit Konur7 months ago

wow, 200K+ impressions. that got me excited to share more. so here's the challenge: sharing a new repo from my own workflows every day for the next 30 days @steipete's github profile readme before building @openclaw was the inspiration next one [2/30]:

Yigit Konur's profile picture
Yigit Konur7 months ago

@openclaw CLI party continues [3/30] - this one helps you to kill an app by referencing port. was expecting this to be in part of unix's default coretools but somehow, it is not. so i've built an easy-to-use version:

ahmet alp balkan's profile picture
ahmet alp balkan8 months ago

amazing work, gotta try this one

Yigit Konur's profile picture
Yigit Konur8 months ago

i should print this tweet out and tape it to the edge of my desk lol probably 90% of my system architecture know-how (which helped me A LOT) came from your YT videos during covid + books you read on stream. if it’s my turn to give something back, that would make me happy 🥂

ahmet alp balkan's profile picture
ahmet alp balkan7 months ago

just tried now and I think it doesn't quite work the way I expect. the handoff file basically only has the last prompt from CC. is it not possible to dig up latest prompts from Claude session file or history file?

Yigit Konur's profile picture
Yigit Konur7 months ago

i can implement a recursive session lookup, basically grab the prev session id when we spot one and stitch everything together like it was one long thread. normal CC behavior just spins up a clean session, but if it's a continuation the first msg is usually a compact summary. i dig the idea, lemme code it real quick and ping you back.

ahmet alp balkan's profile picture
ahmet alp balkan7 months ago

Yeah it lost all the useful context of what we were doing when I switched from CC to Cursor and handoff file was basically just the last prompt and even that was truncated like (...)

Yigit Konur's profile picture
Yigit Konur7 months ago

it was planned to compress even more for some large context cases where the new context is too big for the new coding agent. then it has to compress even more, like showing only the first 500 characters of some messages, but it probably triggered before it actually became an issue. will fix everything in a few hours, thx!

ejae dev's profile picture
ejae dev8 months ago

useful tool but this is duct tape over a deeper problem. every new coding agent means another migration path to maintain. what we actually need is a shared context protocol, like how LSP standardized language features across editors. without that, continues will need an update every time someone ships a new agent.

rohit's profile picture
rohit8 months ago

Did something similar, with encrypted shares too if you wanted to share externally. In the same folder so just need to tell the other app to read .context and continue

Arne Strickmann's profile picture
Arne Strickmann7 months ago

very cool stuff! @yigitkonur

Yigit Konur's profile picture
Yigit Konur7 months ago

we should integrate such thing to @emdashsh - so that I can migrate between sessions 🤤

Arne Strickmann's profile picture
Arne Strickmann7 months ago

@emdashsh Definitely! 🫡

Maziyar PANAHI's profile picture
Maziyar PANAHI8 months ago

awesome! also, a very clean screen recording. is this CleanShot X?

Yigit Konur's profile picture
Yigit Konur8 months ago

nothing crazy, just another warp windows vibing in the back. yeah it’s @CleanShot, but the magic’s all in how the theme and frontend play together, @warpdotdev theme + font combo absolutely slaps

Maziyar PANAHI's profile picture
Maziyar PANAHI8 months ago

@CleanShot @warpdotdev Awesome! Thank you, i have @CleanShot but didn’t know it can have background for recording as well as screenshots. It’s clear and beautiful

jimmy hackett's profile picture
jimmy hackett8 months ago

Pretty awesome.

hazle11's profile picture
hazle118 months ago

This solves a real pain point. I bounce between Claude Code and Codex and the context re-explanation overhead is brutal. Curious how well it preserves structured tool-call state vs just conversation history — that's where transfers usually break down.

Jean-Patrick Smith's profile picture
Jean-Patrick Smith8 months ago

this is basically a session-portable harness. the next step is making the context handoff model-aware — each harness has different tool call schemas so naive context transfer loses the tool-call graph. curious if you serialize the full tool history or just the conversation text.

Yigit Konur's profile picture
Yigit Konur8 months ago

this is a question can be asked by real expert! markdownifying less verbose tool call (or truncated first 100 chars) but planning to add 'full' migration mode that even follows schema of agent tools mapped and converted too.but even with that way it can help 90%+ of regular cases

Barış Girişmen's profile picture
Barış Girişmen8 months ago

Super useful tool, love the name too! 👏

Yigit Konur's profile picture
Yigit Konur8 months ago

with your PR it becomes even better!

sock's profile picture
sock8 months ago

@developedbyed

John Schoenith's profile picture
John Schoenith8 months ago

Genius

Mert Koseoglu's profile picture
Mert Koseoglu8 months ago

Super abi eline saglik

Avid's profile picture
Avid8 months ago

this is fucking awesome brother you rock

Vish's profile picture
Vish8 months ago

this solves one of the most annoying parts of AI-assisted coding. losing context when you switch tools is brutal, especially mid-refactor. the fact it preserves tool-call context too is huge

Omer Aplak's profile picture
Omer Aplak8 months ago

🚀🚀🚀

AIShepherd's profile picture
AIShepherd8 months ago

Less is more dedikleri tam da bu ya, HARİKA!

Rakesh Gohel 🇨🇦's profile picture
Rakesh Gohel 🇨🇦8 months ago

Automating context transfer across platforms is a game-changer for efficiency.

Sherwin Techico's profile picture
Sherwin Techico8 months ago

Next level 👏 Gonna check whats good, perhaps can have some QoL updates to my simple /handoff-context skill 😅 For context, just writes a smol temp YAML on invokation:

elvis's profile picture
elvis8 months ago

very cool. i literally built a similar feature yesterday that handsoff context to other agents when hitting rate limits.

vinicius | doamais.com's profile picture
vinicius | doamais.com8 months ago

God Job!

Somi's profile picture
Somi8 months ago

oh this is genuinely useful. the worst part of hitting rate limits isn't the wait, it's losing all the context you built up over the last hour. does it preserve tool call history too or just the conversation?

Saberin Samarat's profile picture
Saberin Samarat8 months ago

Wow

Vish's profile picture
Vish7 months ago

rate limit musical chairs is the most frustrating part of using multiple AI coding tools right now. you hit the ceiling on Claude Code, switch to Codex, lose all your context, spend 10 minutes re-explaining the codebase, and by the time you are productive again the original rate limit has reset. preserving the full tool-call context across providers is the key insight here because that is what takes the longest to rebuild manually. a dev running a SaaS studio in Riyadh told me he keeps three terminals open with different providers just to avoid downtime and the context switching cost was killing his velocity. npx continues would solve that workflow entirely

Zzz's profile picture
Zzz8 months ago

Bro i tried making this but gave up, thanks

e.ev's profile picture
e.ev7 months ago

Rate limit context loss is the most underrated friction point in agentic workflows right now. The missing piece was never better prompts but portable session state that survives a tool switch.

Gaxa 🐾's profile picture
Gaxa 🐾7 months ago

This has always been the end goal, the convergence at the end. I always knew they will merge at the end and become a single overlord. Anyone can tell where it is heading, it’s a raise to the bottom.

Chris Song's profile picture
Chris Song8 months ago

awesome, will it support @AmpCode and cursor agent ?

Yigit Konur's profile picture
Yigit Konur8 months ago

@AmpCode yes, @Evrim267 created PR for cursor agent, will merge soon. for @AmpCode I can build sth and push today

Evrim 🌈🏳️‍⚧️'s profile picture
Evrim 🌈🏳️‍⚧️8 months ago

@fakechris @AmpCode I make an another update and pull request. test it different situations. looks good so far.

Yigit Konur's profile picture
Yigit Konur8 months ago

@fakechris @AmpCode thx, just merged!

Pawel Jozefiak's profile picture
Pawel Jozefiak7 months ago

Rate limit handoff is the unsexy problem nobody talks about. The context loss mid-session is brutal. Covered how Claude and Codex differ on long-session resilience:

Shaozi's profile picture
Shaozi8 months ago

@grok does opencode do the same?

Lockey - SaaS/automation developer's profile picture
Lockey - SaaS/automation developer7 months ago

This solves the exact pain I hit every day. Re-explaining context after a rate limit is the worst productivity killer. Bookmarked.

Related Videos

HERMES AGENT CAN SHARE MEMORY WITH CODEX AND CLAUDE CODE THROUGH HINDSIGHT. ONE MEMORY BANK. ONE AGENT REMEMBERS, EVERY OTHER AGENT KNOWS. the problem: you use Hermes for orchestration. Codex for coding. Claude Code for debugging. each has its own memory. switch between them and you explain the same project three times. Hindsight fixes this. one shared memory bank that every agent reads and writes to. tell Codex: "the test color for this project is purple." switch to Hermes. ask: "what test color did I pick?" Hermes answers: "purple." no copy-paste. no re-explaining. instant recall. HOW IT WORKS: Hindsight runs as a Docker container on your machine. self-hosted. your data stays local. an LLM powers the memory processing (retain, recall, reflect). RETAIN: extracts facts from your conversations. entities, decisions, preferences, project context. saved to the memory bank automatically. RECALL: when you ask a question, Hindsight pulls from semantic search, keywords, graph connections, and temporal data. fused into one answer. REFLECT: deeper reasoning layer. connects memories across sessions. identifies patterns in your work. produces observations that get smarter over time. CONNECT TO HERMES: Desktop app: Settings → Memory and Context → switch provider from Namosin to Hindsight. set API URL to your local Docker container. set bank ID. done. CLI: hermes memory setup → select Hindsight. verify: hermes memory status should show: provider: hindsight, installed, available. CONNECT TO CODEX: npx hindsight-coding-agents install codex \ --self-hosted --server this installs lifecycle hooks: initialize memory on session start. recall context during work. retain the session when done. enable hooks in Codex: Settings → Hooks → trust all three. CONNECT TO CLAUDE CODE (same command): npx hindsight-coding-agents install all "all" connects every detected agent on your machine. Claude Code, Codex, Cursor, and others. one command. every agent shares the same bank. TAGS FOR FILTERING: every memory gets tagged by harness (Hermes, Codex, Claude Code) and optionally by project name. in the Hindsight control plane: filter by harness. see only Hermes memories. or only Codex memories. or search across everything. soft partitions inside one bank. not hard walls. cross-reference when you need to. ONE BANK OR MANY: one global bank: solo dev, related projects. all agents share everything. patterns emerge across projects. per-project banks: unrelated codebases. each project gets its own memory. no cross-contamination. your call. start with one. split when projects diverge. KNOWLEDGE PAGES (v0.9.0): Hindsight auto-generates living summaries from your accumulated memories. components, concepts, conventions, decisions. not static docs. projected from real agent conversations. auto-refresh as new memories land. WHAT TO KNOW: self-hosted via Docker. your data never leaves your machine. backup system built in (admin CLI + scheduled exports). works with any LLM (local Ollama, OpenAI, Codex subscription). memory defense: redact or block sensitive content automatically. 33,000+ memories accumulated in ~10 days of normal use.

YanXbt

29,658 views • 2 months ago