Skip to content

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

@continue

Description

@continue

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

Metadata

Metadata

Assignees

Labels

area:toolsRelates to tool usagekind:enhancementIndicates a new feature request, imrovement, or extensionreleased

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions