[FEATURE] Incognito mode in Claude Code
Resolved 💬 6 comments Opened Oct 6, 2025 by benjaminjackson Closed Jan 17, 2026
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
When I run Claude code in --print mode, I usually don't need to refer to that conversation later.
For example, I often use it to automatically commit changes to my code.
These conversations aren't something I'll ever refer back to, BUT they end up cluttering up the conversation history when I try to find an earlier session using /resume.
Proposed Solution
I'd like to be able to run claude --print --incognito. This would prevent the conversation history from being stored in ~/.claude/projects.
Alternative Solutions
I can't think of any other way to accomplish this other than a native flag.
Priority
Medium - Would be very helpful
Feature Category
CLI commands and flags
Use Case Example
Example:
- I make some changes with Claude Code.
- I leave the session and run
claude -p "/dev:commit" --incognito - Claude Code commits the files
- I run
claude -c - Claude resumes the previous session where I made the changes
- The conversation history for the commit workflow is not stored
Additional Context
_No response_
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗