`--trust-all-tools` should skip confirmation prompt
Kiro Product
CLI
Feature Description
--trust-all-tools flag now shows an interactive confirmation prompt before starting the session.
This breaks aliases and scripted usage. Please add a --yes / --no-confirm flag to skip the prompt, or respect --trust-all-tools as implicit consent.
Use Case
I use a shell alias like alias kc="kiro-cli chat --trust-all-tools --agent kiro --model claude-opus-4.6" to start sessions quickly.
Since a recent update, the confirmation prompt blocks startup and requires manual interaction, defeating the purpose of --trust-all-tools. This also breaks non-interactive/scripted usage with --no-interactive.
Additional Context
No response
🤖 Potential Duplicate Detected
This issue appears to be similar to:
- #5071: Feature Request: Subagent tool approval improvements (85% similar)
- #5063: Subagent trust confirmation should be batched, not per-operation (82% similar)
What happens next?
- ⏰ This issue will be automatically closed in 3 days
- 🏷️ If this is not a duplicate, you can prevent automatic closure by adding a comment or reacting with 👎 to this message.
- 💬 Comment on the original issue if you have additional information
Why is this marked as duplicate? Both issues deal with tool approval problems where the --trust-all-tools flag or autoApproveTools configuration doesn't properly skip confirmation prompts, requiring manual approval despite being configured to auto-approve
Second this - I picked this flag for a reason, I understand the risks and have already consented
Thank you for your feedback! 🙏
The duplicate label has been removed and this issue has been sent back for maintainer review.
A maintainer will review this issue shortly.
Adding my case here — same issue in a CI/CD (Jenkins) environment.
Environment:
- kiro-cli 2.0.0
- macOS (Jenkins node)
- Running in Jenkins pipeline (non-interactive by nature)
Command:
kiro-cli chat --trust-all-tools --no-interactive "<prompt>"
Error (from verbose logs):
Command execute_bash is rejected because it matches one or more rules on the denied list:
- non-interactive mode (no user to approve)
The --trust-all-tools flag should override the non-interactive deny rule for execute_bash. The whole point of combining these two flags is to enable fully autonomous execution in CI — there's no human to approve, and we've explicitly opted in to trust all tools.
This is a blocker for any CI/CD integration that needs kiro-cli to execute shell commands as part of its workflow.
Update: After checking the Kiro CLI 2.0 changelog and headless mode docs, it turns out this is likely by design — headless mode (--no-interactive + --trust-all-tools) requires API Key authentication via KIRO_API_KEY env var, not SSO.
However, this creates a blocker for enterprise SSO users:
- Our org uses enterprise SSO (AWS IAM Identity Center) for Kiro authentication
- API Key generation is controlled by the enterprise admin and may not be enabled
- Without API Key access, there's no way to use headless mode in CI/CD even with a valid SSO session
Request: Either:
- Allow
--trust-all-toolsto work with SSO authentication in--no-interactivemode (the user has already authenticated and explicitly opted in), or - Make the error message clearer — instead of
non-interactive mode (no user to approve), say something likeheadless mode requires KIRO_API_KEY authentication. See https://kiro.dev/docs/cli/headless/
The current error gives no hint that the auth method is the issue, which sends users on a wild goose chase debugging tool permissions.
We could have a setting for this - chat.disableTrustAllToolsWarning
I use kiro-cli chat --no-interactive --trust-all-tools <TASK> for sub-agents in Claude Code and this change completely breaks my workflow. I'm running Kiro on a dedicated machine in full isolation, AWS shouldn't decide for me what's safe or not.
I use
kiro-cli chat --no-interactive --trust-all-tools <TASK>for sub-agents in Claude Code and this change completely breaks my workflow. I'm running Kiro on a dedicated machine in full isolation, AWS shouldn't decide for me what's safe or not.
This is a bug that will be fixed in the next release. You should be able to run all tasks in headless mode if --trust-all-tools without requiring any prompt confirmation / approval.
This should be fixed in 2.0.1
Thanks @erbenmo for fixing this so fast. I have updated to 2.0.1 and in headless mode the shell tool works when run with --trust-all-tools.
Kiro CLI 2.1 (Apr 24, 2026) includes several improvements to tool trust and the terminal UI. This may have been addressed as part of those changes.
Could you please update to CLI 2.1.1 and verify whether --trust-all-tools now skips the confirmation prompt as expected? We'll close this once confirmed.
This issue has been automatically closed due to inactivity. It has been 7 days since we requested additional information.
If you still need help with this issue, please feel free to reopen it or create a new issue with the requested details.