Functions§
- handle_
codex_ pretooluse - handle_
codex_ session_ start - handle_
copilot - Copilot-specific PreToolUse handler. VS Code Copilot Chat uses the same hook format as Claude Code. Tool names differ: “runInTerminal” / “editFile” instead of “Bash” / “Read”.
- handle_
redirect - handle_
rewrite - handle_
rewrite_ inline - Inline rewrite: takes a command as CLI args, prints the rewritten command to stdout. Used by the OpenCode TS plugin where the command is passed as an argument, not via stdin JSON.