feat: Support disabling tool reminder #4221
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently a tool reminder message is appended to tool response on every third tool call.
For a large number of tools, this behavior might flood the agent's context and cause it to underperform.
While I understand the reason to have the reminder, the developer should be able to disable them in situations where they are not needed, e.g. short tool responses and thoughts or short context window.
At this moment there is no way to disable this behavior.
This PR adds support for spacing or disabling the reminders by defining the reminder rate at the task.
Note
Introduces configurable tool reminder cadence and ability to disable it.
tool_reminder_after_usagetoTaskto control how often the tools reminder is appended; set to0to disableToolUsagereads this setting to initialize_remember_format_after_usages, preserving defaults (3; or 4 for larger OpenAI models when unset)0(no reminders) and only trigger on the configured intervalWritten by Cursor Bugbot for commit 725e433. This will update automatically on new commits. Configure here.