claude-code - 💡(How to fix) Fix [MODEL] Claude Code ignored prompt in plan mode [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#56378Fetched 2026-05-06 06:29:42
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Code Example

- README.md
- .github/copilot-instructions.md
- CLAUDE.md

---

Claude: I'll explore the codebase in parallel to understand the full structure before planning improvements to CLAUDE.md.
[explored directory]
Claude: Perfect! Now I have comprehensive understanding of the codebase. Let me create a detailed summary report:

## SNSolver_Package Comprehensive Codebase Analysis

Based on my thorough exploration, here is the complete codebase structure for your CLAUDE.md documentation:
[full explanation of codebase structure]

Claude: Let me read the existing CLAUDE.md, copilot instructions, and README to capture everything important before writing the improved plan.
[reads README, CLAUDE.md, and .github/copilot-instructions.md

Claude: Now I have everything I need. Let me write the plan file with the full improved CLAUDE.md content.
[proceeds to write plan and created a plan file at ~/.claude/plans/ , then exits plan mode]
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues for similar behavior reports
  • This report does NOT contain sensitive information (API keys, passwords, etc.)

Type of Behavior Issue

Claude ignored my instructions or configuration

What You Asked Claude to Do

/plan Plan removal of ophaned code and unused code paths. The latest experiments are defined in the notebooks @notebooks/experiments/ .

What Claude Actually Did

  1. Claude enabled plan-mode
  2. Claude loaded Skill 'init'
  3. Claude explored the the codebase using 2 parallel Explore agents
  4. Agents returned outputs; Claude then wrote a complete codebase structure for the CLAUDE.md documentation
  5. Claude read README.md copilot-instructions.md and CLAUDE.md
  6. Claude wrote a plan that would improve CLAUDE.md (prancy-mapping-reddy.md). The plan consists only of a rewrite for CLAUDE.md
  7. Claude exits plan-mode
  8. Claude exits plan-mode, but now accompanied with the plan

Expected Behavior

  1. Claude enabled plan-mode
  2. Claude read README.md
  3. Claude loaded Skill 'init' [optionally]
  4. Claude explored the the codebase [optionally using 2 parallel Explore agents]
  5. Agents returned outputs
  6. Claude wrote a plan that would list all orphaned code and unused code paths in the working directory, and describe a refactor procedure
  7. Claude exits plan-mode accompanied with the plan

Files Affected

- README.md
- .github/copilot-instructions.md
- CLAUDE.md

Permission Mode

Accept Edits was OFF (manual approval required)

Can You Reproduce This?

Haven't tried to reproduce

Steps to Reproduce

No response

Claude Model

Sonnet

Relevant Conversation

Claude: I'll explore the codebase in parallel to understand the full structure before planning improvements to CLAUDE.md.
[explored directory]
Claude: Perfect! Now I have comprehensive understanding of the codebase. Let me create a detailed summary report:

## SNSolver_Package Comprehensive Codebase Analysis

Based on my thorough exploration, here is the complete codebase structure for your CLAUDE.md documentation:
[full explanation of codebase structure]

Claude: Let me read the existing CLAUDE.md, copilot instructions, and README to capture everything important before writing the improved plan.
[reads README, CLAUDE.md, and .github/copilot-instructions.md

Claude: Now I have everything I need. Let me write the plan file with the full improved CLAUDE.md content.
[proceeds to write plan and created a plan file at ~/.claude/plans/ , then exits plan mode]

Impact

Low - Minor inconvenience

Claude Code Version

2.1.128 (Claude Code)

Platform

Anthropic API

Additional Context

No response

extent analysis

TL;DR

Claude may not be correctly interpreting the instructions due to a misunderstanding of the task, leading to an incorrect plan being generated.

Guidance

  • Review the instructions given to Claude to ensure they are clear and specific about the task of removing orphaned code and unused code paths.
  • Verify that Claude has the necessary permissions and access to the correct files and directories to complete the task.
  • Consider providing additional context or constraints to help Claude better understand the task and generate a more accurate plan.
  • Check the output of the Explore agents to ensure they are returning the expected results and that Claude is correctly interpreting this output.

Example

No code snippet is provided as the issue is related to the interpretation of instructions and the generation of a plan, rather than a specific code error.

Notes

The issue may be related to the specific version of Claude Code being used (2.1.128) or the configuration of the Anthropic API platform. Further investigation and testing may be necessary to determine the root cause of the issue.

Recommendation

Apply workaround: Provide more specific and detailed instructions to Claude, and consider adding additional constraints or context to help it better understand the task and generate a more accurate plan. This may involve breaking down the task into smaller, more manageable steps, or providing additional information about the codebase and the expected output.

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