Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By johnlindquistv1.1.0MITIn 1 marketplace
Claude Code Stop hook that detects uncertainty in assistant messages. When doubt keywords (likely, maybe, might, probably, etc.) are found outside of code blocks and blockquotes, the hook blocks the stop and instructs the agent to add logging, assertions, or other verification before concluding.
Run automatically on Claude Code events. Claude doesn't decide.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
claude-code, hook, stop-hook, doubt-detection, verification, quality-gate
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code Stop hook plugin that detects uncertainty in assistant messages. When doubt keywords (likely, maybe, might, probably, etc.) appear outside of code blocks and blockquotes, the hook blocks the stop and instructs the agent to add logging, assertions, or other verification before concluding.
This ensures the agent provides concrete evidence rather than speculation.
Claude Code pipes a JSON payload to stdin on every Stop event. doubt-gate:
{"decision":"block","reason":"..."} to stdout — Claude Code re-enters the conversation and must verify its claimsA stop_hook_active guard prevents infinite loops: if the hook already fired once for the current turn, the stop is always allowed through.
likely, maybe, might, probably, possibly, not sure, not certain, uncertain, unclear, could be, appears to, seems like, I think, I believe, I suspect, it's possible, hard to say
node, not bun)--plugin-dir flag)git clone <repo-url> doubt-gate
claude --plugin-dir ./doubt-gate
cp -r doubt-gate ~/.claude/plugins/doubt-gate
Then start Claude Code with:
claude --plugin-dir ./doubt-gate
The plugin registers itself as a Stop hook automatically via .claude-plugin/plugin.json and hooks/hooks.json.
| Variable | Values | Default | Description |
|---|---|---|---|
DOUBT_GATE_LOG_LEVEL | off, info, debug | off | Controls structured JSON log output |
DOUBT_GATE_LOG_PATH | file path | /tmp/doubt-gate.log | Where log lines are written |
off — No logging (default). Zero filesystem overhead.info — Logs each allow or block decision with session ID, matched keywords, and confidence count.debug — Everything in info, plus the stripped message text (first 500 chars) and full match list.DOUBT_GATE_LOG_LEVEL=info claude --plugin-dir ./doubt-gate
{"ts":"2026-03-12T14:00:00.000Z","level":"info","event":"block","session":"abc-123","keyword":"might, probably","confidence":2}
doubt-gate/
├── .claude-plugin/
│ └── plugin.json # Plugin metadata (name, version, description)
├── hooks/
│ ├── hooks.json # Stop hook registration
│ └── doubt-gate.mjs # Compiled hook (runs via node)
├── test/
│ ├── fixtures/ # Test input payloads
│ └── plugin.test.ts # Integration tests (bun test)
├── package.json
└── README.md
cd doubt-gate
bun test
# Should output {"decision":"block","reason":"..."}
echo '{"hook_event_name":"Stop","stop_hook_active":false,"last_assistant_message":"this might be wrong","session_id":"test","transcript_path":"","cwd":"/tmp"}' | node hooks/doubt-gate.mjs
# Should produce no output (clean message, no doubt)
echo '{"hook_event_name":"Stop","stop_hook_active":false,"last_assistant_message":"the function returns 42","session_id":"test","transcript_path":"","cwd":"/tmp"}' | node hooks/doubt-gate.mjs
MIT
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
doubt-gate@johnlindquist is listed by johnlindquist/plugins — review the source before installing
npx claudepluginhub johnlindquist/plugins --plugin doubt-gatePlugins from other owners that cover similar ground