Suitable for all ages. Content: AI-generated.AI-generated
Package X-Ray
Intent Guard for Claude Code
A tamper-resistant Windows hook for Claude Code that catches off-scope edits and commands before they run and makes the agent ask you first.
No Reviews Yet
- Claude Code
- Windows 10
- Windows 11
Free
Get Free Download
No account needed.
- intent-guard.zipClaude Code · Windows 10 · Windows 11 · 19.52 KB
- Release
- Finished · v1.0.2
- Delivery
- Digital Product
- Updated
View License
The purchaser may use, modify and incorporate this code, template, plugin or workflow in personal, client and commercial projects. Source may be shared with necessary collaborators and distributed as an integrated part of a larger project. Do not resell substantially the same standalone source product or remove required notices. Included third-party components keep their original licenses; this license does not override any copyleft, attribution, source-disclosure, or redistribution rights or obligations. The listing must identify dependencies and any separately required services, subscriptions or usage costs.
Purchased Release
Verify your email and this product will be added to your library.
- Package X-Ray
- How Foundry protects downloads & payments
What You Receive
Intent Guard is a Windows PreToolUse hook suite for Claude Code that stops coding agents from drifting off-task, changing things you did not ask for, or quietly rewriting scope mid-session. How it works: - Tracks your prompts and Q&A answers throughout a Claude Code session (keeping up to 60,000 characters of instructions so quick side requests do not erase your main task). - Skips read-only, search, and task-tracking tools (Read, Grep, Glob, LS, WebFetch, WebSearch, LSP, planning tools, and AskUserQuestion) so exploration stays fast. - Before any write, edit, or command runs, a sandboxed Claude Haiku check (running via `claude -p --tools ""` in an empty folder) compares the exact tool call against your session instructions. - When an action looks out of scope, Intent Guard blocks it with a unique decision ID and forces the agent to ask you to Approve, Block, or redirect with your own instruction. Approving lets that exact fingerprinted action through once; blocking keeps it blocked for the rest of the session. Locked against agent tampering: - Installs into `C:\Program Files\ClaudeCode\intent-guard\` and registers in `C:\Program Files\ClaudeCode\managed-settings.json`, where user or project `disableAllHooks` settings cannot turn it off. - Locks the install directory with Windows `icacls` so only Administrators and SYSTEM can modify it; standard user sessions and agents running under your account have read/execute access only. - Pins the exact `claude.exe` or `claude.cmd` path at install time so a look-alike binary on PATH cannot spoof the checker. - Hard-blocks any tool call attempting to touch Intent Guard files, managed settings, the Claude binary, encoded PowerShell commands, or wildcard `.claude` paths, with no approval option. - Fails closed on timeouts or checker errors and writes diagnostics and decision logs to `%USERPROFILE%\.claude\intent-guard\`.
Compatibility
- OS: Windows 10 or Windows 11 (uses built-in Windows PowerShell 5.1+, `icacls.exe`, and `taskkill.exe`). Not for macOS or Linux. - Coding Agent: Claude Code CLI (`claude.exe` or `claude.cmd`) installed and signed in. - Permissions: Windows Administrator privileges (elevated PowerShell) are required to install, uninstall, pause, or resume Intent Guard. Normal day-to-day coding runs under your standard user account. - Usage note: Each checked write/command tool call runs a lightweight `claude -p --model haiku` call using your existing Claude Code subscription or API billing. Read, search, and planning tools are exempt and incur no extra calls.
WindowsAI Authorship Disclosure
The creator hasn't added an AI disclosure yet.
Dependencies & Attribution
- Claude Code CLI · Requires an installed, authenticated Claude Code CLI. Scope checks invoke claude -p --model haiku under your existing Claude Code plan or API account.