v1.4: Block Claude from writing to the Desktop and AppData

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
weishaupt
2026-10-10 04:24:08 -04:00
co-authored by Claude Opus 5.5
parent aecdc732b9
commit 14763a002a
4 changed files with 92 additions and 1 deletions
+2
View File
@@ -12,6 +12,8 @@ namespace QuickClaude
{
// Run as Claude Code's shell-command confirm hook (separate short-lived process)
if (Array.IndexOf(args, "--confirm") >= 0) return ConfirmHook.Run();
// Run as Claude Code's file-write guard hook (see WriteGuard)
if (Array.IndexOf(args, "--guard-write") >= 0) return WriteGuard.Run();
using var mutex = new Mutex(true, "QuickClaude.SingleInstance", out bool first);
if (!first) return 0;