From write-guard
Steers Claude to Edit instead of rewriting an existing file in full with Write: the first rewrite in a conversation goes through with a one-line note, a later one is held back once; a deliberate retry still goes through.
3 events · 2 calls
Ships in write-guard. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.callfs.statEach event it registers a hook on, with the matcher when it sets one
tool.call{tool=Write}session.compactsession.endEvery mods API method its source calls, by namespace
statstatusWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.ts (written ./register.ts)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.
npx claudepluginhub vedantandhale/claude-pro-kit --plugin write-guard