From 07f23bab5e86a2b6de8acb50eab2a9359acacebd Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Mon, 9 Feb 2026 16:45:11 -0700 Subject: [PATCH] feat: Let agent level variables be defined to bypass guard protections for tool invocations --- assets/functions/utils/prompt-utils.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/functions/utils/prompt-utils.sh b/assets/functions/utils/prompt-utils.sh index f78eaea..934967f 100755 --- a/assets/functions/utils/prompt-utils.sh +++ b/assets/functions/utils/prompt-utils.sh @@ -507,7 +507,7 @@ open_link() { guard_operation() { if [[ -t 1 ]]; then - if [[ -z "$AUTO_CONFIRM" ]]; then + if [[ -z "$AUTO_CONFIRM" && -z "$LLM_AGENT_VAR_AUTO_CONFIRM" ]]; then ans="$(confirm "${1:-Are you sure you want to continue?}")" if [[ "$ans" == 0 ]]; then @@ -659,7 +659,7 @@ guard_path() { path="$(_to_real_path "$1")" confirmation_prompt="$2" - if [[ ! "$path" == "$(pwd)"* && -z "$AUTO_CONFIRM" ]]; then + if [[ ! "$path" == "$(pwd)"* && -z "$AUTO_CONFIRM" && -z "$LLM_AGENT_VAR_AUTO_CONFIRM" ]]; then ans="$(confirm "$confirmation_prompt")" if [[ "$ans" == 0 ]]; then