Demonstrate three separate permission controls:
toolslimits which tools the model can see.allowedToolspre-approves the read-only tools.canUseToolevaluates the remainingBashrequest at runtime.
Complete the repository setup, then:
npm install
npm start -- /path/to/git/repositoryThe callback allows only git status --short, git status --porcelain, and
their --no-pager equivalents. It denies every other shell command. The sample
does not modify the repository.