clock-guard
Reviewed
at commit 51d5c7d
Companion to the clock mod: drops a clock wake that arrives twice for the same firing, which can happen when Claude Code replaces a lost hooks worker and…
0 upvotes
Log in to upvote or save- Pinned commit
-
51d5c7db8671d88766c30600342c17c3cf477f30 - What we checked
-
Companion to a separate 'clock' mod: when the same scheduled clock wake arrives twice, it drops the second copy before Claude sees it. It looks only at prompts that the clock mod itself submitted, remembers the last wake header per wake, and does nothing without the clock mod. No files, network or programs.
Review details
Static review of the source at the pinned commit; not run. Registers one hook, prompt.submit. It only acts when the event origin is a plugin named clock and the text starts with '[clock wake: '; every other prompt goes straight to next(e). For a matching wake it compares the first line (the header) with the value kept in $.store under clockWake:<id>; an equal header returns { drop: ... } so the replay is discarded, otherwise the header is stored and the prompt passes. Store errors are caught and the wake is let through. Uses only $.store.get and $.store.set. No network, file, process, model or UI calls. Inert unless the clock mod is installed, but it declares no dependency. No npm dependencies.
- 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): no
- Sends data over the network: no
- Stores data: yes
- Shows something on screen: no
- Hooked events
Companion to the clock mod: drops a clock wake that arrives twice for the same firing, which can happen when Claude Code replaces a lost hooks worker and replays a timer's prompt submit. Guard by Ray and Starling.
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/clock-guard/)