claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Allow not tracking sessions

Open 0xRaduan opened this issue 6 months ago • 3 comments

I am using claude -p for one off things inside scripts.

Unfortunately, it started to pollute my session list in a particular directory, when I use claude -r.

Would be great, if I can just pass a flag, and not record it.

Thanks!

0xRaduan avatar Jun 12 '25 16:06 0xRaduan

@0xRaduan this is a really cool idea... I haven't tried it yet (and can't try it right now cuz API outage), but have you tried deleting the project directory for that project? or set up something to auto-clean it or something. not really a solution but a workaround.

hesreallyhim avatar Jun 12 '25 20:06 hesreallyhim

No, I can't do that, because there is no deterministic way to tell which sessions are from one-off scripts in this directory and which ones are from my chats

0xRaduan avatar Jun 12 '25 20:06 0xRaduan

i haven't looked into that issue, maybe you're right but i'll let you know if i find anything helpful. In any case i think this is a good request, like a "temporary chat" feature (chatgpt has this... come to think of it, i guess Claude Desktop doesn't)

hesreallyhim avatar Jun 12 '25 20:06 hesreallyhim

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Oct 10 '25 10:10 github-actions[bot]

any updates on this?

0xRaduan avatar Nov 17 '25 09:11 0xRaduan

any updates on this?

Can you state exactly what you're looking for? I have some similar solution implemented for interactive mode so just need to know the details. You want to send a message in -p mode and then have the session log disappear after you get the response?

hesreallyhim avatar Nov 17 '25 10:11 hesreallyhim