---
title: "Comment by Ahmet Özel on \"Notes on making an AI agent ask before it pushes\" | Hashnode"
description: "That real command trace shows why naive command-prefix allowlists fail even with a completely benign agent: prefix-matching git push * misses chained shell comm"
url: "https://hashnode.com/posts/notes-on-making-an-ai-agent-ask-before-it-pushes/6b02a5f569e226abdb164989/comment/6b02b9b72f11a7378a43a3ad"
---

[Discussion](https://hashnode.com/posts/notes-on-making-an-ai-agent-ask-before-it-pushes/6b02a5f569e226abdb164989)

Comment [Notes on making an AI agent ask before it pushes](https://hashnode.com/posts/notes-on-making-an-ai-agent-ask-before-it-pushes/6b02a5f569e226abdb164989)

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[Nov 22](https://hashnode.com/posts/notes-on-making-an-ai-agent-ask-before-it-pushes/6b02a5f569e226abdb164989/comment/6b02b9b72f11a7378a43a3ad)

That real command trace shows why naive command-prefix allowlists fail even with a completely benign agent: prefix-matching git push \* misses chained shell commands starting with cd and inline -c flags without anyone trying to bypass a rule.

Even wildcard patterns on bash strings are fragile because shell quoting, subshells, or scripts can still hide a push. For high-stakes boundaries like pushing branches or opening PRs, enforcing permissions at the credential or API-token scope—holding write tokens behind an approval proxy rather than inside the shell environment—is far harder to trip over accidentally.
