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:
Dhanji R. Prasanna
2026-01-14 19:00:53 +05:30
parent 03143ec7f8
commit 9ef064a041

View File

@@ -51,7 +51,7 @@ fn create_core_tools(exclude_research: bool) -> Vec<Tool> {
let mut tools = vec![
Tool {
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!({
"type": "object",
"properties": {