stop-reminders #
Claude Code Stop hook that detects uncertain language in Claude's responses
and reminds it to investigate rather than guess,
and that can optionally refuse a stop whenever pushing could plausibly help.
What it does #
Scans Claude's final response for hedging phrases like "probably", "maybe", "I think", "I believe", and similar markers. When found, blocks the stop and sends a reminder to search for evidence, read code, or check documentation before responding.
The hook strips code blocks, inline code, blockquotes, and quoted strings before scanning to reduce false positives from code, quoted material, or verbatim mentions.
Per-detector gating:
the response-quality detectors (hedging,
dismissal,
trailing question) run only when stop_hook_active is false,
so a forced continuation is never re-blocked
for wording Claude was already told about.
Forced continuation #
Off by default;
set MONOCHROMATIC_STOP_AUTO_CONTINUE to on,
1,
true,
or yes to enable it.
The response-quality detectors run either way.
When enabled,
separately from the response-quality detectors,
the hook blocks a stop without reading the response text at all,
releasing only when state shows another turn cannot help.
It was built for one observed failure:
in this repository's transcripts,
claude-opus-5 sessions often ended a turn by announcing their next action
instead of performing it,
leaving the user to type Continue.
The same corpus shows a much lower rate on claude-fable-5 and claude-opus-4-8,
the comparison is confounded,
and the repository owner reports that claude-opus-5-5 does not show it,
so it is now opt-in.
See claude-code-opus-5-premature-turn-end.md.
Measured across this repository's transcripts,
blocking a stop puts the agent back to work most of the time,
with a median of nine tool calls per forced continuation.
The rate depends on what did the blocking,
and the conservative figure is the right one to plan against:
text-detector blocks issued a tool call 88% of the time
and a state-changing call 84% of the time,
falling to 82% and 82% on Opus 5,
where 27% still needed a human nudge afterwards.
Goal-condition blocks scored 100% on every metric,
which is why pooling the two overstates the case.
This detector reads none of the response text.
That is the point:
every text-conditioned rule can be satisfied by changing the text,
and a rule keyed on the phrase Next: is satisfied by deleting that sentence,
which turns an informative stop into a silent one.
A trailing question takes precedence,
because instructing Claude to resume work
and to route its question through AskUserQuestion
in the same reason would be contradictory.
Releases #
The hook lets a stop through in four situations, three of them read from state rather than from the response text.
- **A background task is running.
** The session waits on something another turn cannot advance;
background_taskson theStopevent carries this. - **The previous forced continuation issued no tool call. ** Pushing an agent that already did nothing buys prose, which the measured rescue rates show rarely recovers.
- **Every tracked task is finished.
** Replayed from
TaskCreateresults andTaskUpdatecalls in the transcript. A session with no task list does not count as finished, since most sessions never create one and releasing there would disable the mechanism everywhere. - The depth limit is reached,
default 25,
overridden with
MONOCHROMATIC_STOP_AUTO_CONTINUE_MAX.
**Blocked on a decision?
** The block reason tells Claude to use AskUserQuestion rather than stop.
That tool waits for the user's answer,
which is what a blocked agent actually needs,
whereas a stopped turn only ends the work and waits to be restarted by hand.
**Termination is shared with Claude Code,
which is not the same as delegated to it.
** The CLI caps consecutive blocks through CLAUDE_CODE_STOP_HOOK_BLOCK_CAP,
but only reliably when the agent is idle.
Measured against 2.1.224,
sessions producing no tool calls were overridden after nine blocks,
while a session running one shell command per continuation
reached thirty-one and was never overridden.
The platform cap catches an idle loop,
not a busy one,
so this hook bounds the busy case itself.
Counting reads the transcript rather than a sidecar,
so there is no state to corrupt,
no cleanup to miss,
and resuming a session cannot lose the count.
stop_hook_active is false on the first dispatch and true on every one after,
never clearing,
so honoring it caps forced continuation at one.
Opt-in switch:
any value of MONOCHROMATIC_STOP_AUTO_CONTINUE other than on,
1,
true,
or yes (compared case-insensitively after trimming),
including leaving it unset,
keeps forced continuation off.
Detected patterns #
- Modal hedges: probably, maybe, perhaps, possibly, likely, presumably
- Epistemic hedges: I think, I believe, I assume, I suspect, I imagine, I guess, I suppose
- Conditional hedges: might be, could be, should be
- Uncertainty markers: not sure, not certain, hard to say, difficult to tell
- Approximation markers: if I recall, if I remember, from what I recall, as far as I know
Installation #
Add the package as a workspace dependency in the root package.json:
{
"devDependencies": {
"@monochromatic-dev/claude-code-plugin-stop-reminder": "workspace:*"
}
}
Then run pnpm install to link the binary.
Setup #
Add to .claude/settings.json or .claude/settings.local.json:
{
"hooks": {
"Stop": [{ "type": "command", "command": "ccsr" }],
},
}
Binary #
ccsr:
Claude Code Stop Reminders