claude-code - 💡(How to fix) Fix [Bug] ExitPlanMode tool missing from Opus 4.6 1M context deferred registry [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#45294Fetched 2026-04-09 08:08:42
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

Error Message

[{"error":"Error: Tool mcp__claude-peers__check_messages not found\n at I9K (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2214:30247)\n at Fz (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:20978)\n at SY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:39515)\n at QW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:50208)\n at bx6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:86881)\n at Sx6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:85842)\n at R96 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:85663)\n at t38 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:82031)\n at C6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:6358)\n at Immediate.Mh1 [as _onImmediate] (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:546:5822)","timestamp":"2026-04-08T05:33:52.346Z"},{"error":"Error: Tool mcp__claude-peers__set_summary not found\n at I9K (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2214:30247)\n at Fz (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:20978)\n at SY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:39515)\n at QW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:50208)\n at bx6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:86881)\n at Sx6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:85842)\n at R96 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:85663)\n at t38 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:82031)\n at C6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:6358)\n at Immediate.Mh1 [as _onImmediate] (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:546:5822)","timestamp":"2026-04-08T05:33:52.346Z"},{"error":"Error: Tool mcp__claude-peers__check_messages not found\n at I9K (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2214:30247)\n at Fz (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:20978)\n at SY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:39515)\n at QW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:50208)\n at bx6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:86881)\n at Sx6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:85842)\n at R96 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:85663)\n at t38 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:82031)\n at x6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:6480)\n at T6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:4964)","timestamp":"2026-04-08T07:45:12.938Z"},{"error":"Error: Tool mcp__claude-peers__set_summary not found\n at I9K (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2214:30247)\n at Fz (file:///opt/homebrew/lib…

Root Cause

Root cause: ExitPlanMode is completely absent from the deferred tool registry for the session. It is not mis-ranked — it simply does not exist in the tool surface.

Fix Action

Fix / Workaround

Impact: The plan mode system reminder explicitly instructs the model to call ExitPlanMode, but the tool is unavailable. The model cannot programmatically exit plan mode and must fall back to a plain-text workaround and wait for user verbal approval.

Code Example

[{"error":"Error: Tool mcp__claude-peers__check_messages not found\n    at I9K (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2214:30247)\n    at Fz (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:20978)\n    at SY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:39515)\n    at QW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:50208)\n    at bx6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:86881)\n    at Sx6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:85842)\n    at R96 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:85663)\n    at t38 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:82031)\n    at C6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:6358)\n    at Immediate.Mh1 [as _onImmediate] (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:546:5822)","timestamp":"2026-04-08T05:33:52.346Z"},{"error":"Error: Tool mcp__claude-peers__set_summary not found\n    at I9K (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2214:30247)\n    at Fz (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:20978)\n    at SY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:39515)\n    at QW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:50208)\n    at bx6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:86881)\n    at Sx6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:85842)\n    at R96 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:85663)\n    at t38 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:82031)\n    at C6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:6358)\n    at Immediate.Mh1 [as _onImmediate] (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:546:5822)","timestamp":"2026-04-08T05:33:52.346Z"},{"error":"Error: Tool mcp__claude-peers__check_messages not found\n    at I9K (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2214:30247)\n    at Fz (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:20978)\n    at SY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:39515)\n    at QW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:50208)\n    at bx6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:86881)\n    at Sx6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:85842)\n    at R96 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:85663)\n    at t38 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:82031)\n    at x6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:6480)\n    at T6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:4964)","timestamp":"2026-04-08T07:45:12.938Z"},{"error":"Error: Tool mcp__claude-peers__set_summary not found\n    at I9K (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2214:30247)\n    at Fz (file:///opt/homebrew/lib…
RAW_BUFFERClick to expand / collapse

Bug Description Bug: ExitPlanMode tool missing from registry in Opus 4.6 1M context sessions

Environment:

  • Model: claude-opus-4-6 (1M context window)
  • Platform: macOS (darwin)
  • Claude Code CLI v2.1.92

Symptom: In a session where plan mode was activated via the system reminder ("Plan mode is active — you MUST call ExitPlanMode at the end of your turn"), calling ExitPlanMode returns Error: No such tool available: ExitPlanMode.

ToolSearch with query "ExitPlanMode plan exit" (max_results=3) returned only ExitWorktree, mcp__claude-in-chrome__update_plan, and EnterWorktree. ToolSearch with query "select:ExitPlanMode" (direct name lookup) returned "No matching deferred tools found".

Root cause: ExitPlanMode is completely absent from the deferred tool registry for the session. It is not mis-ranked — it simply does not exist in the tool surface.

Impact: The plan mode system reminder explicitly instructs the model to call ExitPlanMode, but the tool is unavailable. The model cannot programmatically exit plan mode and must fall back to a plain-text workaround and wait for user verbal approval.

Note: This issue does not reproduce in standard Sonnet sessions — ExitPlanMode appears in the deferred tool list and loads correctly. The bug appears specific to the Opus 4.6 1M context configuration.


Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.92
  • Feedback ID: 29ba481d-91b9-4709-9593-e07c3f4b441d

Errors

[{"error":"Error: Tool mcp__claude-peers__check_messages not found\n    at I9K (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2214:30247)\n    at Fz (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:20978)\n    at SY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:39515)\n    at QW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:50208)\n    at bx6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:86881)\n    at Sx6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:85842)\n    at R96 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:85663)\n    at t38 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:82031)\n    at C6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:6358)\n    at Immediate.Mh1 [as _onImmediate] (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:546:5822)","timestamp":"2026-04-08T05:33:52.346Z"},{"error":"Error: Tool mcp__claude-peers__set_summary not found\n    at I9K (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2214:30247)\n    at Fz (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:20978)\n    at SY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:39515)\n    at QW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:50208)\n    at bx6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:86881)\n    at Sx6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:85842)\n    at R96 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:85663)\n    at t38 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:82031)\n    at C6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:6358)\n    at Immediate.Mh1 [as _onImmediate] (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:546:5822)","timestamp":"2026-04-08T05:33:52.346Z"},{"error":"Error: Tool mcp__claude-peers__check_messages not found\n    at I9K (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2214:30247)\n    at Fz (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:20978)\n    at SY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:39515)\n    at QW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:50208)\n    at bx6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:86881)\n    at Sx6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:85842)\n    at R96 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:85663)\n    at t38 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:82031)\n    at x6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:6480)\n    at T6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:553:4964)","timestamp":"2026-04-08T07:45:12.938Z"},{"error":"Error: Tool mcp__claude-peers__set_summary not found\n    at I9K (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2214:30247)\n    at Fz (file:///opt/homebrew/lib…

Note: Content was truncated.

extent analysis

TL;DR

The ExitPlanMode tool is missing from the registry in Opus 4.6 1M context sessions, causing an error when attempting to exit plan mode.

Guidance

  • Verify that the ExitPlanMode tool is correctly installed and registered in the Opus 4.6 1M context configuration.
  • Check the tool registry for any misconfigurations or missing dependencies that may be preventing the ExitPlanMode tool from being loaded.
  • Consider using a plain-text workaround to exit plan mode, as suggested in the issue, until the ExitPlanMode tool is available.
  • Review the error logs to ensure that there are no other tool-related errors that may be contributing to the issue.

Example

No code snippet is provided as the issue does not imply a specific code change.

Notes

The issue appears to be specific to the Opus 4.6 1M context configuration, and the ExitPlanMode tool is available in standard Sonnet sessions. This suggests that the issue may be related to the configuration or setup of the Opus 4.6 1M context.

Recommendation

Apply a workaround, such as using a plain-text command to exit plan mode, until the ExitPlanMode tool is available. This will allow the model to continue functioning while the issue is being investigated and resolved.

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 [Bug] ExitPlanMode tool missing from Opus 4.6 1M context deferred registry [1 comments, 2 participants]