Detect when Claude Code asks questions and remind it to decide autonomously instead
Install
npx agentshq add davepoon/claude-code-subagents-collection --agent no-ask-humanDetect when Claude Code asks questions and remind it to decide autonomously instead
Detects when Claude Code's output contains questions directed at the user ("Should I...?", "Would you like...?") and reminds the agent to decide autonomously instead of asking.
Essential for autonomous/unattended operation where no human is available to answer questions. Every question is a blocking call with no one on the other end.
PostToolUse"" (every tool invocation)| Variable | Default | Description |
|----------|---------|-------------|
| CC_NO_ASK_ENABLED | 1 | Set to 0 to disable |
| CC_NO_ASK_PATTERNS_FILE | (none) | Path to file with additional patterns (one regex per line) |
This hook never blocks (always exit 0). It issues a reminder only. It can't unsend text, but it trains the agent via system message feedback to self-correct in future interactions.
jq for JSON parsingBorn from running Claude Code in autonomous 24/7 mode where every question hangs the session until a human checks in. Some sessions asked 3+ questions, burning 30+ minutes of idle time each. This hook reduced question frequency by ~90%.
From claude-code-hooks — battle-tested hooks from 140+ hours of autonomous Claude Code operation.