Add guidance to shell tool description to avoid unnecessary cd prefixes
LLMs were prefixing shell commands with `cd <workspace> &&` unnecessarily, wasting tokens and cluttering CLI display. Added clear guidance in the shell tool description that commands already execute in the working directory.
This commit is contained in:
@@ -51,7 +51,7 @@ fn create_core_tools(exclude_research: bool) -> Vec<Tool> {
|
|||||||
let mut tools = vec![
|
let mut tools = vec![
|
||||||
Tool {
|
Tool {
|
||||||
name: "shell".to_string(),
|
name: "shell".to_string(),
|
||||||
description: "Execute shell commands".to_string(),
|
description: "Execute shell commands in the current working directory. Do NOT prefix commands with `cd <path> &&` - commands already run in the workspace.".to_string(),
|
||||||
input_schema: json!({
|
input_schema: json!({
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|||||||
Reference in New Issue
Block a user