logoalt Hacker News

esafakyesterday at 3:23 PM2 repliesview on HN

How is it forbidden? I tell agents to use my wrappers in AGENTS but they ignore it half the time and use the naked tool.


Replies

Squid_Tameryesterday at 4:26 PM

If you get desperate, I've given my agent a custom $PATH that replaces the forbidden tools with shims that either call the correct tool, or at least tell it what to do differently.

~/agent-shims/mvn:

    #!/bin/bash
    echo "Usage of 'mvn' is forbidden. Use build.sh or run-tests.sh"
That way it is prevented from using the wrong tools, and can self-correct when it tries.
simslayesterday at 3:42 PM

Permissions scoping

show 1 reply