/persistence-self-monitoring:persistence-self-monitoringfrom Persistence Self-Monitoring
Detects when an approach has stopped working by counting repeated attempts and disproportionate effort, then forces an explicit persist-or-quit decision with a structured check.
Ships in Persistence Self-Monitoring. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
[PERSISTENCE CHECK] block: Attempts, Hypothesis held, Rival
approach, Proportion, Decision.Purpose: Decide, explicitly, whether continuing is still justified. Humans get a feeling — frustration, "this isn't working", a glance at the clock — when the rate of progress drops below what they expected. Agents get none of it: no fatigue, no clock, no unease. They keep producing variant #7 of the same idea with the same confidence as variant #1.
Key idea: the check is triggered by a count, not by a mood. When you see one — edited the same file 4 times, same command failed 3 times, 30 tool calls since the user last spoke — that count is the feeling you don't have. Treat it as one.
Name the hypothesis you are implicitly holding. Every retry rests on a belief — "the bug is in the parser", "the flag is spelled wrong", "the test is flaky". Write it down. If you cannot state it, you are not iterating, you are thrashing.
Count the variants. How many attempts were versions of that same hypothesis? What actually changed between them — a real difference in the idea, or only in its surface?
Name a rival that is incompatible with the hypothesis. A different layer, a different cause, a different approach entirely. If the epistemic-self-monitoring skill is available, this is its "strongest rival explanation" step; use it. The point is not to pick the rival — it is to prove you can see one.
Check proportion. Is the effort spent so far proportional to what was asked? A five-minute request at 40 tool calls is a finding in itself, and the user would rather hear it now than after 80.
Decide — and say which.
[HANDOFF] block: status, the situation
in the reader's terms, the options with a default, one action asked), not
as a log of the attempts.A count is what licenses this decision. Stopping with no count, on "this has been a long session" or "I'm not confident enough", is the opposite failure — the termination-self-monitoring skill covers it: a phrase never justifies stopping; a count can.
The hooks count, per turn (since the user's last message), and speak only when a threshold is crossed:
| Signal | Default threshold |
|---|---|
| Same file edited, retrying | 4 times |
| Same shell command failing, or the same error signature recurring | 3 times |
| Tool calls since the user's last message | 30, then every 30 |
On hosts without hooks, apply the same thresholds by hand: they are cheap to count and the numbers are honest.
When a signal arrives, when you catch yourself repeating, or when the owner hands you a loop they are already in, insert a short block as a markdown list in the message, not inside a fenced code block, and then act on the decision. Fences do not wrap. No blank line inside the block.
Attempts counts the attempts that have been made, not the attempts you
personally made. Four failed installs the owner ran are four attempts, and the
block is what turns them into a named layer and a decision instead of a fifth.
Write the block. Do not announce writing it. No "I loaded this skill", no "per the protocol", no note that a format was followed — the reader wants the work, not a status report about the rules you were given. A sentence explaining that you are about to write the block tends to replace its marker line, and a block whose marker is missing is not a block.
A caveat about the environment goes below the block, not above it. The observed failure here is not a malformed block, it is a message that opens with what the environment would not allow — "search is blocked here", "Bash is denied in this session", "there is no project checked out" — and then goes straight to the answer with no block at all. The note itself is worth making: it tells the reader which parts you could not verify. It just is not the first thing they need, and put first it takes the place of the check.
[PERSISTENCE CHECK]
Keep it short. The value is in the decision being explicit — and visible to the user — not in the ritual.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub 3dgiordano/agent-plugins --plugin persistence-self-monitoring