Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

GitHub Copilot Hooks

Part of hooks/ — see also src/hooks/ for installation code

Specifics

  • Uses the rtk hook copilot Rust binary (not a shell script) -- no jq dependency
  • Auto-detects two input formats: VS Code Copilot Chat (snake_case tool_name/tool_input) and Copilot CLI (camelCase toolName/toolArgs with JSON-stringified args)
  • VS Code format: returns updatedInput for transparent rewrite
  • Copilot CLI format: returns permissionDecision: "deny" with suggestion (Copilot CLI API doesn't support updatedInput)

Testing

bash hooks/test-copilot-rtk-rewrite.sh