continue icon indicating copy to clipboard operation
continue copied to clipboard

Add guidance to Bash/terminal tools to prefer edit tools over bash commands for file editing

Open continue opened this issue 1 year ago • 4 comments

Problem

Agents using the Bash/terminal command tools sometimes make mass edits using shell scripts or commands (e.g., sed, awk, perl). These can have unintended side effects or introduce syntax errors.

See example: https://github.com/continuedev/remote-config-server/pull/1554/commits/fcfaa32e864137006d30c11527643aa837ad2158

Solution

Add brief sentences to both the CLI and core terminal command tool descriptions that if edit tools are available (Edit, MultiEdit, etc.), those should be used instead of bash commands for editing files.

Files to Update

  1. extensions/cli/src/tools/runTerminalCommand.ts
  2. core/tools/definitions/runTerminalCommand.ts

Context

Related Slack thread: https://continuedev.slack.com/archives/C07A4MCH5JT/p1762822903683309?thread_ts=1762819880.628269&cid=C07A4MCH5JT

continue avatar Nov 11 '25 01:11 continue

:tada: This issue has been resolved in version 1.29.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

sestinj avatar Nov 18 '25 18:11 sestinj

:tada: This issue has been resolved in version 1.34.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

sestinj avatar Nov 19 '25 01:11 sestinj

:tada: This issue has been resolved in version 1.5.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

sestinj avatar Nov 19 '25 04:11 sestinj

:tada: This issue has been resolved in version 1.6.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

sestinj avatar Nov 20 '25 21:11 sestinj