#Commands like `git diff` block the agent from doing anything. Is there a rule to universally block?
3 messages · Page 1 of 1 (latest)
Hi @frail needle. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Warp currently allows you to control agent autonomy and block or allow specific commands using the command denylist and allowlist features. You can add regular expressions to the denylist to require explicit approval before the agent runs certain commands. For example, to block commands like git diff, git log, or any command that typically triggers a pager, you can add patterns such as:
git diff(\s.*)?
git log(\s.*)?
less(\s.*)?
man(\s.*)?
Add these patterns in Settings > AI > Agents > Command denylist. Any command matching these patterns will always require your confirmation before execution, effectively blocking the agent from running them autonomously. The denylist takes precedence over other settings, so even if the agent is set to full autonomy, it will still prompt for approval on denylisted commands Agent Permissions.