Skip to content

Stabilizing Plan/Act Mode: Delegating SystemPrompt's Tool Guide to ToolSpec#201

Merged
daisuke-awaji merged 1 commit intomainfrom
plan-act
Jul 16, 2025
Merged

Stabilizing Plan/Act Mode: Delegating SystemPrompt's Tool Guide to ToolSpec#201
daisuke-awaji merged 1 commit intomainfrom
plan-act

Conversation

@daisuke-awaji
Copy link
Contributor

@daisuke-awaji daisuke-awaji commented Jul 16, 2025

Issue Fixed

Fixed a hallucination issue where Claude models (particularly Sonnet 4 and other high-end models) would attempt to execute write operations through tools even when:

These tools were explicitly disabled in ToolSpec
The system was in Plan mode

Root Cause

The issue occurred when the SystemPrompt contained instructions about tool usage that conflicted with the actual tool permissions defined in ToolSpec.

Solution

Moved all tool usage instructions from the SystemPrompt to the ToolSpec Description field, ensuring that the model receives consistent information about available tools and their permitted operations.

This change helps prevent the model from hallucinating tool capabilities based on conflicting information sources.

@daisuke-awaji daisuke-awaji merged commit cafd2ab into main Jul 16, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant