you blocked git push for your test-runner subagent
Lagosaur
Visit on X@0xLagosaur3.6K followers
10,759 views
you blocked git push for your test-runner subagent
took away its entire shell
one line in the agent file: disallowedTools: Bash(git push *)
the docs are specific, a rule like that in disallowedTools
removes the whole tool, not the one command
so the agent whose only job is running your tests has nothing left to run them with
and the file still looks exactly as careful as you meant it to be
if you want the terminal minus one command,
block it in a hook inside the same file:
PreToolUse, matcher Bash, command:
jq -r '.tool_input.command' | grep -q 'git push' && exit 2 || exit 0
it keeps its shell
the push stays yours
3 Comments
Comments from the original post on X (Twitter)

@RizkyHidayat1
tensorrt 转完之后掉精度了吗,掉多少,这个变化得看
1 like

@MariaHall794008
he made friends with the corgis at the parking lot for a solid half hour

@ElizabethT54929
emulation is fine but nothing beats the real buttons
