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 3dgiordanov0.5.3Apache-2.0In 1 marketplace
Makes an agent decide whether to keep retrying a failing fix by counting repeated attempts and disproportionate effort. Hooks count every tool call and only nudge at thresholds; it says it never blocks.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Persist-or-quit self-check for coding agents. Counts the two things an agent cannot feel — repeating variants of the same attempt and effort out of proportion to the request — and, only when a threshold is crossed, hands the agent the number and asks for an explicit decision: one more try with a stop condition, switch approach, step back to the plan, or report to the user.
It answers "is it still worth insisting on this?" — the third question of the collection, after am I doing what the plan asks? (executive-self-monitoring) and is what I concluded true? (epistemic-self-monitoring).
It never blocks. The value is the objective count at the right moment; the judgment stays with the agent — and with the user, who sees the decision.
In Carver and Scheier's control model there are two loops: one reduces the distance to the goal, and a second one monitors the rate at which that distance shrinks. Its output is affect — progress slower than expected feels like frustration, and frustration is what makes a person stop, look up and change strategy. Agents have no such loop: no fatigue, no clock, no unease. Variant #7 of a failing idea is produced with the same confidence as variant #1, and the classic executive failure — perseveration, repeating the response that already failed instead of shifting — is the default, not the exception.
The hooks supply the missing signal from outside. They cannot feel either, but they can count, and a count delivered at the moment of the fourth edit to the same file does the job the feeling would have done.
skills/persistence-self-monitoring/SKILL.md) — the protocol:
name the hypothesis held, count the variants, name an incompatible rival,
check proportion, decide and say which. Plus the persistence failure
signatures (variant cycling, whack-a-mole, retry without change, environment
fighting, rabbit hole, sunk cost) and the [PERSISTENCE CHECK] block (a
markdown list in the message, not a fenced code block).lib/signals.js; each host wires
them to its events:| Claude Code | Cursor | |
|---|---|---|
| Turn boundary (reset counters; first turn names the block and the skill) | UserPromptSubmit | sessionStart (load) + afterAgentResponse (reset) |
| Count every tool call, nudge on threshold | PostToolUse, no matcher → additionalContext | postToolUse and postToolUseFailure → additional_context; a call Cursor reports as failed (failure_type: error) is a failed run whatever its error_message reads - Cursor sends a failed call there, never to postToolUse |
| Turn summary to the log | Stop (log only, never blocks) | afterAgentResponse |
Cursor has no non-blocking per-prompt event (beforeSubmitPrompt can only
block), so its turn boundary is the end of the agent's response instead of the
start of the user's message — same effect, one event later.
All counts are per turn — since the user's last message — because a user message is where a human re-enters the loop. Each signal fires exactly when its threshold is crossed (and again at each multiple), never on every call:
| Signal | Threshold | What counts |
|---|---|---|
edits | same file edited 4 times as retries | any tool whose name looks like an edit (Edit, Write, NotebookEdit, edit_file, …), keyed by file path; an edit is a retry after a failed run about the file since its previous edit - one whose command or output names it (by its name up to the first dot, so parse.test.js is about parse.js), or a test, build or lint run, which checks the whole work; a read that found nothing (grep) is no failure - or on lines an earlier edit of it changed. A file written in several edits with nothing about it failing is being built and does not count (0.5.0) |
cmds | same shell command failing 3 times | shell-like tools whose output looks like a failure, keyed by the normalized command |
errs | same error signature 3 times | the first error-naming line of a failed output, with numbers, hex ids and paths blanked — so a retry that only moved a line number still counts as the same error. The message names the command whose output it was, never the line: output is text a test, a file or a service wrote |
effort | 30 tool calls, then every 30 | every tool call |
Thresholds are constants at the top of lib/signals.js (EDITS_SAME_FILE,
REPEAT_FAILURES, TOOL_CALLS_STEP).
7-day copy clicks
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.
npx claudepluginhub 3dgiordano/agent-plugins --plugin persistence-self-monitoringPlugins from other owners that cover similar ground