claude-code - 💡(How to fix) Fix Conflicting system-reminders allow plan-mode bypass when Auto mode is also active [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#54096Fetched 2026-04-28 06:39:22
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1
RAW_BUFFERClick to expand / collapse

Problem

When the harness re-enters plan mode while Auto mode is also active, both reminders are emitted in the same model turn and each claims to override the other. The model has no deterministic way to choose, which can lead to plan-mode being silently bypassed (the model edits files when the user expected planning only).

Reproduction

  1. Activate Auto mode at some point in the session.
  2. User invokes plan mode (or the harness re-enters it after an `ExitPlanMode` cycle).
  3. User then sends an instruction that sounds like a directive (e.g. "Now let's switch to X").

In the next model turn, the harness emits both of these system-reminders:

```

Re-entering Plan Mode

... Plan mode is active. The user indicated that they do not want you to execute yet -- you MUST NOT make any edits ... This supercedes any other instructions you have received. ```

```

Auto Mode Active

  1. Execute immediately — Start implementing right away.
  2. Prefer action over planning — Do not enter plan mode unless the user explicitly asks. When in doubt, start coding. ```

Each reminder asserts override, and the order in which they're rendered is the only signal between them.

Expected behavior

Either:

  • Plan mode should clear Auto mode (or vice-versa) deterministically when re-entered, so only one reminder is in effect, or
  • The harness should not emit both reminders in the same turn, or
  • One reminder should explicitly take precedence over the other, with that precedence documented in both texts.

Impact

The model can edit files while the user reasonably expects plan-mode protection. Recovery requires noticing the unintended writes and reverting them. In my session this caused 3 files to be modified before I caught it.

Environment

  • Claude Code CLI
  • Model: Opus 4.7 (1M context)

extent analysis

TL;DR

To resolve the issue, the harness should be modified to ensure that only one reminder is emitted when re-entering plan mode while Auto mode is active, or establish a clear precedence between the two reminders.

Guidance

  • Review the harness logic to determine why both reminders are being emitted in the same model turn, and consider adding a check to prevent this from happening.
  • Consider implementing a deterministic way to choose between plan mode and Auto mode when both are active, such as clearing Auto mode when plan mode is re-entered.
  • Evaluate the reminder texts to ensure that they do not assert override in a way that creates ambiguity, and consider revising them to establish clear precedence.
  • Test the harness with different scenarios to ensure that the expected behavior is consistently achieved.

Example

No code snippet is provided as the issue does not contain sufficient technical details to create a specific example.

Notes

The issue highlights the importance of clear and consistent behavior in the harness, particularly when multiple modes are active. Resolving this issue will require careful consideration of the harness logic and reminder texts to ensure that the model behaves as expected.

Recommendation

Apply a workaround to modify the harness logic to ensure that only one reminder is emitted when re-entering plan mode while Auto mode is active, as this is the most direct way to address the issue and prevent unintended file edits.

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…

FAQ

Expected behavior

Either:

  • Plan mode should clear Auto mode (or vice-versa) deterministically when re-entered, so only one reminder is in effect, or
  • The harness should not emit both reminders in the same turn, or
  • One reminder should explicitly take precedence over the other, with that precedence documented in both texts.

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 Conflicting system-reminders allow plan-mode bypass when Auto mode is also active [1 comments, 2 participants]