Part of
hooks/— see alsosrc/hooks/for installation code
- Uses the
rtk hook copilotRust binary (not a shell script) -- nojqdependency - Auto-detects two input formats: VS Code Copilot Chat (snake_case
tool_name/tool_input) and Copilot CLI (camelCasetoolName/toolArgswith JSON-stringified args) - VS Code format: returns
updatedInputfor transparent rewrite - Copilot CLI format: returns
permissionDecision: "deny"with suggestion (Copilot CLI API doesn't supportupdatedInput)
bash hooks/test-copilot-rtk-rewrite.sh