prompt-bouncer

Reviewed at commit fca4b17 New version, not yet reviewed

Bounces vague prompts before Claude sees them, and suggests the project's own term

Made by
Ray Amjad
What we checked

Checks each prompt you type and stops vague ones such as 'fix the thing' before Claude sees them, with a toast explaining why. Quick mode uses built-in patterns only; project mode asks Haiku on your own account, reading your project docs such as CLAUDE.md. Start a prompt with ! or use /force to send it anyway. It makes no network calls of its own.

Review details

Static review of the source at the pinned commit; not run. Delta review of the changes since 3af667d; the rest carries over from the review at that commit. Registers session.start (status text, commands /bouncer and /force), prompt.submit (drops a vague prompt with a reason, ignores slash commands, non-user origins and prompts starting with !), command.run for bouncer and force. Quick mode is regular expressions only. Project mode reads the files listed in the docs option (default CLAUDE.md, docs/glossary.md, docs/decisions/*.md, specs) from the project root, up to 20000 characters, and sends them with the prompt to Haiku through $.model.complete (uses tokens). Mode can come from the PROMPT_BOUNCER_MODE environment variable, the option or /bouncer. If Haiku fails or the hook throws, the prompt goes through. The docs option is user configured and can name other paths. The mode override is kept only in memory. New in this version: in headless (-p / SDK) sessions it no longer sets the status text or shows the toast; the drop reason is still returned and the checks are unchanged.

What it uses
  • Reads your prompts: yes
  • Sees tool calls: no
  • Blocks or changes tool calls: no
  • Reads or writes files: yes
  • Runs programs on your machine: no
  • Calls the model (uses tokens): yes
  • Sends data over the network: no
  • Stores data: no
  • Shows something on screen: yes
Hooked events
Screenshot of prompt-bouncer
Made this mod? Add a badge to your README

modsforClaude badge for prompt-bouncer

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/prompt-bouncer.svg)](https://modsforclaude.com/mods/prompt-bouncer/)

← All mods