Skip to content

Support native PowerShell PreToolUse hooks (not just Bash-wrapped pwsh/powershell commands) #16075

Closed as duplicate

Description

@zhexulong

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.

Activity

  1. added
    CLIIssues related to the Codex CLI
    windows-osIssues related to Codex on Windows systems
    on Mar 28, 2026
  2. github-actions commented on Mar 28, 2026

    @github-actions
    Contributor
  3. zhexulong commented on Mar 28, 2026

    @zhexulong
    Author

    #16007 is also an issue I opened, but it was mistakenly closed by a staff member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIenhancementNew feature or requestwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions