claude-code - 💡(How to fix) Fix [FEATURE] Configurable Plan File Location [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52422Fetched 2026-04-24 06:07:41
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×2closed ×1commented ×1

Allow users to configure where plan mode saves plan files, with an option to save plans inside the project directory instead of the global ~/.claude/plans/ directory.

Root Cause

Allow users to configure where plan mode saves plan files, with an option to save plans inside the project directory instead of the global ~/.claude/plans/ directory.

Fix Action

Fix / Workaround

Manual workaround: Users can manually move plans from global to project directory after creation (current workaround, not ideal)

Code Example

~/.claude/plans/random-name.md

---

{
  "planMode": {
    "planFileLocation": "project", // or "global"
    "projectPlanPath": ".claude/plans/", // relative to project root
    "planFileNaming": "timestamp" // or "descriptive" or "custom"
  }
}

---

claude-code --permission-mode plan --plan-location project

---

project/
├── .claude/
│   └── plans/
│       ├── feature-auth.md
│       └── refactor-api.md
├── src/
└── README.md
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Feature Request: Configurable Plan File Location

Summary

Allow users to configure where plan mode saves plan files, with an option to save plans inside the project directory instead of the global ~/.claude/plans/ directory.

Motivation

Currently, when using plan mode, Claude Code saves all plan files to a global directory:

~/.claude/plans/random-name.md

Problems with current approach:

  1. Not version controlled: Plans are saved outside the project directory, so they can't be committed with the code
  2. Hard to find: Plans are scattered across a global directory with random names instead of being co-located with relevant projects
  3. Team collaboration: Plans can't be easily shared with team members through version control
  4. Project context: Plans are disconnected from the project they describe

Proposed Solution

Option 1: Project-level Setting (Preferred)

Add a configuration option in .claude/settings.json:

{
  "planMode": {
    "planFileLocation": "project", // or "global"
    "projectPlanPath": ".claude/plans/", // relative to project root
    "planFileNaming": "timestamp" // or "descriptive" or "custom"
  }
}

Behavior:

  • "project": Save plans in project directory (e.g., .claude/plans/plan-2024-04-23.md)
  • "global": Current behavior (save to ~/.claude/plans/)

Option 2: CLI Flag

Allow users to specify plan location when starting:

claude-code --permission-mode plan --plan-location project

Option 3: Prompt User

When entering plan mode, ask where to save the plan:

  • "Save plan in project directory? (Y/n)"
  • Default to user's saved preference

Use Cases

Use Case 1: Team Collaboration

project/
├── .claude/
│   └── plans/
│       ├── feature-auth.md
│       └── refactor-api.md
├── src/
└── README.md

Team members can review plans in PRs and track planning history.

Use Case 2: Project Documentation Plans serve as implementation documentation, explaining why certain approaches were chosen.

Use Case 3: Audit Trail Plans provide a historical record of architectural decisions for future reference.

Implementation Suggestions

  1. Add plan configuration schema to settings
  2. Update plan mode initialization to check for project-level plan settings
  3. Fall back to global directory if project doesn't have .claude/ or settings don't specify
  4. Update plan file naming to be more descriptive when saved in project

Alternatives Considered

Manual workaround: Users can manually move plans from global to project directory after creation (current workaround, not ideal)

Git hooks: Users could set up post-plan hooks to move files, but this requires complex setup

Related Features

  • .claude/settings.json configuration system
  • Plan mode (Shift+Tab to enter)
  • permissions.defaultMode setting

Impact

  • Low risk: Backward compatible (defaults to current behavior)
  • High value: Improves plan mode usability for teams and version control
  • Easy adoption: Optional setting, doesn't change default behavior

Questions for Maintainers

  1. Should .claude/plans/ be gitignored by default, or allow users to commit plans?
  2. Should plan files use descriptive names or timestamps when saved in projects?
  3. Should there be a setting to save plans to both locations?

Environment:

  • Claude Code version: [will be filled when submitting]
  • OS: macOS/Linux/Windows
  • Use case: Individual developer and team collaboration

Priority: Medium (quality of life improvement)

Labels: enhancement, area:config, area:cli, plan-mode

Proposed Solution

Add a configuration option in .claude/settings.json:

{
  "planMode": {
    "planFileLocation": "project", // or "global"
    "projectPlanPath": ".claude/plans/", // relative to project root
    "planFileNaming": "timestamp" // or "descriptive" or "custom"
  }
}

### Alternative Solutions

_No response_

### Priority

Medium - Would be very helpful

### Feature Category

CLI commands and flags

### Use Case Example

_No response_

### Additional Context

Currently I am using
claude --version     
2.0.70 (Claude Code)

extent analysis

TL;DR

To address the issue, consider adding a configuration option in .claude/settings.json to allow users to specify where plan files are saved, either in the project directory or the global directory.

Guidance

  • Review the proposed solution and alternative solutions to determine the best approach for implementing the configurable plan file location feature.
  • Consider the trade-offs between saving plans in the project directory versus the global directory, including version control and collaboration implications.
  • Evaluate the potential impact of adding a new configuration option on the existing CLI commands and flags.
  • Assess the feasibility of implementing the feature with a medium priority, given the potential benefits for team collaboration and project documentation.

Example

{
  "planMode": {
    "planFileLocation": "project", 
    "projectPlanPath": ".claude/plans/", 
    "planFileNaming": "timestamp" 
  }
}

This example illustrates the proposed configuration option in .claude/settings.json.

Notes

The implementation of this feature may require updates to the plan mode initialization and file naming conventions. Additionally, the decision to gitignore plan files by default or allow users to commit them should be carefully considered.

Recommendation

Apply the proposed solution by adding a configuration option in .claude/settings.json to allow users to specify the plan file location, as it provides a flexible and backward-compatible solution.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [FEATURE] Configurable Plan File Location [1 comments, 2 participants]