[FEATURE] Optional local .claude_history file
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
I would like to be able to enable Claude Code prompt history which I've typed into the CLI, so I can look back to see previous prompts I've used. The history-saving could be invoked in a slash command or via a configuration option for all sessions. The history should have settings such as how far back and how much history to save before deleting older history. The feature should work similar to .bash_history in bash, saving history across individual CC sessions.
Proposed Solution
The history could be up/down-arrowed through at the CC prompt, as well as searched via ripgrep of a .claude_history file. Or it could be searched in a manner similar to the existing "Ctrl-r" search available now.
Alternative Solutions
_No response_
Priority
Medium - Would be very helpful
Feature Category
CLI commands and flags
Use Case Example
_No response_
Additional Context
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗