# Isonapse Agent Hook > A local policy and safety layer for coding agents. Isonapse checks the covered actions your coding agent is about to take against your rules, on your own machine. Normal applies your block and ask rules and deterministic safety checks. Enforce adds behavioral review. Every allow or question the local Isonapse daemon issues is signed into a log you can verify offline. Your rules and records stay on your machine by default. No Isonapse account, no telemetry. If you explicitly configure an optional self-hosted receiver, Isonapse can send signed witness batches and enrollment metadata to that receiver. ## Agent Hook or Community Edition? The Agent Hook does the checking. Community Edition gives it a dashboard. Community Edition does not replace the Hook: it runs beside it. This table is also on https://developer.isonapse.com/product#hook-or-community-edition ### What it is - Agent Hook: A small program on your machine. It checks the covered actions your coding agent is about to take against your rules, before they run. - Community Edition: A server and a dashboard you run yourself, in Docker, on a machine you control. ### What you get - Agent Hook: Rules and modes, signed records you can verify, and health checks, all from the terminal. - Community Edition: A browser page to set up agents and change policy, and the signed records of every machine you connect to it in one view. ### What it needs - Agent Hook: No Docker, no server, no Isonapse account. To change rules or modes, an administrator account, one that can use sudo. - Community Edition: Docker, and the Agent Hook on each machine it looks after. ### Who decides - Agent Hook: The Hook, on your machine, by your rules. - Community Edition: Still the Hook. The dashboard proposes a change, and you approve it in your terminal. ### Do you need it? - Agent Hook: Yes. Nothing is checked without it. - Community Edition: Only if you want a dashboard, or records from several machines in one place. Without it there is no dashboard. Rules, modes, policy rollback and signed records all work with the Hook alone. The wizard installs both; the command line installs the Hook, and you can add Community Edition later. ## Hosts What Isonapse can do depends on what each host reports and accepts. Claude Code, Hermes Agent and pi are built in; OpenAI Codex CLI connects through the open Hook ADK, and the easy install sets it up for you. The matrix is also on https://developer.isonapse.com/product#hosts ### Claude Code - Versions: No pinned version; Isonapse does not check it - How it connects: Built in, thirteen hook events - Block: Yes - Ask you: Yes - Rewrite input: Yes - Replace output: Yes, within documented limits - If the daemon cannot be reached: Claude Code shows its own approval prompt; Isonapse records nothing - If the hook cannot run: For a tool call, an error the Hook catches asks before the call or withholds the result after it. A submitted prompt or a notification passes with a warning. What Claude Code does when the Hook cannot start at all is not verified. ### Hermes Agent - Versions: Exactly v0.20.0 (2026.8.3); setup refuses other builds - How it connects: Built in, plugin - Block: Yes - Ask you: No: a question becomes a refusal, recorded when witness storage is available - Rewrite input: No: a call that needs a rewrite is refused - Replace output: No - If the daemon cannot be reached: Hermes refuses the call, without a receipt - If the hook cannot run: A plugin error refuses the call. In Hermes safe mode the plugin does not load, and nothing is checked. ### pi - Versions: Exactly pi 1.0.3, 1.0.4 and 1.5.0; Node.js 22.19.0 or newer - How it connects: Built in, pinned extension - Block: Yes - Ask you: Yes, through pi's own prompt - Rewrite input: Yes - Replace output: Yes - If the daemon cannot be reached: Tool calls are refused, without a receipt - If the hook cannot run: A failing extension refuses the call. On an unlisted pi, every tool call is refused without a receipt. If pi does not load the extension, nothing is checked. ### OpenAI Codex CLI - Versions: codex-cli 0.159.0 or newer; contract-tested on codex-cli 0.164.0 on macOS arm64 and Linux x86_64; the adapter does not check the version - How it connects: Hook ADK reference adapter: the easy install sets it up, or you review and register it yourself. The ChatGPT desktop app runs the same ~/.codex hooks; it is unproven and unsupported - Block: Yes - Ask you: No: a question becomes a refusal, recorded when witness storage is available - Rewrite input: Yes, in Normal and Enforce: shell commands, single-file patches, MCP tool arguments - Replace output: No; a result can be withheld - If the daemon cannot be reached: The adapter refuses the call, without a receipt - If the hook cannot run: Codex runs the tool with no check (a cooperative, fail-open host) ### Your own agent - Versions: Your adapter, built with the Hook ADK (Python or TypeScript) - How it connects: A host profile you register - Block: Yes, if the host honors a refusal - Ask you: As declared in your reviewed host profile - Rewrite input: As declared - Replace output: As declared - If the daemon cannot be reached: Your adapter refuses - If the hook cannot run: Depends on the host Platforms: macOS 11 or newer on Apple silicon, and Linux x86_64 or arm64 (aarch64) with glibc 2.35 or newer. No Intel Mac, 32-bit ARM or Windows build. ## Install There are two ways to install. Isonapse itself runs on macOS 11 or later on Apple silicon, or Linux x86_64 or arm64 (aarch64) with glibc 2.35 or later. On Linux arm64, install with the script: Homebrew on Linux is x86_64 only. Intel Macs, 32-bit ARM and Windows are not supported. - With the wizard and dashboard (Recommended if you have Docker). Needs: Claude Code or Codex, installed. Docker, running. A browser on this machine. An administrator account, one that can use sudo, on a machine with no other login accounts. Gives: The Agent Hook (the program that checks your agent) plus Community Edition (a dashboard and server you run in Docker). You finish setup in your browser with no file to edit, Codex included, then add or remove agents and change policy from the dashboard, on your own machine. Works with: Claude Code and Codex. Steps: https://developer.isonapse.com/start/dashboard#easy-install - Command line only (No Docker, no server). Needs: One of the agents below, installed and signed in. Homebrew or curl. To change rules or modes later, an administrator account, one that can use sudo. No Docker, no server, no Isonapse account. Gives: The Agent Hook alone. Your rules, modes and signed records, all from the terminal. No dashboard. Works with: Claude Code, Hermes Agent and pi. Codex works too, by hand, in more steps. Steps: https://developer.isonapse.com/start/command-line#command-line If you have Docker, use the wizard and dashboard. You edit no file, Codex included, and later changes start in your browser. If you do not want Docker or a server, or you use Hermes Agent or pi, use the command line. You can add the dashboard later. With the wizard and dashboard, run `brew install isonapse/tap/isonapse`, then `isonapse setup` in a plain terminal window that runs no agent. You pair your browser with a code you type in the terminal, finish in the dashboard, and approve one plan in your terminal. Later agent and policy changes are plans you approve with `isonapse approve`. Command line only, for Claude Code: 1. Install: Install Isonapse with Homebrew. `brew install isonapse/tap/isonapse` 2. Initialise and start: Set Isonapse up on this machine and start its small background process. `isonapse hook init && isonapse hook start` 3. See it work: Ask your agent for something harmless, then check that the report's numbers went up. `isonapse hook report --details` 4. Switch to Enforce, when you are ready: After a day or two of normal work, generate the proposed policy and stop to review it. `isonapse hook suggest --user --diff` Review the complete no-new-choice baseline diff before continuing. `isonapse hook apply` Or run the verified public installer instead of step 1, then add its directory to your path before step 2: The script always downloads anonymously, even when your shell already has a GitHub token set. `curl -fsSL "https://get.isonapse.com/install.sh?from=site" | sh` `export PATH="$HOME/.isonapse/bin:$PATH"` Step 2 sets up Claude Code. For Hermes Agent or pi, follow the host setup instead: https://developer.isonapse.com/reference/hosts#host-setup. For OpenAI Codex CLI: https://developer.isonapse.com/reference/hook-adk#codex-cli After either method: see it work https://developer.isonapse.com/start/command-line#see-it-work, what to do next https://developer.isonapse.com/start/next#next-steps, and when something does not work https://developer.isonapse.com/help#troubleshooting Update with `isonapse update` in your own terminal, for Homebrew and script installs. Existing installations keep their mode. See the first-update instructions for an older version: https://developer.isonapse.com/guides/update#updating ## Guarantees and limits What Isonapse guarantees: - With the Isonapse daemon running and a host's integration active, covered actions from Claude Code, Hermes Agent and pi, and from Codex CLI while its adapter runs, are checked on your machine before they run. - In Normal and Enforce, a block rule in the active policy denies the actions it names. A shell command is matched by the program Isonapse's shell analysis attributes it to. Learning and on-device models can add a question or a refusal, but they never turn a block into an allow. A language model never gets the final say. - Every allow, and every question you can approve, that the local daemon issues is signed into a tamper-evident log before the action goes ahead. `isonapse hook witness verify` checks a copy offline with only the public key. - Refusals the daemon decides are recorded whenever its witness storage is available. Refusals that a host integration or adapter makes before the daemon decides carry no receipt. A self-protection stop by the Hook is recorded as a signed event only when the running daemon confirms it; it is never an authorization receipt. - After setup has downloaded the required model, enforcement needs no network connection. - The Agent Hook needs no account and sends no telemetry. Your rules, history and learned state stay on your machine by default (see Local operation: https://developer.isonapse.com/product#local-first). What it does not do: - It is not an operating-system sandbox: it checks the actions a host reports, not every process on the machine. - Shell commands are checked by static analysis, and that analysis is bounded. An unusual way of writing a command can lead the analysis to attribute it to a different program than the one that runs, so a rule is a guard rail, not an operating-system sandbox. - It covers only the events each host exposes (see Supported hosts: https://developer.isonapse.com/product#hosts). Hermes and Codex cannot ask you: whenever Isonapse's final decision is to ask, they get a refusal instead. - Profile, where the command line's `isonapse hook init` starts, observes and reports: your rules and the safety checks are advice there. Structural limits and self-protection apply in every mode, and so do refusals by the host integration itself. - Normal, where `isonapse setup` starts a new machine, enforces your block and ask rules plus catastrophic and non-bypassable shell safety. An existing installation keeps its mode when you update. On the Agent Hook, Enforce adds behavioral checks for unfamiliar work, destructive and opaque programs, previews and learned similarity. Wrapped proxies retain their existing generic Enforce filters. Normal does not ask merely because a session is new or evidence is thin. - If the Hook cannot reach the daemon, for example after `isonapse hook stop`, the Hook's local self-protection refusal is the only decision Isonapse makes. Claude Code falls back to its own approval prompt, which Isonapse does not record. Hermes, pi and the Codex adapter refuse the call. - Codex is a cooperative, fail-open host. The adapter refuses every failure it can see, but if Codex cannot start the adapter or has not trusted its hook definitions, Codex runs the tool anyway. After setup and after every change, make one harmless call and confirm a new receipt with `isonapse hook report --host --details`. - PII and injection detectors can miss. Secret scrubbing protects exact values, not encoded or derived copies. - It cannot erase what a host has already recorded, and withholding a result does not undo an action that already ran. ## Hook ADK The Hook, the daemon and the policy engine are the product, and their binaries are not open source. The Hook ADK, which connects other agents to them, is open source under Apache-2.0. Current Agent Hook releases carry it as `isonapse-adapter-toolkit.tar.gz`, with: - the Python and TypeScript packages; - the Host Adapter Protocol v1; - the integration and host-admission guides; - the OpenAI Codex CLI reference adapter. After installation it is at `$(brew --prefix)/share/isonapse/isonapse-adapter-toolkit.tar.gz` (Homebrew) or `~/.isonapse/bin/isonapse-adapter-toolkit.tar.gz` (install script). Its public source also has the conformance runner and its fixtures, an adapter scaffold, and the Hermes and pi references. Source: https://github.com/Isonapse/isonapse-public/tree/main/adapter-toolkit - The adapter checks every directory on the Hook's path and compares the binary with a SHA-256 pin. `isonapse update` refreshes an existing pin file written by `isonapse hook adk-pin`. If the pin is stale, the adapter refuses the call until the file is refreshed. - An adapter that cannot reach or verify the Hook refuses the action. Whether the host honors that refusal depends on the host (see Supported hosts: https://developer.isonapse.com/product#hosts). - Public beta: the APIs and the Codex reference can change between releases. The packages are not on npm or PyPI. ## Pages - [Home](https://developer.isonapse.com): what Isonapse is, in one page - [What it does](https://developer.isonapse.com/product): supported hosts, guarantees and limits, modes and exact behavior - [Install](https://developer.isonapse.com/install): choose one of the two ways to install; the steps for each are on its own page - [Install with the wizard and dashboard](https://developer.isonapse.com/start/dashboard): one command and a browser, with Docker - [Install from the command line](https://developer.isonapse.com/start/command-line): the Agent Hook alone: install, initialise, connect your agent, see it work - [What to do next](https://developer.isonapse.com/start/next): let it learn, try a first rule, switch to Enforce - [Update Isonapse](https://developer.isonapse.com/guides/update): updating, whichever way you installed - [Remove or switch methods](https://developer.isonapse.com/guides/switch-or-remove): removing Isonapse cleanly, or moving between install methods - [Project rules](https://developer.isonapse.com/guides/project-rules): rules that travel with the repository - [Write your own rules](https://developer.isonapse.com/guides/write-rules): a policy in Lua, from the smallest file to decisions per action, then check, test and activate it - [Run an agent behind the egress exit](https://developer.isonapse.com/guides/wrap-an-agent): wrap Claude Code or Codex behind the local egress exit, place its API key, choose the hosts it may reach, and run it in a repository - [Policy fields](https://developer.isonapse.com/reference/policy): every field of a policy for coding agents, what it does and what it does not do - [Use cases](https://developer.isonapse.com/use-cases): what you can set up, what Isonapse then does, and where it stops - [Recipes](https://developer.isonapse.com/recipes): starter policies and rules, each with the whole policy file, a test command and its limits - [Starter policy: Block writes to production settings and credentials while you build web apps](https://developer.isonapse.com/recipes/starter/web-dev): Blocks writes and edits to .env.production, credentials.json and Isonapse's own files, refuses MCP tools named deleteDatabase, limits how often shell commands run, and asks before publishing a package or running a download-and-run launcher such as npx. - [Starter policy: Block writes to secrets and refuse destructive database tools while you work with data](https://developer.isonapse.com/recipes/starter/data-science): Blocks writes and edits to .env files, credential files, *.pem keys and Isonapse's own files, refuses MCP tools named dropDatabase and truncateTable, limits how often shell commands run, and asks before publishing a package or running a download-and-run launcher. - [Starter policy: Block writes to cluster credentials and refuse destructive production tools](https://developer.isonapse.com/recipes/starter/infra): Blocks writes and edits to kubeconfig files, Terraform state, *.pem files and Isonapse's own files; refuses MCP tools named deleteCluster and destroyStack; blocks web fetches to production hosts such as *.prod.internal; limits shell use; and asks before publishing a package or running a download-and-run launcher. - [Starter policy: Refuse the Write and Edit tools and limit the web, for an agent that inspects](https://developer.isonapse.com/recipes/starter/security-audit): Refuses the Write and Edit tools, allows web fetches only to a short list of sites (vulnerability databases and GitHub), limits how often shell commands and web fetches run, and asks before publishing a package or running a download-and-run launcher. - [Starter policy: Protect Isonapse itself and ask before download-and-run](https://developer.isonapse.com/recipes/starter/hardened): Blocks writes and edits to Isonapse's own program and settings files, and asks before a launcher downloads and runs a package, such as npx or uvx. It adds no rules for your own work. - [Starter policy: Keep agents out of one folder](https://developer.isonapse.com/recipes/starter/folder-deny): Refuses every read and write of a folder named company-secrets, at any depth, however the path is spelled. Rename it to your folder, one line per folder, ending in /. It also carries the lines that protect Isonapse's own files. - [Recipe: Keep agents out of folders](https://developer.isonapse.com/recipes/folder-rules): One rule per folder keeps agents from reading or writing it, however the agent spells the path. A file merely named like the folder is outside it. - [Recipe: Block, ask about or allow specific commands](https://developer.isonapse.com/recipes/action-rules): Decide what happens to one command, such as rm in the shell: refuse it with a message that says what to use instead, ask first, or allow it. - [Recipe: Block whole kinds of action](https://developer.isonapse.com/recipes/blocked-capabilities): Refuse every action of a kind, such as any sudo or dd command, for every agent. Only an action rule that names that exact action can allow it again. - [Recipe: Choose the sites an agent may fetch](https://developer.isonapse.com/recipes/domain-rules): Block sites outright, or allow only the sites you list. Blocked beats allowed, and a list of allowed sites refuses every other site. - [Recipe: Limit how fast an agent can act](https://developer.isonapse.com/recipes/rate-limits): Cap how many actions of a kind an agent may take per minute, hour or day. A limit on the shell counts every shell command together. - [Recipe: Protect files by pattern](https://developer.isonapse.com/recipes/file-patterns): Refuse reads or writes of files that match a pattern, such as .env.* or *.pem, in any folder. - [Reference](https://developer.isonapse.com/reference): system requirements, package verification, data that leaves the machine - [Set up each agent](https://developer.isonapse.com/reference/hosts): exact setup and limits for Claude Code, Hermes Agent and pi - [Codex CLI and other agents](https://developer.isonapse.com/reference/hook-adk): connecting OpenAI Codex CLI or your own agent - [The server by hand](https://developer.isonapse.com/reference/server): running the Community Edition server and dashboard without the wizard - [Common questions](https://developer.isonapse.com/reference/faq): installing and running Isonapse - [Help](https://developer.isonapse.com/help): search a message you see, or pick what you were doing, and find what to do - [Help: Docker and setup](https://developer.isonapse.com/help/setup): Installing, Docker, ports, terminals and the first run of setup. - [Help: Pairing your browser](https://developer.isonapse.com/help/pairing): Opening the dashboard and pairing your browser. - [Help: Approving a plan](https://developer.isonapse.com/help/approving-a-plan): Approving a setup or policy plan in your terminal. - [Help: Codex](https://developer.isonapse.com/help/codex): Connecting OpenAI Codex CLI. - [Help: Day to day](https://developer.isonapse.com/help/day-to-day): Agents not checked, refused commands, restarts and upgrades. - [Blocked or asked](https://developer.isonapse.com/help/blocked-or-asked): how to read a refusal, see why without running anything, and change it the right way - [What each reason means](https://developer.isonapse.com/help/reasons): every reason code Isonapse prints, what it protects and what to do; anchors are the codes - [Diagnostics](https://developer.isonapse.com/help/diagnostics): what to collect before asking for help, and what to leave out - [Roadmap](https://developer.isonapse.com/roadmap): what is available now and what comes next - [Feedback](https://developer.isonapse.com/feedback): report a bug, ask a question, disclose a security issue - [Beta EULA](https://developer.isonapse.com/terms): the license for the public beta, in plain language - [Privacy](https://developer.isonapse.com/privacy): how the product and this site handle data - [Security contact](https://developer.isonapse.com/.well-known/security.txt): how to report a vulnerability