fix: Windows Specific Agent Quality & System Prompt (#18351)

This commit is contained in:
Tommaso Sciortino
2026-02-05 09:50:12 -08:00
committed by GitHub
parent ee2c8eef19
commit e4c80e6382
5 changed files with 232 additions and 39 deletions
@@ -57,6 +57,11 @@ export const CodebaseInvestigatorAgent = (
? PREVIEW_GEMINI_FLASH_MODEL
: DEFAULT_GEMINI_MODEL;
const listCommand =
process.platform === 'win32'
? '`dir /s` (CMD) or `Get-ChildItem -Recurse` (PowerShell)'
: '`ls -R`';
return {
name: 'codebase_investigator',
kind: 'local',
@@ -164,7 +169,7 @@ When you are finished, you **MUST** call the \`complete_task\` tool. The \`repor
"ExplorationTrace": [
"Used \`grep\` to search for \`updateUser\` to locate the primary function.",
"Read the file \`src/controllers/userController.js\` to understand the function's logic.",
"Used \`ls -R\` to look for related files, such as services or database models.",
"Used ${listCommand} to look for related files, such as services or database models.",
"Read \`src/services/userService.js\` and \`src/models/User.js\` to understand the data flow and how state is managed."
],
"RelevantLocations": [