Support native PowerShell PreToolUse hooks (not just Bash-wrapped pwsh/powershell commands)
Resolved 💬 2 comments Opened Mar 28, 2026 by zhexulong Closed Mar 28, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What variant of Codex are you using?
CLI
What feature would you like to see?
Please expose a native PowerShell tool target in Codex PreToolUse hooks so hook/plugin authors can block dangerous PowerShell commands directly, instead of only handling pwsh -Command ... when it is routed through Bash.
Additional information
Unlike #14754 , this issue aims to add support for PowerShell.
2 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
#16007 is also an issue I opened, but it was mistakenly closed by a staff member