Feature Request: Project-specific session storage configuration

Resolved 💬 3 comments Opened Jul 21, 2025 by ilham-fedev Closed Aug 19, 2025

Feature Request: Project-specific Session Storage

### Problem
Currently, Claude Code stores all session data globally in the user directory. For developers
working on multiple projects, this makes it difficult to:

  • Keep project-specific conversation history isolated
  • Share session context with team members working on the same project
  • Maintain clean separation between different codebases

### Proposed Solution
Add configuration option to store Claude sessions locally within each project directory,
similar to how .claude/settings.json works for project settings.

### Suggested Implementation

  1. Configuration option in .claude/settings.json:

```json
{
"sessionStorage": "local" // or "global" (default)
}

  1. Session directory: Store sessions in .claude/sessions/ within project
  2. Gitignore support: Auto-ignore session files unless explicitly configured otherwise

Benefits

  • Better project isolation
  • Team collaboration on conversation history
  • Easier project cleanup and archiving
  • More organized development workflow

Use Cases

  • Multi-project developers
  • Team development environments
  • Client project isolation
  • Educational/training scenarios

This feature would significantly improve the developer experience for project-based workflows.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗