codexplugin
D

Dangerous Command Blocker

by am-will

Hookcoding8.8K stars

Block catastrophic shell commands with multi-level security

Install now

$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/security/dangerous-command-blocker --hook

About

Block catastrophic shell commands with multi-level security

Dangerous Command Blocker is a codex hook that automates events in your Codex workflow — from notifications to linting and git guardrails. Hooks install with the --hook flag and run without manual invocation.

Source package path: am-will/codex-skills/hooks/aitmpl-codex/security/dangerous-command-blocker on GitHub (am-will/codex-skills).

Key features

  • Automates Codex lifecycle events after install
  • Runs in the background — no prompt needed once configured
  • Install with the --hook flag via npx
  • Fits coding automation and guardrail workflows

How to install

  1. 01

    Copy the install command

    Use the command on this page — it includes the correct --hook flag for this hook.

  2. 02

    Run it in your project terminal

    Execute the command from the directory where you use Codex, not necessarily your home folder.

  3. 03

    Restart or reload Codex

    Restart the Codex CLI or reload your IDE window so the new extension is picked up.

  4. 04

    Try an example prompt

    Ask Codex something related to Dangerous Command Blocker to confirm the hook is active.

Example prompts

Try these after installing to confirm Dangerous Command Blocker is working.

> Explain when the Dangerous Command Blocker hook runs during a Codex session
> What does the Dangerous Command Blocker hook automate after install?
> Help me verify the Dangerous Command Blocker hook is configured correctly

Requirements

  • Node.js 18 or newer with npx available
  • Codex CLI or IDE extension installed and signed in

More from am-will

Other hooks by the same author

Related hooks

More in coding