AgentShield records what Claude Code does on a machine: shell commands, files read and written, web fetches and MCP calls. It connects through Claude Code's official hooks. Every action gets a risk score from 0 to 100, explained step by step and with a safer alternative. There is no language model in between: the same input always gives the same score.
There are five modes, from only watching (Monitor, the default) to locking everything down (Lockdown). In Enforce, AgentShield refuses an action before it runs. Policies are written in TOML, with nine presets; a policy inside a project can only make rules stricter, because the agent can edit that file itself. A local proxy records the tool definitions of MCP servers and reports it when they change later. Packages the agent installs are checked offline against the public OSV database of known vulnerabilities and malicious packages. Everything goes into an audit log in SQLite with a hash chain, so any change to it shows, with exports in JSON, CSV, SARIF and HTML.
A program that watches an agent also watches its user. That is why AgentShield has no account, no cloud and no telemetry. Prompts and file contents are never stored, and API keys and tokens are removed before anything reaches the database. AgentShield never returns "allow" and never changes a tool's input, so it can only make Claude Code stricter. What it cannot see is stated plainly: only Claude Code is monitored, and what a child process does after a command is out of view.
The core is written in Rust and consists of thirteen crates; the desktop app is built with Tauri 2 and React 19, with a fifteen-page dashboard in English and Dutch. Everything also works from the command line, with --json on every command. A hook takes about 15 milliseconds end to end on Windows, including starting the process. There are builds for Windows 11 and Linux. AgentShield is free and open source (Apache-2.0); the source code is on GitHub under erikvandeblaak/AgentShield. The image above comes from the app's demo mode: the data shown is fictional.
Download, connecting to Claude Code and what has been tested: Download AgentShield.
Related work: ForgeTerm.
Technologies
More work

ForgeTerm — a terminal for AI agents
A terminal in Rust for Windows 11 and Linux, made for working with Claude Code and Codex: several agents at once, each in its own worktree.

Interactive 3D WebGL Experience
A 3D WebGL piece with animated chrome letters, a neon grid and warp-speed stars. Move your mouse to pan the camera.

ENC Arnhem — The Spirit of Waterpolo
A water polo game in the browser: play with ENC Arnhem in the Valkenhuizen pool against the computer or a second player.
