error-poke
Reviewed
at commit 0e4c0dd
New version, not yet reviewed
Sends one continue prompt after a turn an API error killed, so the half-done work carries on instead of the session going idle, at most 99 times in a row by…
0 upvotes
Log in to upvote or save- Made by
- Kerem Gok
- Pinned commit
-
0e4c0dd09165cae2933d79eda6069c6df477137f - What we checked
-
When a turn ends because of an API error, sends Claude a fixed 'continue where you stopped' prompt by itself, waiting 5 seconds first and up to 5 minutes between tries, or until a usage limit resets. It stops after 99 prompts in a row by default (adjustable) and resets when you type a prompt. Each prompt uses tokens; it stores only its settings.
Review details
Static review of the source at the pinned commit; not run. Registers session.start (registers the /error-poke command), command.run (status, on, off, limit <n> from 1 to 999), prompt.submit (only reads the prompt's origin to reset the counter) and turn.complete. When a main-loop turn ends with reason error it waits with exponential backoff, then runs its own markdown command error-poke:send, which only passes the fixed text '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.'; if that fails it submits the same text with $.prompt.submit. To detect a usage-limit stop it reads $.session.usage rate limits and the text of the last assistant message and matches it against a regular expression, then delays the prompt until the limit resets plus one minute. Turning it off or sending your own prompt cancels a pending timer. Continued work runs under the session's normal permission settings; commands/send.md has disable-model-invocation and only echoes its arguments. Uses $.store, $.clock, $.sidebar, $.ui.log. No files, programs or network. The two unbundled files (eslint.config.js, Makefile) are developer tooling and not loaded.
- What it uses
-
- Reads your prompts: yes
- Sees tool calls: no
- Blocks or changes tool calls: no
- Reads or writes files: no
- Runs programs on your machine: no
- Calls the model (uses tokens): yes
- Sends data over the network: no
- Stores data: yes
- Shows something on screen: yes
Sends one continue prompt after a turn an API error killed, so the half-done work carries on instead of the session going idle, at most 99 times in a row by default.
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/error-poke/)