Agentic Duo Chat unnecessarily runs sed
or other terminal commands
Problem
Related to #548542 (closed)
Duo Agent platform features sometimes use terminal commands rather than the available dedicated tools for simple operations such as reading, or searching for files. This to bad UX as users need to approve those commands rather than Duo running them automatically.
Examples
Sometimes, Duo Chat requests that the user approve use of the sed
tool when it just needs to read some lines of a file.
See: #556045 (comment 2652009900).
Instead, Duo Chat should use the read_file
tool.
Other times it uses grep rather than the available find
tools:
Desired Outcome
Duo only uses run_command
when no more appropriate tool is available.
Implementation Plan
TBD but this should be fixed with better tool descriptions and examples.
Edited by 🤖 GitLab Bot 🤖