Remix.run Logo
jakobloekke 8 hours ago

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.

Fabricio20 7 hours ago | parent | next [-]

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!

jakobloekke 7 hours ago | parent | next [-]

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" ...

tstrimple 6 hours ago | parent | prev [-]

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.

embedding-shape 7 hours ago | parent | prev | next [-]

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.

rkuska 7 hours ago | parent | prev | next [-]

I’ve built a browser cli for that.

https://github.com/rkuska/carn

jakobloekke 6 hours ago | parent | prev | next [-]

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

FranklinMaillot 8 hours ago | parent | prev | next [-]

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

'Export the current conversation to a file or clipboard'

jakobloekke 7 hours ago | parent [-]

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

ea016 7 hours ago | parent [-]

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

sixothree 5 hours ago | parent | prev [-]

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.

jakobloekke 5 hours ago | parent [-]

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