Preflight Checklist
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
Preflight Checklist
Problem Statement
When I run Claude code in
--printmode, 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:
claude -p "/dev:commit" --incognitoclaude -cAdditional Context
No response