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 KilimcininKorOgluv0.6.3MITIn 1 marketplace
Keeps a session working after an API error ends a turn, so half-done work continues instead of sitting idle. It runs on its own: after such an error it sends a continue prompt automatically, with a retry cap you can change.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it runs commands; reads or rewrites your prompts; sends prompts on its own.
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.
You leave the model working, and when you come back the session sits idle with API Error: Connection lost mid-response and the work half done. The engine gave up after its retries and nobody told the model to go on. This mod does: when an API error kills a turn, it sends one continue prompt so the model carries on, at most 99 times in a row, or as many as you set with /error-poke limit <n>.
It watches turn.complete of the main loop. A subagent's turn is left alone.
It acts on one kind of end only: reason: "error", a turn the engine reports as dead on an API error (retries exhausted, the context limit). A turn you interrupted is aborted and a model refusal is refusal; neither gets a prompt.
It sends this prompt, which runs once the session is idle:
The previous turn was cut off by an API error, not by me. Continue where you stopped; do not start over. If you cannot tell how far you got, say so and stop.
The interrupted turn's work is still in the transcript, so the prompt asks the model to carry on rather than repeat it.
The prompt waits before it goes out, longer after each failure in a row: 5 s, 15 s, 45 s, 135 s, then 5 minutes each. An overloaded API usually recovers in seconds, and an error that fails the same way on every try (the context limit) does not burn the whole limit back to back. A prompt of yours during the wait, or /error-poke off, cancels the waiting prompt.
A turn that a usage limit stopped waits for the limit instead. When a limit reads 100% or more, or the last assistant text is Claude Code's own You've hit your ... limit, the one continue prompt goes out a minute after that limit resets (the latest reset, when several limits are full), because every prompt before that would fail the same way:
error-poke: the turn hit the 5h usage limit, continuing at 14:01 (in 2 h 1 min) (1/99)
Every prompt also writes one line to the transcript, so you know why the session will move by itself:
error-poke: the turn died on an API error, continuing in 5 s (1/99)
At most 99 prompts go out for one stretch of failures, or as many as /error-poke limit <n> says. At the limit the mod says so once and stops:
error-poke: stopped after 99 continue prompts; the API keeps failing. Send a prompt to reset the count.
A prompt of your own (from the composer, the bridge or the SDK) resets the count, so the next failure starts from 1 again.
With the sidebar open, these lines go into its stream instead, and the transcript stays clean. There API error and the usage limit's name are red, the count is faint (yellow once it is within 10% of the limit), and the stop line is red. Without the sidebar, the lines land in the transcript as above.
The prompt runs the mod's own markdown command /error-poke:send <prompt>, whose body is its arguments alone. The transcript shows that command line, and the model reads the prompt exactly as written, as it reads a typed slash command; a $.prompt.submit text would reach it inside a The error-poke plugin sent a message: frame. When the engine refuses the command, one line says so and the prompt goes out as a plugin prompt, with that frame.
A plugin prompt the engine refuses (the session is busy, a stop is pending) is reported as well, and no count is lost.
What the mod reads is the engine's own reason value, and /error-poke prints how the last turn ended. If a failure you saw got no prompt, that line tells you which value the engine reported.
/error-poke on or off, the count, and how the last turn ended
/error-poke on | off on by default
/error-poke limit <n> at most n continue prompts in a row; 1 to 999, 99 by default, kept across sessions
/error-poke:send <prompt> the command a continue prompt runs; typed, it sends the prompt as written
/error-poke:send is the mod's second command, the one exception to one command per mod, because only a markdown command hands the model a prompt without the plugin frame.
claude plugin marketplace add KilimcininKorOglu/claude-code-mods
claude plugin install error-poke@kilimcininkoroglu-mods
Function hooks are early access. Claude Code 2.1.288 and later load them by default, so there is nothing to switch on.
Validated with claude plugin validate on Claude Code 2.1.283:
❯ ./register.ts hooks: session.start, command.run{command=error-poke}, prompt.submit, turn.complete
❯ ./register.ts calls: $.clock.after (via afterTurn), $.clock.now (via afterTurn), $.command.register, $.command.run (via sendPoke), $.prompt.submit (via submitPoke), $.session.messages (via readLimitWait), $.session.usage (via readLimitWait), $.sidebar.set (via toPerson), $.store.get (via readLimit, readSettings), $.store.set, $.ui.log (via toPerson)
Reach L2: it drives Claude.
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 kilimcininkoroglu/claude-code-mods --plugin error-pokePlugins from other owners that cover similar ground