Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 549 Bytes

File metadata and controls

18 lines (13 loc) · 549 Bytes

Tool permissions

Demonstrate three separate permission controls:

  • tools limits which tools the model can see.
  • allowedTools pre-approves the read-only tools.
  • canUseTool evaluates the remaining Bash request at runtime.

Complete the repository setup, then:

npm install
npm start -- /path/to/git/repository

The 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.