3 ms·
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
by jakobloekke 6mo 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.
- FranklinMaillot 6mo agoMaybe the /export command is what you're looking for. 'Export the current conversation to a file or clipboard'
- jakobloekke 6mo agoI was hoping for that to work, but it seems to produce an empty file. Maybe it needs the API to work as well
- ea016 6mo agoDidn't work for me either, I asked Cursor to export the session from ~/.claude/projects/
- Fabricio20 6mo agoHonest 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 6mo agoI'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 6mo agoI 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 6mo agoCopy-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 6mo agoI’ve built a browser cli for that. https://github.com/rkuska/carn https://github.com/rkuska/carn
- jakobloekke 6mo agoThis is great! Just what I was looking for. Will try it out!
- jakobloekke 6mo agoI created a porting skill, which worked fine for this session. Maybe it's useful for others: https://gist.github.com/jakobloekke/1d036e4b2a35fa5e1b309a23e1bbba1a https://gist.github.com/jakobloekke/1d036e4b2a35fa5e1b309a23...
- sixothree 6mo agoIf 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 6mo agoAbsolutely! But that doesn't capture an interrupted interactive session