Describe the feature or problem you'd like to solve
Block specific commands universally, more granularly than --deny-tool supports.
Proposed solution
Agents love to run git add -A, and it is almost always the wrong thing to do. I want to block this universally. Presumably there are other commands that people want to block. (Instructions files are insufficient, they can be forgotten too easily.)
Ideas:
- Support something like
--deny-tool 'shell(git add -A)'
- Support hooks in
~/.copilot/hooks
Example prompts or workflows
copilot -p 'commit the changes'
copilot -p 'commit and push the changes'
Additional context
No response