Merge pull request #8674 from continuedev/dallinbriggs/8673-bash-tool-guidance

Add guidance to Bash tools to prefer edit tools over bash commands
This commit is contained in:
continue[bot] 2025-11-10 17:38:21 -08:00 • committed by GitHub
parent 16f02a20e2
commit 705dc7097c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View file

@ -29,6 +29,7 @@ const RUN_COMMAND_NOTES = `The shell is not stateful and will not remember any p
When a command is run in the background ALWAYS suggest using shell commands to stop it; NEVER suggest using Ctrl+C.\
When suggesting subsequent shell commands ALWAYS format them in shell command blocks.\
Do NOT perform actions requiring special/admin privileges.\
IMPORTANT: To edit files, use Edit/MultiEdit tools instead of bash commands (sed, awk, etc).\
${PLATFORM_INFO}`;
export const runTerminalCommandTool: Tool = {

View file

@ -34,6 +34,8 @@ export const runTerminalCommandTool: Tool = {
description: `Executes a terminal command and returns the output
Commands are automatically executed from the current working directory (${process.cwd()}), so there's no need to change directories with 'cd' commands.
IMPORTANT: To edit files, use Edit/MultiEdit tools instead of bash commands (sed, awk, etc).
`,
parameters: {
type: "object",