Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Have anyone found good techniques to get a session out of Claude Code, so that I can point another tool at it and pick up there? This always seems to happen at the worst possible time, after having spent an hour getting deep into something – half finished edits across files, subagents running, etc.
 help



Honest suggestion - ask the agent to figure a compat shim out, the files are jsonl stored at your ~/.claude/sessions you can most likely just reshape it to work on OpenCode or similar, or have a different Claude Code config that points to OpenRouter or other API style endpoint CC supports and then you can swap accounts and it should still work!

I'm trying that out with Cursor now. But it does take some work to get it to the same state with subagents and making sure it understands the state of the progress that was interupted. But it seems worth the time to get a solid skill defined up and running that can do this, given that's it's an almost daily event by now.

Maybe a good candidate for a Claude Routine! "By this time each day, brace for upcoming outage by preparing a comprehensive information package for Cursor to take over your work on active sessions" ...


I don't use any other harness, but I have a cron that picks up changes in my jsonl every X minutes and writes them to a SQLite database with full text search. I also have instructions in my user level claude.md (applies to all projects) to query that database when I'm asking about previous sessions. That's my primary use case where I want it to grab some specific details from a previous session. I have terrible context discipline and have built some tools to help me recover from just continuing a different task/conversation with the wrong context.

I could search it myself, but haven't needed to. Getting it out of SQLite into some format Cursor understands should be trivial.


Copy-pasting previous plain-text conversation + a snippet of "inspect the current git changes, and resume where you left of" tends to do the trick, at least in Codex, worked with moving from CC, Gemini and a bunch of others.

I’ve built a browser cli for that.

https://github.com/rkuska/carn


This is great! Just what I was looking for. Will try it out!

I created a porting skill, which worked fine for this session. Maybe it's useful for others: https://gist.github.com/jakobloekke/1d036e4b2a35fa5e1b309a23...

If you use superpowers and "brainstorm" in your prompt, you will get a spec document that other AI can use. They can figure out what was done and continue from there.

Absolutely! But that doesn't capture an interrupted interactive session

Maybe the /export command is what you're looking for.

'Export the current conversation to a file or clipboard'


I was hoping for that to work, but it seems to produce an empty file. Maybe it needs the API to work as well

Didn't work for me either, I asked Cursor to export the session from ~/.claude/projects/



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: