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:
parent
16f02a20e2
commit
705dc7097c
2 changed files with 3 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue