Tighten system prompt and tool definitions
Prompt changes (native.md): - Remove duplicate 'Temporary files' section - Consolidate 'remember' instructions into single authoritative location - Remove motivational 'Benefits' list from Plan Mode - Add 'Code Search Tool Selection' guidance (code_search vs rg) Tool changes (tool_definitions.rs, tool_dispatch.rs): - Remove screenshot tool (webdriver_screenshot remains) - Remove coverage tool - Reduce plan_write description from 22 lines to 1 line - Update tool count tests (16 -> 14 core tools) Net result: ~6 lines removed from prompt, ~56 lines removed from tool definitions, clearer tool selection guidance added.
This commit is contained in:
@@ -38,8 +38,6 @@ pub async fn dispatch_tool<W: UiWriter>(
|
||||
"plan_approve" => plan::execute_plan_approve(tool_call, ctx).await,
|
||||
|
||||
// Miscellaneous tools
|
||||
"screenshot" => misc::execute_take_screenshot(tool_call, ctx).await,
|
||||
"coverage" => misc::execute_code_coverage(tool_call, ctx).await,
|
||||
"code_search" => misc::execute_code_search(tool_call, ctx).await,
|
||||
|
||||
// Research tool
|
||||
|
||||
Reference in New Issue
Block a user