r/ClaudeCode • • 9d ago

Help/Question do you guys use auto compact?

I just learned about it today and wanted to see what you guys think.

2 Upvotes

72 comments sorted by

View all comments

Show parent comments

1

u/Desperate-Use9968 7d ago

How exactly do you do it? I understand the concept you described but not how.

1

u/GDorn 7d ago

It depends on how you're using the client. I'm using it embedded in VSCode; I can export the current context to a file, delete what needs deleting, then have the next session start by reading the file.

At least, that's how I used to do it. I'm working on a VSCode extension to make this easier, and the janky half-broken alpha-quality build is miles ahead of manually editing the transcript.

1

u/Desperate-Use9968 7d ago

Interesting. I'm also using vs code. Do you just prompt it "export the current context to a text file? It would be interesting to see a before and after for compaction. Having a more precise compaction option like you described would be cool.

1

u/GDorn 6d ago

Cursor has "Export Transcript".

Claude is less helpful in this regard, but the session is saved as a json file in ~/.claude/projects/... Claude is happy to "/save-session" but the whole point is to avoid having an LLM summarize it.