Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Trust list command chain handling

Open saku-evaluoi opened this issue 1 year ago • 3 comments

Feature Description

I want Kiro to understand the shell commands it's chaining and utilize trust list for each chained command separately. E.g. now it may suggest for trust:

echo "Remove unnecessary setup scripts folder" && rm -rf ./scripts echo *

In this case there are quite remarkable things happening after that innocent echo. I have my doubts Kiro will treat separately the commands following && or || operators and therefore I cannot trust Kiro with asterisk because I have no visibility whether Kiro will treat the whole command chain as one single entity or will it parse its sub-commands separately and understand the consequences.

Use Case

When letting Kiro implement the task list for a solution.

Additional Context

No response

saku-evaluoi avatar Jul 30 '25 16:07 saku-evaluoi

Hey @saku-evaluoi , We've updated our documentation on trusted commands and the patterns that Kiro looks for when evaluating trusted command. Refer to the following documentation section for trusted commands providing this information https://kiro.dev/docs/chat/terminal/#trusted-commands

ykethan avatar Jul 30 '25 20:07 ykethan

Thanks, I hadn't seen this document before. It explains well the issue I described.

On Wed, Jul 30, 2025 at 11:18 PM Kethan sai @.***> wrote:

ykethan left a comment (kirodotdev/Kiro#1602) https://github.com/kirodotdev/Kiro/issues/1602#issuecomment-3137696900

Hey @saku-evaluoi https://github.com/saku-evaluoi , We've updated our documentation on trusted commands and the patterns that Kiro looks for when evaluating trusted command. Refer to the following documentation section for trusted commands providing this information https://kiro.dev/docs/chat/terminal/#trusted-commands

— Reply to this email directly, view it on GitHub https://github.com/kirodotdev/Kiro/issues/1602#issuecomment-3137696900, or unsubscribe https://github.com/notifications/unsubscribe-auth/BRUMPKWMBR6NO2UC3KPUBSL3LER7ZAVCNFSM6AAAAACCXPUZSCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCMZXGY4TMOJQGA . You are receiving this because you were mentioned.Message ID: @.***>

saku-evaluoi avatar Jul 31 '25 16:07 saku-evaluoi

Thank you for the confirmation and appreciate reaching out. We are working on improving this experience, do keep an eye out for any updates to the trusted commands on the Kiro documentation. Closing the issue.

ykethan avatar Jul 31 '25 23:07 ykethan