launch-codes

Reviewed at commit bc8d48d

Requires a one-time code and confirmation for selected risky Bash commands, including git push --force and vercel --prod.

Made by
OneWave AI
What we checked

Stops Claude's Bash commands that look dangerous (rm -rf outside build folders, git push --force, git reset --hard, DROP/TRUNCATE, vercel --prod, chmod -R 777, curl piped into a shell) until you type a 4-character code and confirm LAUNCH; otherwise the command is blocked. It plays a siren and shows a red alert pane. It reads only the command text and stores nothing.

Review details

Static review of the source at the pinned commit; not run. Registers session.start (the /launch-codes command), tool.call for Bash only, command.run (/launch-codes demo or test <command>) and ui.render for its own pane. The tool.call hook classifies the command with a local tokenizer and pattern list; for a match it opens the pane, plays a synthesized WAV siren, asks via $.ui.ask for a random code (crypto.getRandomValues, 30 second expiry, shown only in the pane), then a second ask for LAUNCH. Only on LAUNCH does it call next; otherwise it returns a deny message telling Claude not to retry or work around it. A failure of the hook itself also denies a dangerous command. Safe commands pass through untouched. No network, file, process or env access; audio and hazard-stripe graphics are generated in code. The demo command never runs anything.

What it uses
  • Reads your prompts: no
  • Sees tool calls: yes
  • Blocks or changes tool calls: yes
  • Reads or writes files: no
  • Runs programs on your machine: no
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: no
  • Shows something on screen: yes
Hooked events
Screenshot of launch-codes

Dangerous Bash commands need launch codes: red alert pane, siren, a code to arm and a LAUNCH to fire

Made this mod? Add a badge to your README

modsforClaude badge for launch-codes

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/launch-codes.svg)](https://modsforclaude.com/mods/launch-codes/)

← All mods