refactor(backend/copilot): deduplicate tool-results guidance to system prompt only

Remove redundant tool-results mentions from Read and bash_exec tool
descriptions — the system prompt storage supplement already covers this
clearly. Avoids wasting tokens on triple-repeated instructions.
This commit is contained in:
Zamil Majdy
2026-03-25 13:37:43 +07:00
parent 9f418807a6
commit a6b4cd2435
2 changed files with 2 additions and 5 deletions

View File

@@ -609,9 +609,7 @@ async def _read_file_handler(args: dict[str, Any]) -> dict[str, Any]:
_READ_TOOL_NAME = "Read"
_READ_TOOL_DESCRIPTION = (
"Read a file from the local filesystem. "
"Use offset and limit to read specific line ranges for large files. "
"Use this tool (NOT bash_exec) to read SDK tool-result files under "
"~/.claude/projects/.../tool-results/."
"Use offset and limit to read specific line ranges for large files."
)
_READ_TOOL_SCHEMA = {
"type": "object",

View File

@@ -44,8 +44,7 @@ class BashExecTool(BaseTool):
return (
"Execute a Bash command or script. Shares filesystem with SDK file tools. "
"Useful for scripts, data processing, and package installation. "
"Killed after timeout (default 30s, max 120s). "
"CANNOT read SDK tool-result files (~/.claude/projects/...); use Read instead."
"Killed after timeout (default 30s, max 120s)."
)
@property