From 3fc2cef781b3691795edaeeb82ac24377015ea97 Mon Sep 17 00:00:00 2001 From: ming Date: Tue, 14 Apr 2026 08:41:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(agents):=20remove=20invalid=20tool=20names?= =?UTF-8?q?=20across=20multiple=20agents=20=F0=9F=A4=96=F0=9F=A4=96?= =?UTF-8?q?=F0=9F=A4=96=20(#1384)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove or replace tool names that VS Code Copilot silently ignores because they do not exist in the current built-in tools reference. Files changed: - context-architect: 'codebase', 'terminalCommand' → proper namespaced tools - debug: 'web/githubRepo', bare 'search' → remove/replace - implementation-plan: 'think', 'search/changes', 'findTestFiles', 'search/searchResults', 'web/githubRepo', 'execute/runNotebookCell', 'read/getNotebookSummary', 'read/readNotebookCellOutput', bare 'search' → remove - janitor: 'browser', 'microsoft.docs.mcp/*', 'read/getTaskOutput' → remove browser & mcp wildcard; move getTaskOutput to execute/ namespace - plan: 'web/githubRepo', 'azure-mcp/search', 'search/searchResults' → remove - principal-software-engineer: 'browser' → remove - specification: old-style bare tool names → correct namespaced equivalents Reference: https://code.visualstudio.com/docs/copilot/reference/copilot-vscode-features#_chat-tools Co-authored-by: Ming --- agents/context-architect.agent.md | 2 +- agents/debug.agent.md | 2 +- agents/implementation-plan.agent.md | 2 +- agents/janitor.agent.md | 2 +- agents/plan.agent.md | 2 -- agents/principal-software-engineer.agent.md | 2 +- agents/specification.agent.md | 2 +- 7 files changed, 6 insertions(+), 8 deletions(-) diff --git a/agents/context-architect.agent.md b/agents/context-architect.agent.md index ead84666..2dc3d719 100644 --- a/agents/context-architect.agent.md +++ b/agents/context-architect.agent.md @@ -1,7 +1,7 @@ --- description: 'An agent that helps plan and execute multi-file changes by identifying relevant context and dependencies' model: 'GPT-5' -tools: ['codebase', 'terminalCommand'] +tools: ['search/codebase', 'search/usages', 'read/problems', 'read/readFile', 'edit/editFiles', 'execute/runInTerminal', 'execute/getTerminalOutput', 'web/fetch'] name: 'Context Architect' --- diff --git a/agents/debug.agent.md b/agents/debug.agent.md index 75de3b99..f8b30690 100644 --- a/agents/debug.agent.md +++ b/agents/debug.agent.md @@ -1,7 +1,7 @@ --- description: 'Debug your application to find and fix a bug' name: 'Debug Mode Instructions' -tools: ['edit/editFiles', 'search', 'execute/getTerminalOutput', 'execute/runInTerminal', 'read/terminalLastCommand', 'read/terminalSelection', 'search/usages', 'read/problems', 'execute/testFailure', 'web/fetch', 'web/githubRepo', 'execute/runTests'] +tools: ['edit/editFiles', 'search/codebase', 'search/usages', 'execute/getTerminalOutput', 'execute/runInTerminal', 'read/terminalLastCommand', 'read/terminalSelection', 'read/problems', 'execute/testFailure', 'web/fetch', 'execute/runTests'] --- # Debug Mode Instructions diff --git a/agents/implementation-plan.agent.md b/agents/implementation-plan.agent.md index 39079c6c..eb6d218c 100644 --- a/agents/implementation-plan.agent.md +++ b/agents/implementation-plan.agent.md @@ -1,7 +1,7 @@ --- description: "Generate an implementation plan for new features or refactoring existing code." name: "Implementation Plan Generation Mode" -tools: ["search/codebase", "search/usages", "vscode/vscodeAPI", "think", "read/problems", "search/changes", "execute/testFailure", "read/terminalSelection", "read/terminalLastCommand", "vscode/openSimpleBrowser", "web/fetch", "findTestFiles", "search/searchResults", "web/githubRepo", "vscode/extensions", "edit/editFiles", "execute/runNotebookCell", "read/getNotebookSummary", "read/readNotebookCellOutput", "search", "vscode/getProjectSetupInfo", "vscode/installExtension", "vscode/newWorkspace", "vscode/runCommand", "execute/getTerminalOutput", "execute/runInTerminal", "execute/createAndRunTask", "execute/getTaskOutput", "execute/runTask"] +tools: ["search/codebase", "search/usages", "vscode/vscodeAPI", "read/problems", "execute/testFailure", "read/terminalSelection", "read/terminalLastCommand", "vscode/openSimpleBrowser", "web/fetch", "vscode/extensions", "edit/editFiles", "vscode/getProjectSetupInfo", "vscode/installExtension", "vscode/newWorkspace", "vscode/runCommand", "execute/getTerminalOutput", "execute/runInTerminal", "execute/createAndRunTask", "execute/getTaskOutput", "execute/runTask"] --- # Implementation Plan Generation Mode diff --git a/agents/janitor.agent.md b/agents/janitor.agent.md index 42fb9258..4a670696 100644 --- a/agents/janitor.agent.md +++ b/agents/janitor.agent.md @@ -1,7 +1,7 @@ --- description: 'Perform janitorial tasks on any codebase including cleanup, simplification, and tech debt remediation.' name: 'Universal Janitor' -tools: [vscode/extensions, vscode/getProjectSetupInfo, vscode/installExtension, vscode/newWorkspace, vscode/runCommand, vscode/vscodeAPI, execute/getTerminalOutput, execute/runTask, execute/createAndRunTask, execute/runTests, execute/runInTerminal, execute/testFailure, read/terminalSelection, read/terminalLastCommand, read/getTaskOutput, read/problems, read/readFile, browser, 'github/*', 'microsoft.docs.mcp/*', edit/editFiles, search, web] +tools: [vscode/extensions, vscode/getProjectSetupInfo, vscode/installExtension, vscode/newWorkspace, vscode/runCommand, vscode/vscodeAPI, execute/getTerminalOutput, execute/runTask, execute/createAndRunTask, execute/runTests, execute/runInTerminal, execute/testFailure, execute/getTaskOutput, read/terminalSelection, read/terminalLastCommand, read/problems, read/readFile, 'github/*', edit/editFiles, search, web] --- # Universal Janitor diff --git a/agents/plan.agent.md b/agents/plan.agent.md index 4d7252c4..69b63f08 100644 --- a/agents/plan.agent.md +++ b/agents/plan.agent.md @@ -5,9 +5,7 @@ tools: - search/codebase - vscode/extensions - web/fetch - - web/githubRepo - read/problems - - azure-mcp/search - search/searchResults - search/usages - vscode/vscodeAPI diff --git a/agents/principal-software-engineer.agent.md b/agents/principal-software-engineer.agent.md index 379b2cc7..ccb63bdc 100644 --- a/agents/principal-software-engineer.agent.md +++ b/agents/principal-software-engineer.agent.md @@ -1,7 +1,7 @@ --- description: 'Provide principal-level software engineering guidance with focus on engineering excellence, technical leadership, and pragmatic implementation.' name: 'Principal software engineer' -tools: ['agent', 'browser', 'edit', 'execute', 'github/*', 'read', 'search', 'todo', 'vscode', 'web/fetch'] +tools: ['agent', 'edit', 'execute', 'github/*', 'read', 'search', 'todo', 'vscode', 'web/fetch'] --- # Principal software engineer mode instructions diff --git a/agents/specification.agent.md b/agents/specification.agent.md index 15e4ea6d..5d933296 100644 --- a/agents/specification.agent.md +++ b/agents/specification.agent.md @@ -1,7 +1,7 @@ --- description: 'Generate or update specification documents for new or existing functionality.' name: 'Specification' -tools: ['changes', 'search/codebase', 'edit/editFiles', 'extensions', 'web/fetch', 'findTestFiles', 'githubRepo', 'new', 'openSimpleBrowser', 'problems', 'runCommands', 'runTasks', 'runTests', 'search', 'search/searchResults', 'runCommands/terminalLastCommand', 'runCommands/terminalSelection', 'testFailure', 'usages', 'vscodeAPI', 'microsoft.docs.mcp', 'github'] +tools: ['search/codebase', 'search/usages', 'edit/editFiles', 'vscode/extensions', 'web/fetch', 'vscode/openSimpleBrowser', 'read/problems', 'execute/runTests', 'read/terminalLastCommand', 'read/terminalSelection', 'execute/testFailure', 'vscode/vscodeAPI'] --- # Specification mode instructions