[FEATURE] Add date prefix to Claude Code temp/session file names
Open 💬 0 comments Opened Jun 10, 2026 by CoJeh
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
Currently, Claude Code generates temp/session files in %TEMP%\claude\ (Windows)
using working directory paths as file names (e.g., d--Claude-Code--claude).
There is no way to identify when a file was created from its name alone.
Proposed Solution
Requested Feature
Add an option to prefix temp/session file names with the creation date in YYYYMMDD format, e.g., 20260610--d--Claude-Code--claude.
Use Case
- Easier identification and manual cleanup of old session files
- Better organization when multiple sessions exist for the same project
- Helps users understand which files are safe to delete based on age
Suggested Implementation
A configurable option in settings.json, for example:
{
"tempFileNaming": "date-prefix" // default: "path-only"
}
Alternative Solutions
_No response_
Priority
Medium - Would be very helpful
Feature Category
File operations
Use Case Example
_No response_
Additional Context
_No response_