Skip to content
claude-mods
Menu

Plugin

cw-guards: guards on tool calls

Guards on tool calls: refuses commands that would print secrets, refuses worktrees under temp folders and merges that would delete ignored data, and scopes forks spawned while a scheduled task is in context.

One plugin holds mods 1, 2 and 7 so they share one Bash tokenizer and one update (ADR-0001, shape B′). It hooks session.start, command.run, tool.call on Bash, Read, Grep and EnterWorktree, and for mod 7 prompt.submit, turn.complete, classic.Stop and agent.spawn.

Its two commands are escapes that let the next refusal through once, honoured only when you type them at the prompt: /secret-guard allow-once and /worktree-guard allow-symlink-merge.

Status (README, 2026-11-12): unit-tested, live-checked headless and in an interactive session. Not yet installed on any machine. The default 10-minute long-job toast is UNVERIFIED.