Skip to content
claude-mods
Menu

Mod 7 · cw-guards

Fork and cron hygiene band

Puts a scope guard on forks spawned while a cron or /loop prompt is in context, and shows scheduled and background jobs on the status line.

A fork inherits the whole conversation, including a scheduled prompt still in context, and can run that task a second time. When a fork is spawned while a scheduled prompt is in context, the mod shows a toast and, by default, prefixes the fork’s prompt with a scope guard telling it not to act on the inherited task.

forkCronMode picks scope (the default), warn (toast only) or deny (refuse the spawn and say why). A non-fork subagent is never touched.

The status line reads cron: <n> scheduled · active: <task> · bg: <n> running, longest <m>m, and a background job past longJobMinutes gets one toast. It is a heuristic with 4 tested limits: the engine does not expose whether a scheduled task is unfinished.