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

Doesn’t Claude Code allow to just dump entire conversations, with everything that happened in them?




All sessions are located in the `~/.claude/projects/foldername` subdirectory.

Doesn't it lose prompts prior to the latest compaction?

I’ve sent Claude back to look at the transcript file from before compaction. It was pretty bad at it but did eventually recover the prompt and solution from the jsonl file.

It’s loses them in the current context (say 200k tokens), not in its SQLite history db (limited by your local storage).

I did not know it was SQLite, thx for noting. That gives the idea to make an MCP server or Skill or classical script which can slurp those and make a PROMPTS.md or answer other questions via SQL. Will try that this week.

It doesn't lose the prompt but slowly drains out of context. Use the PreCompact hook to write a summary.



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

Search: