Get Isonapse running
Isonapse checks the covered actions your coding agent is about to take against your rules, on your own machine. There are two ways to install it. Pick one, follow its steps, and you will see it work.
Recommended if you have Docker
With the wizard and dashboard
- You need
- 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.
- You get
- 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.
No Docker, no server
Command line only
- You need
- 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.
- You get
- 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.
Not sure? 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. What is the difference between the Agent Hook and Community Edition?
Isonapse itself runs on macOS 11 or later on Apple silicon, or Linux x86_64 with glibc 2.35 or later. Intel Macs, Linux on ARM and Windows are not supported. Docker has requirements of its own. Full system requirements. You need no GitHub token and no Isonapse account. The public beta is free for personal testing, research, and internal, non-production evaluation; production and commercial use are not covered (beta terms).
The easy install · needs Docker
With the wizard and dashboard
Two commands, then your browser. This sets up the Agent Hook and Community Edition on this machine and looks after the Claude Code and Codex you already run, with no file to edit.
- 1
Start Docker and open a plain terminal window
Docker must be installed and running: for example Docker Desktop or Colima. Run everything below in your own terminal on this machine, in a window that runs no agent. On macOS that means Terminal or Ghostty. On Linux, GNOME Terminal, Ptyxis, xterm, Alacritty, foot, Xfce Terminal or a text console. Approval is refused in iTerm2, tmux, screen and editor or app terminal panels. Other terminals are refused too.
Your agent must be installed and signed in: Claude Code signs in with
claude auth login, and Codex withcodex login.Put your browser and this terminal side by side: the steps take turns between them, and the dashboard page stops reading Isonapse while it is hidden. On macOS, setup opens its link in your default browser.
- 2
Install Isonapse
brew install isonapse/tap/isonapseNo Homebrew? Use the install script in the next method's first step, then come back here. If Homebrew answers "Your Command Line Tools are too outdated", update them in System Settings, Software Update, then run the command again, or use that script, which is not affected.
- 3
Run setup
isonapse setupSetup checks Docker, ports and resources, keeps the server's secrets in a file only you can read, starts the server and dashboard, and connects this machine's agents. The first run downloads two container images and a model of about 91 MB, so it can take a few minutes. Interrupt it and run it again: it resumes.
It prints one line per step, among them:
You will see
Checking Docker... Fetching images... Starting the server... Starting the dashboard... Checking this terminal... Checking Codex... Pairing this browser...Back up the secrets file it names: your data cannot be opened without it. If you use Codex, read the line under “Checking Codex...”. It says whether Codex can be connected and what to fix; Claude Code is set up either way. If something is in the way, setup names it and stops: see When something does not work. This version supports single-user machines, so setup also stops if this machine has other login accounts. If you accept what it says about them, run this instead:
isonapse setup --accept-other-accounts - 4
Pair your browser
Setup prints a one-time link that works for 10 minutes. On macOS it also opens it; if no page opens, copy the link into your browser. The browser you pair must run on this machine too. The page shows a code: type it in the terminal where setup is running. When the terminal prints “Paired: pairing …”, press Continue setup on the page.
- 5
Create your dashboard account
Your name, an email and a new password of at least 8 characters. This is a new password for your dashboard, kept by your own server. It is not your computer's password.
- 6
Choose your agents and a mode
Press Detect agents (it reads Check agents again if they were checked before). The wizard handles Claude Code and Codex; if one is signed out, the page shows the sign-in command to run in your own terminal. Setup has already connected Claude Code by now, so leaving it unticked does not disconnect it: the dashboard's Hosts page does that. A host is a coding agent that Isonapse looks after.
Normal is the default for a new setup. Normal applies your block and ask rules plus catastrophic and non-bypassable shell safety. Profile records decisions and rules only advise, while self-protection and hard limits still refuse. Enforce adds behavioral review. On a machine that already has a mode, the wizard starts on that mode. See What to do next.
Codex is a cooperative, fail-open host: if Codex cannot start the adapter or has not trusted its hook definitions, it runs the tool anyway, with no check and no receipt. See it work shows how to check.
- 7
Review the plan, then approve it
Review says what will change; nothing has changed yet. Continue, and the page shows a code. Approve it once in the terminal where setup waits: press Enter there, check that it shows the same plan, then type the plan's code and your password.
This is a different password: the one you log in to this computer with, not the dashboard password from step 5. Your account must be able to use sudo (on macOS, an Administrator account), so a Standard account is refused, and the terminal says what to do. Later approvals also work over SSH from another machine.
While the plan runs, the page may ask you to confirm your password to connect this machine to your server. That one is your dashboard password from step 5, typed on the page.
You will see
Plan applied: every operation ran once, in order, ... Isonapse CE is running. Server: http://127.0.0.1:8080 Dashboard: http://127.0.0.1:3200Wait for “Plan applied:” in the terminal. That line, not the page, tells you it finished.
- 8
Start a new session of your agent
The page ends on “Your agents are set up”. If it says “Setup needs a look” instead, the Hosts page says what to do. If it says “Setup did not finish” or “Check your terminal”, your terminal says what happened. Sessions already running do not change. Then go to See it work.
After that
The dashboard's Hosts page adds or removes an agent, and the Policies page guides a policy change and rolls back to an earlier one. Each change is a plan you approve the same way, with isonapse approve in your terminal. isonapse setup --teardown removes what setup made and keeps your data unless you type the volume's name when asked.
Change a policy in the dashboard
- On the Policies page, press Change policy.
- Choose a scenario: “Keep agents away from files and folders”, “Stop or confirm selected commands” or “Limit which websites agents can reach”. Or choose Edit the Lua myself.
- Adjust it, then press Next: test it. Press Add an example. In the row it adds, choose the Agent and the Action (for example “Read a file” or “Run a command”), type the file path, command or web address the agent would use in the third box, and under I expect choose “It is refused”, “It asks me first” or “No rule refuses it”. Then press Run tests. It stays greyed out until every example's box is filled. Each example says “As expected” or not. A test decides nothing and writes no receipt.
- Press Next: review the change to read the exact change. If it lets agents do more than your active policy, tick “I have read this. It can let agents do more than my active policy.”
- Press Next: activate, then Send to my terminal for approval.
- In your terminal, run
isonapse approve, press Enter, check the plan, then type the code the dashboard shows and your computer password. - To go back, find the earlier revision under History and press Roll back, then approve it the same way.
Keep agents away from your dashboard. A program running as you, including an AI agent that can use Docker or your browser, can use the Hosts page with your pairing. Agent and policy changes still need your password in your terminal, so read what the terminal shows before you type it. A join code needs your dashboard password from the last five minutes. If an AI agent on this machine can use the Docker that runs your server, that agent controls the server, its records and its keys: run the server on another machine, or under another account with its own Docker, when its records must hold against your agents.
No Docker, no server
Command line only
This installs the Agent Hook alone, and everything happens in your terminal. The steps are for Claude Code, which must already be installed and signed in, and need nothing else. Using another agent? Step 1 is the same. Then use host setup for Hermes Agent v0.20.0 or pi 1.0.3, 1.0.4 and 1.5.0, or the Codex CLI steps, which are longer without Docker.
The whole path at a glance
Step 1
Install
Install Isonapse with Homebrew.
brew install isonapse/tap/isonapseStep 2
Initialise and start
Set Isonapse up on this machine and start its small background process.
isonapse hook init && isonapse hook startStep 3
See it work
Ask your agent for something harmless, then check that the report's numbers went up.
isonapse hook reportStep 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 --diffReview the complete no-new-choice baseline diff before continuing.
isonapse hook apply
Downloads: setting up fetches about 91 MB once, for the required local embedding model. Download optional models individually from Hosts with terminal approval. The separate command isonapse hook intel download fetches about 1.9 GB of additional on-device detection models; from an empty model directory the maximum is about 2.0 GB.
1 · Install
brew install isonapse/tap/isonapseHomebrew needs no GitHub token. If it answers "Your Command Line Tools are too outdated", update them in System Settings, Software Update, then run the command again. You can run the verified public installer instead, which that does not affect; it always downloads anonymously, even if your shell already has a GitHub token set:
curl -fsSL https://github.com/Isonapse/isonapse-public/releases/latest/download/install.sh | shThe script installs under ~/.isonapse/bin and does not edit your shell profile. Before step 2, add it to this shell's path (and put the same export in your shell profile for future sessions):
export PATH="$HOME/.isonapse/bin:$PATH"Nothing is running yet. That comes next.
Package verification
The isonapse formula pins immutable releases and updates through Homebrew like everything else you run. Its archive digest comes from the same checksummed build identity used by the installer and updater, binding the exact source commit, product, version, and platform rather than a publication repository's branch name. Release CI audits, clean-installs, and tests that exact formula on native macOS Apple silicon and Linuxbrew x86_64 before the required tap publication can advance. This step installs the five command-line binaries, the Hook ADK toolkit, license, and attribution texts — nothing starts running until you initialise.
Every installed build has one exact identity: 0.3.0-beta+release.<short_sha>. The CLI, generated Claude Code plugin, GitHub Release title, and Homebrew formula share that binary version. Homebrew adds a numeric package revision so successive releases upgrade reliably. Your selected channel is recorded separately; a release keeps the same verified binary on every channel that publishes it.
2 · Initialise — once
For Claude Code, use the command below. Hermes and pi users use their host command in host setup, then the same daemon start and status checks.
isonapse hook initInitialisation creates Isonapse's local state, installs the Claude Code hook, and automatically downloads the required about 91 MB model. Then start the small local decision process and confirm its status.
Init counts its way through seven steps. If you already have other Claude Code hooks, it stops at “WARNING: Other hooks detected” and asks you to accept the risk: read it, then answer. Its closing lines also mention hardened checks and --managed, and suggest applying a policy template. All of that is optional; skip it for now.
What initialisation creates and changes
This creates ~/.isonapse/, generates your machine's signing key, writes a starter policy and registers Isonapse as a Claude Code plugin. It also automatically downloads the required 90.9 MB (86.7 MiB) embedding model from Hugging Face that the control plane needs to run, and fingerprints the configured personal-skill root and resolved installed-plugin prompt content plus any package routing manifests. By default that means ~/.claude/skills and installed prompt components under ~/.claude/plugins, not project, managed, legacy-command, or additional-directory skills outside those configured roots. Package and marketplace metadata can select default/custom skill and command paths or, for a single-skill package with no other skill component, a root SKILL.md. Configured roots are authoritative: repointing skills_dir leaves the generated ~/.claude/skills/isonapse-hook transport outside the trust manifest. The generated plugin manifest contains hooks only; the hook itself provides a narrow, always-on best-effort guard for direct Edit/Write and rm/chmod attempts against Isonapse data and its active plugin. Managed setup additionally places current Claude Code deny rules in OS managed settings and enables allowManagedHooksOnly. This is defense in depth, not an OS sandbox. Initialisation installs the pieces but does not start the control plane; the next command does that.
isonapse hook startThis can take up to 45 seconds while it checks the model. It ends with “Control plane started”: the control plane is that small background process.
isonapse hook statusStatus starts with the health verdict, agent states and any priority fixes. A matching build line confirms that the running control plane uses the installed build. Use isonapse hook status --details for the full report, or --json for scripts. Now start a new Claude Code session, and go on to See it work.
Check health, cached sessions, and daemon availability
isonapse hook doctor --details reports daemon, integration, policy, and integrity state separately. isonapse hook events lists the on-disk hook inventory. Neither command can prove an already-running Claude session has unloaded cached hooks. If you skip the explicit start, the next Claude Code session can start the control plane on demand. isonapse hook stop requests an authenticated, policy-permitted stop and disables automatic restart until you run isonapse hook start again. Stopping the daemon does not disable the Claude integration. From your next session on, covered actions flow through the checkpoint. If the daemon is unavailable, an ordinary PreToolUse action asks before running; a direct self-protection match is denied locally first. Neither daemon-down result has a witness receipt. That is Claude Code's behavior; other hosts differ, as Choose your host explains for Hermes.
Optional, skippable local intelligence: Setup installs the required embedding. In Hosts → This machine → Optional models, see what each optional model adds and approve a download or removal in your terminal. The individual download sizes are PII NER (837.1 MB), prompt injection (747.2 MB), and NLI cross-encoder (292.9 MB). Cleanup pending means a retired model still has files taking up disk space. Missing optional models reduce coverage without blocking setup or use. The bulk command downloads about 1.9 GB of additional on-device detection models, or at most about 2.0 GB from an empty model directory.
isonapse hook intel downloadExact model downloads, fallbacks, and explain behavior
This user-started command fetches the extra on-device ML models for personal-data and prompt-injection detection, PII NER, and the NLI cross-encoder — a one-time additional download of 1.877 GB (1.748 GiB) after required provisioning succeeds. If the required embedding model is missing, this command repairs that too, so its maximum all-model transfer is 1.968 GB (1.833 GiB). Files go into ~/.isonapse/. It runs entirely locally and is skippable: when its local session can load, the required embedding powers the learned similarity gate; PII and injection retain local fallbacks, while optional NLI entailment is unavailable.
To inspect a point-in-time candidate without running or authorizing a command, use isonapse hook explain "ls -la". It evaluates the exact hypothetical input in a fresh isolated synthetic session without changing gate state or attempting a receipt. If the captured live path would invoke stateful Lua policy or require a cache-mutating intelligence-model load, the result is indeterminate; live authorization can still differ as state changes or fail closed while storing its receipt.
See it work
For both ways of installing. You will see one action allowed and one refused. Run the commands in your own terminal, not through your agent: Isonapse refuses a governed agent's isonapse commands unless they are read-only.
- 1
Start a new session of your agent
A session that was already open keeps its old state and shows nothing new.
- 2
Take a first reading
isonapse hook reportNote two lines: “Tool calls witnessed” and “permit / defer / deny”. On Hermes Agent add
--host hermes. On Codex add--host <host ID>;isonapse hook host-profile listprints the fulladk-codex-…ID. - 3
Ask your agent for something harmless
Try “List the files in this folder”. In Profile and Normal it runs as usual and is recorded. In Enforce, the first action of a session can be held back: Claude Code can ask you first. Codex and Hermes Agent refuse the first call, and retrying it once proceeds when policy permits.
Normal does stop some work, on purpose. With a new policy, Claude Code asks you before an agent runs a package it downloads (
npx,bunx,npm exec,pnpm dlx,yarn dlx,uvx,pipx run,uv tool run), pipes a download into a shell, or uses its file tools to change a project file that runs by itself later, such as a workflow or a Git hook. Codex and Hermes Agent cannot ask, so they refuse. The package rules are in your policy, and you can change them. An existing policy keeps its rules, so after an update it may not ask:isonapse hook status --detailsnames the download-and-run rules it lacks. In Profile these rules only advise and do not ask: the command line'sisonapse hook initstarts there, andisonapse hook mode normalchanges it. Catastrophic commands are refused. On Claude Code, a hook added or changed during a session stays out of that session.isonapse hook status --detailsshows its digest, andisonapse hook hooks acknowledge <digest>, run in your own terminal, accepts it. Covered reads of known credential files and writes to Claude Code's user settings are refused in every mode. In Normal, a recognized credential in a shell command also needs review unless its program has an exception. A host that cannot ask refuses it. Where the host can replace output, the default PII action tokenises detected personal data in selected successful Read, WebFetch, Bash and MCP results before the next model request. - 4
Read the report again
isonapse hook reportBoth lines have gone up since your first reading, and your action, such as
tool:Bash:ls, is listed under “Top capabilities”. That change is the proof, not the number itself. On Codex this check matters most, because a host that skips its hooks leaves no other trace: repeat it after every Codex update.With the dashboard, the Hosts page also moves the agent from “Set up, not seen yet” to “Seen working”. That means Isonapse has made decisions for this agent. It is a past fact, not a promise about now.
- 5
Preview a refusal, with nothing at risk
isonapse hook explain "rm ~/.isonapse/policy/policy.lua"This runs nothing and writes no record. Among its lines you will see:
You will see
Local self-protection: DENY [protected-path-write] — the live Hook refuses this before any gate evaluation, in every gate mode.The “Candidate” line after it may say PERMIT. That is only what the later checks would have said: it ends “never reached: the local self-protection refusal comes first”.
Self-protection is Isonapse guarding its own files. It applies in every mode, Profile included. It is a narrow, best-effort guard over direct commands and named paths, not an operating-system sandbox.
- 6
See a real refusal
Ask your agent to write the word hello to
~/.isonapse/hello.txt. It should be refused. On Claude Code the message starts “ISONAPSE DENY” and names “Reason [protected-path-write]”, though your agent may put it in its own words. Other agents word it differently. If it was not refused, the most this did was create one small file: delete it, and see When something does not work.The report's permit / defer / deny counts do not move for this refusal, because the Hook stops the action before any gate decision.
isonapse hook witness query --reasonshould list it ashook:self_protection_denied, a signed event and not a gate decision.
To watch decisions as they happen, run isonapse hook witness monitor. To list recent signed records with their reasons, run isonapse hook witness query --reason, and to check that the record has not been altered, isonapse hook witness verify. Neither isonapse setup nor isonapse hook init fetches the optional models. When an optional model is missing, the list can also show intel:scan_degraded for a scan that ran with the local fallback. That is expected.
Update Isonapse
Run this in your own terminal, whether you installed with Homebrew or the install script. It shows what changed, checks the new files against the release signature, and refreshes your connected agents. It normally asks for your computer password once. Your existing mode is kept. Start a fresh Claude Code session when asked.
isonapse updateisonapse update --check shows what is available.
With the dashboard
- Open the Hosts page. Its “This machine” panel shows the installed version. “Check by itself, at most once a day while this page is open” is ticked by default: it reads public release information from GitHub and sends no content of yours. Untick it to switch it off, or press Check for updates to check now.
- When a newer release exists, the panel shows what changed and an Update button. It changes nothing by itself: it shows “Run this in your own terminal. It asks for your password once.” and “Nothing has started yet.”
- Run
isonapse updatein your terminal. Meanwhile the page says “Updating: your terminal shows the progress.” - When it has finished, the page says “Reload this page to load the new dashboard.” Reload it, then start a fresh session of your agent.
If Homebrew says your Command Line Tools are too outdated, update them in System Settings, Software Update, then run isonapse update again.
First update from a version without this command
A version without it answers unrecognized subcommand 'update'. Update it once the old way, in your own terminal:
- Close your agent sessions. Run
isonapse hook statusand review any unexpected monitored changes it names. A restart accepts the current files into its baseline by default. - On a Mac, if you stored secrets with
isonapse hook secret set: note their names and have each value ready from your own records. The earlier version may have kept their key in the Keychain, which this one cannot read, and Isonapse cannot show a stored value. The first start may then stop with “sealed with a key this build cannot read” and print three commands: run them in order. The third,isonapse hook secret set <NAME>, stores one secret again: repeat it for each. - With Homebrew, run
brew upgrade isonapse/tap/isonapse, thenisonapse hook restart, with one password. With the install script, runisonapse hook stop, thenisonapse-update --pin <commit>with the seven characters afterrelease.in the new version. If the old updater refuses the pin, rerun the script installer. Then runisonapse hook start. For this first update, between the package upgrade and the restart, while the earlier version still runs,isonapse updatecannot finish the job, because that version cannot report its plans to it. It prints “Finishing the update”, then refuses with[update_plan_pending]: it changes no package, stops nothing, changes no configuration and records no update progress. It may leave an emptyupdate.lock, readable only by you, in the Isonapse data folder. - For Claude Code, rerun
isonapse hook initand start a fresh session. If it prints “WARNING: Other hooks detected”, read what it lists before you answer:yaccepts every source listed. For Hermes or pi, rerun your existing host-specific init command. For Codex, runisonapse hook adk-pin. - Your policy, mode and records stay. An existing policy keeps its rules: see See it work, step 3.
- To add the dashboard, run
isonapse setupas in the easy install. The control plane already runs, so setup says that connecting it takes two plans, and two passwords: one to load the settings, one to enroll. If you started a server and dashboard by hand, read When something does not work first: setup cannot take them over.
Use isonapse update for later updates.
What to do next
How strict Isonapse is depends on its mode. There are three, and the mode is one setting for the whole machine. In the dashboard, open Hosts, then choose Change mode under This machine. Pick a mode, send it to your terminal, and approve it with isonapse approve. Enforce still checks whether the machine has learned enough. In the terminal, isonapse hook mode shows the current mode.
- Profile
- Watches and records. Your rules only advise; self-protection and hard limits still refuse. The command line's isonapse hook init starts here.
- Normal
- Normal applies your block and ask rules plus catastrophic and non-bypassable shell safety. The wizard and isonapse setup start a new machine here.
- Enforce
- Enforce adds behavioral review and uses what it learned. Unfamiliar work goes to confirmation or denial.
Try a first rule to see how it works. When you want behavioral review in Enforce, review the policy Isonapse proposes before applying it. These commands work with either install. The dashboard's Policies page offers the same rule changes with a form.
Let it learn while you work
Keep working as usual. Isonapse learns what normal looks like in both Profile and Normal: your agent's ordinary work is allowed and recorded. In Profile, your rules only advise. Fixed structural and resource limits plus the narrow self-protection guard can still block even there, and Codex's own requests to leave its sandbox are always refused. In Normal your block and ask rules and the safety floor apply while Isonapse learns. Check what it's learning:
isonapse hook report # last-24h summary
isonapse hook suggest --user # the machine-wide rules it would write
isonapse hook explain "ls -la" # preview a command without running itProfile's exact data-protection boundary
Profile is an observe-and-learn on-ramp, not a general data-masking mode. Raw Bash input is PII-scanned for typed audit evidence, but the PII action does not rewrite it; existing scan bounds and credential-bearing executable identity guards still apply. Selected successful tool output is scanned for warnings but not rewritten by the PII action, and secret placeholders are not resolved. If a local vault token was restored, exact private-release replacement still applies to a supported PostToolUse data carrier under a trusted hook set. An unsupported carrier stops, and a matching failure error can only stop immediate continuation, not erase the host record. Submitted prompts also cannot be rewritten; only deny_on_ingress can block them.
Try a first rule
Rules are a Lua file, ~/.isonapse/policy/policy.lua, but you can start from a template: isonapse hook policy list shows them. This one keeps agents out of any folder named company-secrets, at any depth. Changing a rule or a mode needs an account that can use sudo (on macOS, an Administrator account).
1 · Apply the template
isonapse hook policy apply folder-denyIt asks for the password you log in to this computer with. It replaces your active policy. The old one is backed up first, and the command prints where. To go back, isonapse hook policy revisions lists earlier policies and isonapse hook policy rollback <revision> restores one, with one approval in a plain terminal window.
2 · Ask what each mode would do
isonapse hook policy test --read company-secrets/plan.txtNothing runs, and no record is written. It prints one line per mode: Profile reports it only (“would be: refused”), Normal and Enforce refuse it.
3 · Make it refuse, if you are in Profile
isonapse hook mode normalisonapse hook mode shows your mode. If it already says Normal, as it does after the wizard's default, skip this command. Otherwise it asks you to confirm, and for that same login password. Profile only records what would be denied, so this rule takes effect in Normal or Enforce. Now ask your agent to read a file in a company-secrets folder: it is refused. isonapse hook mode profile goes back to watching, after you confirm.
Use your own folder
A pattern that ends in a slash covers that folder and everything under it, and a relative pattern matches at any depth. Save this as my-policy.lua with your folder's name:
return {
blocked_file_patterns = {
["tool:Read"] = {"my-folder/"},
["tool:Write"] = {"my-folder/"},
},
}Then try it, and make it live. Neither of the first two commands changes anything. The third shows the exact change and takes one approval with your login password, in a plain terminal window that runs no agent, such as macOS Terminal or Ghostty.
isonapse hook policy check my-policy.lua
isonapse hook policy test --candidate my-policy.lua --read my-folder/plan.txt
isonapse hook policy activate my-policy.luaChanged your mind? The same revisions and rollback commands undo this too.
What a folder rule does not do. It checks the targets a command visibly names; it is not operating-system confinement. It does not see unknown programs, hard links that already exist or later changes. A file rule denies even when an action rule permits the tool. Under a folder rule, a write that cannot be read in advance is denied, and so are Git commands that rewrite the working tree, such as pulls, merges and branch switches: run those yourself. With a read rule, Normal and Enforce also refuse a command that runs code whose reads Isonapse cannot name, such as python or node. On Codex and other registered hosts, location-dependent file rules refuse relative paths, so write the absolute path.
For rules that belong to one repository, see project rules. For what a policy looks like, see A simple policy.
Switch to Enforce
This moves the whole machine to Enforce, with rules drawn from what Isonapse learned. You read those rules first. When the picture looks right, review the exact point-in-time baseline policy it would write if the profile and live policy stay unchanged and you make no new catastrophic PERMIT/DEFER choices, then flip the switch:
1 · Generate the proposal
isonapse hook suggest --user --diffStop here and review the complete no-new-choice baseline diff. Apply only when every proposed rule reflects the access you intend to grant across this machine. Re-run suggest if the profile or live policy changes before apply. Any new catastrophic PERMIT/DEFER choice you make during apply changes those bytes.
2 · Apply after review
isonapse hook applyIt asks for the password you log in to this computer with. From now on your rules plus the learned baseline decide. Changed your mind? isonapse hook mode profile requests a return to watching after authentication and permission checks. Managed or uncertain installations refuse changes that relax protection while enterprise approval support is unavailable. Want your block rules enforced without the learned lookup? isonapse hook mode normal switches to Normal: your block and ask rules plus the deterministic shell safety floor apply. Normal skips behavioral review for cold start, shift, thin evidence, intent, previews and ordinary destructive or opaque programs; Enforce adds those checks. Watch decisions stream live with isonapse hook witness monitor.
Enforce's exact data-protection boundary
Outside Profile (in Normal and Enforce), the configured PII action can tokenise, hold for review, or block selected tool output before model delivery. Raw Bash is never rewritten for PII; deterministic credentials can require review or refusal, while personal/ML detections are recorded under the default action; explicit deny/defer remain available. Allowed-secret resolution, local-trust detokenisation, and safe dry-run injection compose before the exact effective command is authorized once. External WebFetch and MCP arguments keep existing vault tokens opaque, but raw plaintext arguments are not generically scanned. The full surface-by-surface matrix is on the What it does page.
When something does not work
isonapse hook doctor shows the health verdict and next steps without changing protection. For integration and skill checks, use isonapse hook doctor --details. For build comparison, host readiness, optional models and policy load diagnostics, use isonapse hook status --details. isonapse hook report shows recent decisions. isonapse setup --status shows how far setup got. Then find what you see below.
Docker and setup
- Homebrew answers “Your Command Line Tools are too outdated.”
- Update them in System Settings, Software Update, then run the command again, or use the install script, which is not affected.
- “Docker is not installed on this machine.”
- Install Docker, for example Docker Desktop or Colima, start it, and run
isonapse setupagain. - “Docker is installed, but its daemon is not answering”
- Start Docker, wait until it is ready, and run
isonapse setupagain. - Docker has too little memory, or too little disk is free
- Setup refuses below 1 GiB of Docker memory and warns below 2 GiB. It refuses below 1 GiB of free disk and warns below 4 GiB. Raise the memory in Docker’s settings (on Colima,
colima start --memory 4) or free some disk, then run setup again. - “Something is in the way: port 8080 is in use”
- Setup uses ports 8080 and 3200 on this machine. Run
isonapse setup --server-port <port>orisonapse setup --dashboard-port <port>with a free one. - “Something is in the way: container
isonapse-serveralready exists … and setup did not create it”, and the same forisonapse-dashboard,isonapse-netorisonapse-data - A server and dashboard started by hand, with
isonapse server startandisonapse dashboard start, use setup’s names, and setup cannot take them over. Use one method, not both. To start fresh, with Docker running, runisonapse dashboard stopandisonapse server stop, thendocker network rm isonapse-netanddocker volume rm isonapse-data, and runisonapse setupagain. The last command deletes that server’s records. Or run setup with the--name-prefix isonapse-2it suggests: it starts a second, empty server and needs free ports too (--server-port,--dashboard-port). The server you started by hand keeps running beside it. - “This shell was opened by Claude Code”, or setup refuses tmux, screen, Warp, or an editor’s terminal
- Open a plain terminal window that runs no agent, such as macOS Terminal or Ghostty, and run
isonapse setupthere. - Setup runs for a while in iTerm2, then stops at “Checking this terminal...”
- iTerm2 and other terminals that are not on the list get this far before they are refused. Run
isonapse setupin macOS Terminal or Ghostty. It resumes where it stopped. - “This machine has other accounts”
- This version supports single-user machines, because another account can bind a stopped server’s port and see loopback traffic. If you understand that and accept it, run
isonapse setup --accept-other-accounts. - Docker Desktop says “Lingering processes detected”
- Docker Desktop runs for one account at a time. Quit it in the other account first.
- An Isonapse program is stopped as soon as you run it
- Third-party antivirus can do this. It has been seen only on an unsigned development build, and whether signed release binaries pass is not established. Check that the program came from Isonapse’s own release, through Homebrew or the install script, before you allow it there. Then try again.
- “The secrets file … is gone.”
- Restore it from your backup. Without it, the server’s data cannot be opened.
Pairing your browser
- “No browser has opened the link yet”, or “Isonapse could not open your browser”
- Open the link setup printed in the browser you use for the dashboard. On macOS, setup asks your default browser to open each new link, and says so if it could not. On Linux, nothing opens by itself.
- “This pairing timed out.”, or the link has expired or been used
- Run
isonapse bridge pairfor a new link. The same command helps if a very busy machine cancels a pairing. - “This machine has the most pairings it allows”
- Isonapse keeps four pairings. Run
isonapse bridge unpair --all, then pair again. It removes every pairing on this machine; your agents and policies stay as they are. - “It came from a program Isonapse does not accept”
- Start the browser from the Dock or the applications menu, not from an AI agent’s session.
- “Your server needs its one-time setup secret” after you reloaded the page
- Run
isonapse setup --adminin your terminal to create the account there, then choose Sign in instead on the page. - The Hosts page says Isonapse is not answering
- Run
isonapse bridge pairings. If no browser is paired, connect again withisonapse bridge pair. If Isonapse is not running, runisonapse hook start. - Isonapse cannot tell whether your account is serving the dashboard
- On macOS 27.2, Isonapse may be unable to verify who serves the dashboard port. It refuses the connection and keeps existing pairings. Run
isonapse bridge pairingsand make sure the dashboard and its port forwarder run as your login account. - The dashboard answers with an explanation page and a 403
- Use
http://127.0.0.1:3200, or put HTTPS in front of it. The dashboard refuses other addresses.
Approving a plan
- “Approving a plan needs an administrator account”, or the page says “This account cannot approve plans”
- A Standard account is refused by design, and nothing changed. Run
isonapse setupfrom an administrator account, or make this one an administrator: on macOS, an administrator can turn on Allow this user to administer this computer in System Settings, Users & Groups. Then log out and back in, and runisonapse setupagain. - “The password was not accepted.”, or “operator authentication refused: authentication_failed”
- Type the password you log in to this computer with, not the dashboard’s. A refused approval ends the plan with none of it run, so it is safe to start again: run
isonapse setupif setup has not finished; otherwise request the plan again in the dashboard and runisonapse approve. A sudo that answers without a password is refused too (password_required_policy). - “operator authentication refused: session_lost”
- On macOS, the control plane can keep running after the login session that started it ends. Run
isonapse hook restartin your own terminal. It asks for your password and starts a new control plane.isonapse hook stopandisonapse updatecan stop the old one the same way. On Linux, check that the operating system can resolve the account running the control plane, then retry from your own terminal. - “Another browser's plan is waiting for approval.”
- Run
isonapse approve --cancelin a terminal. It also clears a plan whose terminal has exited, after you confirm. If it says the plan is being approved in another terminal, the plan stops only there: press Ctrl-C in that terminal, or wait the time it names, until the plan expires. - Right after setup, Open Hosts shows “Sign in to Isonapse”, perhaps with “Your session expired or was revoked.”
- Sign in with the dashboard email and password you created in setup. Nothing is lost, and the page you asked for opens. This is a known issue in this release.
Codex
- “… cannot run Codex's adapter”
- Codex’s adapter needs Node.js 22 or newer: a real file rather than a shim, in folders only you or root can change, and not Homebrew’s. Setup lists each Node.js it found with its own reason, the one you can fix first, with the exact command for a folder or file others can change, such as
chmod g-w /usr/local/bin. Run that command, ornvm install 22, and run setup again. A Node.js that belongs to another account gets no command: leave it as it is and use one of your own. Claude Code is set up either way. - Review says “Codex is not ready on this machine”, or “Isonapse has no Node.js it can use for Codex”
- In a terminal, run
isonapse setupagain (press Ctrl-C first if it is still waiting). It checks Codex and Node.js, says what to fix, and prepares Codex. Then choose Try again on the page. If you chose another agent too, you can choose Continue without Codex and add it later from the Hosts page. - Codex or its home folder is “not on this Mac's startup disk”
- Keep Codex and its home folder, by default
~/.codex, on the startup disk. - “differs from this terminal's CODEX_HOME”
- In this version, setup connects Codex only in its default folder,
~/.codex. Open a window whereCODEX_HOMEis not set, or names that folder, and runisonapse setupthere. A Codex you then run with anotherCODEX_HOMEreads its own hooks, so Isonapse does not check it. See it work, step 4, is how to tell. - Codex is older than Isonapse supports
- Update it. The adapter is for codex-cli 0.159.0 or newer.
- Codex is “unqualified: it is accepted and set up”
- This is only a warning. Nothing is required.
- “Isonapse found hooks it did not write”
- Move Codex’s
hooks.jsonout of its home folder, try again, then put your own hooks back without Isonapse’s.
Day to day
- No new decisions in the report or on the Hosts page
- Start a new session of your agent. A session that was already open keeps its old state.
- “WARNING: Other hooks detected” during
isonapse hook init - Other Claude Code hooks can get in the way of Isonapse’s. Read the risk it describes. Answering
ycontinues. If it lists Isonapse’s ownisonapse-hook/hooks/hooks.json, that file differs from what the previous release wrote: read it before you answer.yaccepts every source listed. - Claude Code asks before
npxoruvx, or Codex refuses it - In Normal and Enforce the starter policy asks before an agent runs a package it downloads, and a host that cannot ask refuses. Say yes if you expect it, or run the command yourself in your own terminal. The rules are in your policy, so you can change them.
- An agent’s
isonapsecommand is refused - A governed agent may run only read-only
isonapsecommands, such asisonapse hook statusandisonapse hook explain. Run the command yourself, in a terminal outside the agent’s session. - After you add a read rule, your agent’s
pythonornodecommands are refused, or on Codex its relative paths - The rule causes this, in any repository, far from the folder it names. In Normal and Enforce, a read rule also refuses a command that runs code whose reads Isonapse cannot name. On Codex and other registered hosts, write the absolute path.
isonapse hook mode profilegoes back to watching while you read the reason. It asks you to confirm, and for your login password. - A long session starts refusing or asking for every call
- A session’s Isonapse identity lasts 8 hours. Claude Code renews it by itself. Codex, Hermes Agent and pi renew it when you resume the session (in Codex, resume the thread). If that is refused, start a new session.
[session-structural-capacity]blocks in a long multi-agent session- A session can track up to 512 agent-and-capability pairs and 64 agents. Wait for active work and approvals to finish, then run
isonapse hook reset-structural --host <HOST> -- <SESSION_ID>in your own terminal and confirm with your password. You can also end the session and start a new one. - The dashboard is gone, or Isonapse does not answer, after your computer restarts
- The server and dashboard come back by themselves when Docker starts, so let Docker start when you sign in. Nothing starts Isonapse itself at login in this version: run
isonapse hook start. A new Claude Code session can also start it. Until it runs, Claude Code asks before an ordinary action, and other agents may refuse it. - An agent stops working after you upgrade Isonapse
- Run
isonapse hook status. Ifisonapse updatereported a host it could not refresh, run the command it named. Start a fresh session of the agent and confirm that a harmless call appears in the report.
- Every command and option:
isonapse hook --helplists the commands, andisonapse hook <command> --helpshows one command with its options and defaults - More known problems and their fixes: known problems and fixes in the public README
- Still stuck? Tell us what happened
Remove Isonapse, or switch methods
Coming from a version without isonapse update
isonapse setup --teardown and --reset are new: a version without isonapse update answers unrecognized subcommand 'setup'. On it, skip the wizard step and do this, in order:
- Close your agent sessions.
- Only if you started a server and dashboard by hand, with
isonapse server startandisonapse dashboard start: with Docker running, runisonapse dashboard stopandisonapse server stop, thendocker network rm isonapse-netanddocker volume rm isonapse-data. The stop commands leave the network and the volume behind, and no Isonapse command removes them. The last command deletes that server's records. - Run the three commands under “Remove the Hook” below, as written.
- Only if you connected Codex by hand: the removal leaves
~/.codex/hooks.json. Move it out of~/.codex, or setup refuses Codex: that file then holds hooks this release did not write. - Install this release and follow the easy install.
On a Mac, isonapse hook status --details can then print one warning that begins a key an earlier build kept in the keychain cannot be read. The earlier version kept a key in the Keychain, and this one keeps it in a file. It needs no step, and it ends at the next restart of Isonapse, such as the one setup's plan makes.
Remove the wizard install first
If you used the wizard, do this first, before you remove the Hook.
isonapse setup --teardownIt disconnects the agents setup connected, then removes setup's containers and network. It asks about your data: type the volume's name to delete the records and their secrets together, or anything else to keep them. To keep the data and also remove the Hook, first back up ~/.isonapse/ce/isonapse/secrets.env: the data cannot be opened without it. isonapse setup --reset does the same as teardown and also forgets setup's settings, so you can run setup again with new ports. The container images stay; remove them with docker image rm. In a script, add --keep-data to keep the data without asking, or --delete-data --confirm-delete isonapse-data to delete it without asking.
Remove the Hook
1 · Preview what it will remove
isonapse hook uninstall2 · Remove it
isonapse hook uninstall --yes3 · Remove the programs
brew uninstall isonapseReceipts become unverifiable once the keys are gone. To keep them verifiable, add --export <DIR> to save the verifying key and the chain. After a script install, there is no brew uninstall: check whether ~/.isonapse/bin is still there and remove it. Managed or uncertain installations refuse uninstall; the technical reference explains why.
From the command line to the dashboard
Run isonapse setup. It keeps your state and trust decisions. If the Hook is already running, it takes two plans and two passwords: one to load the settings and one to connect. Your mode stays. The wizard starts on the mode this machine runs, and the plan changes it only if you choose another. isonapse hook mode shows yours. The wizard does not add Hermes Agent or pi, so keep a machine with only those on the command line.
From the dashboard to the command line
There is no single command for this. isonapse setup --teardown also disconnects your agents, so nothing is checked until you run isonapse hook enable for Claude Code, or set up that agent again (for Codex, the Codex CLI steps), then start a new agent session. To stop only the server and dashboard and keep your agents governed, run isonapse server stop and isonapse dashboard stop. Decisions are made locally, so they go on; records wait until the server is back.
Reference
The details, for when you need them
You need nothing below for a first run. This is where to find project rules, the exact setup and limits of each agent, running the server by hand, system requirements, package verification and common questions.
Keep project rules with the repository
Your user policy is the shared baseline. Managed controls come first, followed by project policy and then user policy. Learned history is stored by normalized Git origin, or by the canonical repository path when no origin exists; clones with the same origin share that identity. Enforce consults repository history first and can fall back to discounted machine-wide learning when it has no opinion.
After some ordinary work, run this inside the Git checkout whose rules you want to publish. It previews the draft against that project's policy, rather than the user-policy preview in Switch to Enforce.
isonapse hook suggest --repo . --diffStop and review the diff before applying it.
isonapse hook apply --target projectisonapse hook policy show --repo .Project apply writes restrictions to .isonapse/policy.lua, then attempts the guarded Enforce transition. If admission fails, the policy remains applied but the mode is unchanged. Check status and the effective policy, then commit that file to Git:
git add .isonapse/policy.lua && git commitFresh clones inherit its restrictions without a trust grant. This does not turn repository policy into an operating-system sandbox.
Gate mode is machine-wide. Profile, Normal and Enforce are one setting for the whole machine, not one per repository. If you are still in Profile or Normal, the Enforce transition that project apply attempts switches every repository and every host on this machine to Enforce, not only this project. If the apply in Switch to Enforce completed its Enforce transition, you are in Enforce already. Check the current mode first with isonapse hook mode.
To see what this repository has learned so far, run isonapse hook suggest --repo . without --diff. Its summary names the evidence it used and says when the repository had no observations of its own and the draft fell back to machine-wide learning.
Only a deliberately reviewed project rule that widens the user baseline needs isonapse hook trust .. That grant is bound to the exact policy bytes; changing them revokes widening authority. Managed limits still win. List the current grants with isonapse hook trust --list and revoke one with isonapse hook untrust .. Ordinary isonapse hook apply targets the user layer, not this project file.
Choose your host
A host is a coding agent that Isonapse looks after. Use the setup command for your installed host. Each integration shares the same local daemon, user policy and repository rules; their coverage differs. Claude Code uses isonapse hook init in the steps above and a fresh Claude session. Each host init automatically downloads about 91 MB for the required local embedding model.
What each host can block, ask and rewrite is in Supported hosts. Why the versions are exact explains the version lists below.
Why the versions are exact
Isonapse lists the exact host builds whose hook behavior has been verified. Hermes Agent was checked against an audited upstream commit; pi and OpenAI Codex CLI were checked by running the real host against the shipped integration.
Setup refuses an unlisted Hermes or pi build before it writes anything, and isonapse hook status --details reports a host that has changed since. On an unlisted pi, the extension also refuses every tool call itself, in every mode, without a receipt.
Isonapse does not pin or check the Claude Code version. It relies on Claude Code's hook contract, and isonapse hook doctor --details shows the version it observes when the daemon is running, with compatibility reported as unknown. The Codex adapter does not check the Codex version, so check codex --version after a Codex update: it is for codex-cli 0.159.0 or newer, and a version it has not been contract-tested on runs unqualified. For Hermes and pi, until a release lists a newer host version, stay on the listed one.
Hermes Agent v0.20.0 (2026.8.3)
Init installs and enables the Isonapse plugin. Before it writes anything, it checks the Hermes build, the two environment variables, the shared-metrics setting and the enabled plugins, and refuses if one is wrong; it does not change them for you. Before you run it, check that:
- You run exactly Hermes Agent v0.20.0 (2026.8.3), audited upstream commit
3c27eb623. Init runs thehermeson yourPATHand refuses every other build: this is an exact requirement, not a minimum. HERMES_SAFE_MODEis unset (or not1,true,yesoron): safe mode skips every plugin, including Isonapse's.HERMES_ENABLE_PROJECT_PLUGINSis unset (or not1,true,yesoron): a project plugin can replace Isonapse's.- You run init, status and Hermes from the same shell. Init and status can only check their own environment.
- You set Hermes's
telemetry.shared_metrics.enabledsetting to exactlyfalse: shared-metrics relay execution bypasses the governed tool pipeline. This is Hermes's own setting; Isonapse sends no telemetry. - Isonapse is the sole enabled user plugin. Disable the others (
hermes plugins list --enabledshows them), because another enabled plugin can bypass or shadow governance. No other plugin may be namedisonapse. - Init, status and Hermes use the same
HERMES_HOME(default~/.hermes) and active Hermes profile; init installs the plugin into that profile. - You start Hermes in a recognized launch shape:
- the
hermesexecutable; - the
hermesconsole script that pipx,uv tool installor a virtual environment puts on yourPATH; - a source checkout run as
python -m hermes_cli.
preparation-refused, andisonapse hook doctor --detailsreports it as unauthenticated Hook ingress. - the
isonapse hook init --host hermesAfter a tool call in a fresh Hermes session, confirm that its decisions were recorded:
isonapse hook report --host hermesInit validates the supported profile; do not edit it concurrently. Hermes covers pre-tool authorization and session lifecycle. It cannot ask for approval or rewrite tool input/output: an ASK becomes a witnessed DENY, and actions requiring rewriting are denied. Gate mode is machine-wide, so a mode switch you make for another host applies to Hermes too. In Normal and Enforce, every ask becomes a witnessed DENY on Hermes, including asks for risky shell commands. In Enforce, the gate's first-action check also denies the first tool call of every Hermes session, and the first after the Isonapse daemon restarts; retrying the same call once proceeds when policy permits it. Hermes's delegate_task and execute_code tools are refused under governance. If the daemon is unreachable, Hermes refuses the tool call, without a receipt. Result observation is opportunistic, so do not rely on it for model-wide PII or injection filtering. If Hermes later reports another build, isonapse hook status --details shows why the Hermes integration is unready.
pi 1.0.3, 1.0.4 and 1.5.0 · Node.js 22.19.0+
This release supports only the exactly qualified pi releases, currently pi 1.0.3, 1.0.4 and 1.5.0. The list is exact, not a minimum or a range: every other pi version is refused by design until it is qualified, including pi 0.80.2, and init stops before writing anything. Install the newest with npm, which pins the exact release, and confirm pi --version prints 1.0.3, 1.0.4 or 1.5.0 first:
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@1.5.0isonapse hook init --host piInstall Isonapse as the only active pi extension. For a project-only install, use isonapse hook init --host pi --project from a folder pi already trusts, instead of the global install. In pi, /trust decisions are kept per agent directory (PI_CODING_AGENT_DIR, default ~/.pi/agent), so save the trust, run init and status, and start pi with the same one. Start pi without extension override flags (-e, --extension, -ne, --no-extensions); project mode also forbids -na/--no-approve. The pinned extension covers tool calls, prompts and session lifecycle.
pi update and the pi.dev installer always install the newest pi release, which this release may refuse until it is qualified. On a pi it has not qualified, or whose version it cannot verify (for example while PI_PACKAGE_DIR points pi at another package directory), the installed extension refuses every tool call in every mode, including Profile. The reason appears in pi once per session. That refusal happens inside pi before any Isonapse decision, so the refused call has no receipt. It depends on pi still loading the extension, so run isonapse hook status after any pi update. Project trust also lets pi start the MCP servers in the project's .pi/mcp.json at session start, outside Isonapse; each MCP tool call is still checked. After upgrading from pi 0.80.2, re-run isonapse hook init --host pi.
Updates: isonapse update refreshes the installed Hermes or pi integration. If it could not refresh one, it names the command to run. Check the result with isonapse hook status.
OpenAI Codex CLI · through the open Hook ADK
Codex CLI has no host init. With Docker, the easy install sets it up for you; otherwise you register the Hook ADK's reference adapter yourself, as described in the Codex CLI setup below.
Start the shared daemon and verify the recorded integration before opening a fresh host session. For global pi installs, run status in every project you use.
isonapse hook startisonapse hook statusOptional local intelligence is a separate, skippable download (about 1.9 GB):
isonapse hook intel downloadThen continue with See it work and What to do next. Read what each host can enforce.
OpenAI Codex CLI and other agents
OpenAI Codex CLI · through the open Hook ADK
Codex CLI connects through the reference adapter in the Hook ADK, the open-source (Apache-2.0) adapter toolkit inside current Agent Hook releases.
With Docker: the easy install connects Codex for you. isonapse setup prepares the adapter, then registers it, adds its hook definitions to Codex and trusts them, as one plan you approve in your terminal. The dashboard's Hosts page adds, removes or re-adds Codex the same way. The plan also sets approvals_reviewer = "user" in Codex's settings, so an approval request the adapter does not answer comes to you. It needs codex-cli 0.159.0 or newer, and Node.js 22 or newer: a real file rather than a shim, in folders only you or root can change, and not Homebrew's. nvm install 22 gives you one, and so does the nodejs.org installer unless its folder is group-writable. On macOS, Codex and its settings folder must be on the startup disk. isonapse hook codex-adapter prepares the adapter and its pin, and changes nothing governed.
By hand: you review the adapter and register it as a host profile, which needs OS authentication and a daemon restart. Then add its six hook definitions to Codex and trust them in Codex's /hooks. The adapter needs Node.js 22 or newer at a path only you or root can change.
What it does: while the adapter runs, each Codex shell command, single-file patch and MCP tool call goes to the same local policy engine as the built-in hosts. In Normal and Enforce, Isonapse can block the call, replace its exact input, or withhold its result from the model. The adapter denies the PermissionRequest events Codex sends it. It also refuses the opt-in request_permissions tool before it runs, through PreToolUse. When the control plane decides and witness storage is available, it records a distinct signed DENY for each route, including in Profile. If the Hook cannot decide, the running adapter refuses without a denial receipt. With the setting that blocks personal data in prompts, a prompt that carries it does not reach the model.
Limits:
- Whenever Isonapse's final decision is to ask, Codex gets a refusal instead, because its hooks cannot ask you. The daemon records that refusal when its witness storage is available.
- Codex cannot take a replacement result, and withholding a result does not undo what already ran.
- The adapter refuses multi-file, delete and move patches itself.
- When Isonapse cannot check a prompt itself, because its control plane is not running or its check of the prompt fails, the prompt reaches the model unchecked and Codex shows a warning; tool calls are still refused while the control plane is down.
- 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, with no check and no receipt.
Check it: after setup, after every Codex update and after any change to the hook definitions, make one harmless call. Then confirm that isonapse hook report --host <host ID> shows a new receipt; isonapse hook host-profile list prints the full adk-codex-… ID. Isonapse also warns in isonapse hook status when the registration or pin of a registered host, the Codex hooks.json, or the Isonapse install changed, or a session of that host started, and no tool decision from that host followed. The hook definition or an activity file of another host is watched only after you declare it with isonapse hook host-profile evidence. For a fail-open host, this is an early warning, not a guarantee.
Versions: codex-cli 0.159.0 or newer, contract-tested on codex-cli 0.164.0 on macOS arm64 and Linux x86_64. Other versions, including the builds Codex's IDE extension and the ChatGPT desktop app bundle, are unqualified. The adapter does not check the Codex version.
Updates: isonapse update refreshes an existing Codex pin file. If you already replaced the Isonapse binaries by hand and the pin is stale, run isonapse hook restart and then isonapse hook adk-pin. A stale pin makes the adapter refuse the call.
Full setup is in the Codex reference README inside the toolkit, at $(brew --prefix)/share/isonapse/isonapse-adapter-toolkit.tar.gz (Homebrew) or ~/.isonapse/bin/isonapse-adapter-toolkit.tar.gz (install script). Its public source: Hook ADK · Codex reference adapter.
Other agents
Built-in setup covers Claude Code, Hermes Agent and pi, and the easy install also connects Codex. Other agents connect through the Hook ADK. Its toolkit in current Agent Hook releases carries the Python and TypeScript packages, the Host Adapter Protocol v1 and the Codex reference adapter. Its public source adds the conformance runner, an adapter scaffold and the Hermes and pi references. You review an adapter and register it yourself as an operator-approved host profile with isonapse hook host-profile; activating it requires a daemon restart, and managed policy can refuse it. Custom hosts run on macOS and Linux.
Set up the server and dashboard by hand
Community Edition brings explicitly enrolled, repository-attributed signed records into a self-hosted team view. Its server and dashboard are in public beta. The Hook stays local by default and needs neither Docker nor a server. Installing it does not start containers or enable federation.
The wizard and dashboard method does the steps below for you and also connects your agents. The steps below are the same server setup by hand, and they change no mode. These steps and isonapse setup use the same names, so use one method, not both: a server started by hand stops setup with “Something is in the way”.
CE setup requires running Docker and retained bootstrap and database secrets. Export your retained ISONAPSE_BOOTSTRAP_SECRET (at least 32 bytes) and ISONAPSE_DB_KEY (exactly 64 hexadecimal characters) from protected configuration. Keep backups and reuse these values on restart.
isonapse imagesisonapse server startisonapse dashboard startImages follow the installed channel and release. Open http://127.0.0.1:3200/setup, enter the bootstrap secret and create the first administrator; later use /sign-in. Services bind to loopback and retain server data in the isonapse-data Docker volume. Starting them does not enroll your Hook or enable federation.
If an AI agent on this machine can use the Docker that runs your server, that agent controls the server, its records and its keys, and Isonapse cannot protect the server from it. When the records must hold against your agents, run the server on another machine, or under another account with its own Docker.
After creating your administrator account, connect your local Hook with the guided command below. It asks where to send your records, signs you into CE, and requests local OS approval without saving the administrator password. The destination project groups records on the server; repository and agent attribution remain attached to each signed record. Older histories may need explicit legacy-history consent; never reset your keys or history to enroll.
isonapse hook federation connect http://127.0.0.1:8080To use the dashboard's Hosts page after this, pair a browser with isonapse bridge pair.
You can also opt into session-purpose labels: sanitized descriptions of new requests, separate from signed activity records. This requires capture settings, policy permission and explicit receiver consent; it is not enabled by ordinary enrollment. Retention defaults to seven days and is limited to 30 days. Historical prompts are not backfilled, and task descriptions do not prove success.
Technical reference
The steps above are enough for a first run. Expand these sections when you need exact platform, lifecycle, or package behavior.
Data location, pausing, and uninstalling
By default, your rules, signed decision history, and learned state stay local under ~/.isonapse/. There is no required cloud service, account, or telemetry. A Community Edition server you run keeps its data in a Docker volume you control. Sharing records with a self-hosted team server is opt-in; see Does my code or data leave my machine?
For a temporary change in a personal install, use isonapse hook pause --for 10m. This pauses only Enforce's learned checks, for no more than 30 minutes. Your Lua policy must have an explicit, unscoped static PERMIT for lifecycle:pause-learned, without a custom action dispatcher, and the command requires fresh OS authentication. The current mode and other controls remain unchanged; authorization and completion receipts are still required. Work permitted through a pause does not become permanent learned approval. isonapse hook resume, expiry, restart, or a mode or policy change restores the learned layer. Managed or unknown installations deny this relaxation until enterprise approval support is available.
To disable an authorized personal plugin installation without losing data, isonapse hook disable removes the generated Claude Code plugin and enable creates it again only when the plugin path is absent and refuses to replace an occupied path. Existing Claude sessions may retain cached hooks. Exit and restart Claude, start a fresh session, then run /hooks to verify Isonapse is absent. The control-plane daemon, managed policy, and local data are unchanged. Disable is distinct from the scoped pause above. Use isonapse hook doctor before changing an uncertain installation.
Managed or uncertain installations also deny uninstall and other protection-relaxing lifecycle changes while enterprise approval support is unavailable. This includes personally chosen --managed setups: managed registration is a protection signal, not an EE license check. An OS password alone does not override that boundary. Where lifecycle policy permits removal, isonapse hook uninstall --yes first freezes each install-owned local target's filesystem identity and authenticates any custom socket against the daemon health PID and trusted installation PID file. Managed-policy ownership checks never override the earlier lifecycle refusal or authorize managed removal. Unrelated organization policy is preserved; duplicate, malformed, ambiguous, detected path/identity replacement, or unexpected local state requires manual resolution. It then publishes a checked stop sentinel, stops the control plane, waits for its exact process to exit, revalidates the frozen targets, and deletes the plugin and bootstrap-owned data. Valid macOS sockets at the platform path-length limit remain removable, and deleting the owned data tree may intentionally remove the stopped socket's parent. A configured data_dir that resolves outside the bootstrap installation is refused before managed-policy mutation. External witness, policy, vault, or other file overrides are preserved for deliberate manual cleanup rather than inferred to be install-owned. If policy removal, ownership, shutdown, or target identity fails, the remaining cleanup does not run and the command does not claim completion. Timestamped managed-policy backups remain for manual administrator or MDM restoration; uninstall does not choose and restore one automatically. This is not a filesystem transaction or OS sandbox against a hostile process already running as the same account (or root) and deliberately targeting lifecycle or private quarantine entries between syscalls. Stop that process before retrying, or resolve the retained state manually. (Run it without --yes first to preview what it will remove.) Then brew uninstall isonapse removes the binaries.
System requirements
- macOS 11 Big Sur or later — Apple silicon native; Intel macOS is not supported. Rosetta translates Intel applications on Apple silicon, not ARM applications on Intel Macs.
- Linux x86_64 with glibc 2.35 or newer — e.g. Ubuntu 22.04+ or Debian 12+. RHEL/Rocky/Alma 9 and Amazon Linux 2023 remain too old at glibc 2.34; older releases and musl distros are also unsupported. The binary won't start there, and the installer stops before downloading rather than leave you with one that can't run. There is no Linux ARM build yet.
- Model namespace monitoring: every verified-file open requires macOS kqueue or Linux inotify. Linux arms its watcher through
/proc/self/fd. If the required embedding cannot arm that watcher during startup validation, the daemon refuses to start; restore the facility and start it again. - Linux lazy model sessions: after required validation succeeds, session construction additionally requires
memfd_createwith file sealing and/proc/self/fd. If only that later construction is blocked, the daemon stays up, but PII/injection use regex/structural fallbacks, NLI is unavailable, and an Enforce learned check without an explicit policy permit asks for confirmation. Restart the daemon after enabling the primitives. - Windows native is out of beta scope. No Windows build is tested or released.
- Homebrew (the
brewpath) or curl (the script path), plus one supported agent host: Claude Code with an active Claude account, or a host from Choose your host. - An internet connection at setup — the required embedding model is fetched from Hugging Face during
isonapse hook init. After that, enforcement runs fully offline. - Disk: the four model downloads alone are 1.968 GB (1.833 GiB): 90.9 MB required at setup plus 1.877 GB optional. Reserve at least 2.1 GB for a full-model install, plus additional room for binaries and locally growing receipts, logs, and learned state.
- Linux model first-use memory: the temporary sealed snapshot can equal one complete model footprint — up to 837.1 MB (798.3 MiB) for PII — in addition to ONNX Runtime session memory. The snapshot is released after session construction, and only one cold model is admitted at a time; another caller does not queue.
- No Docker required for the Agent Hook.
What gets installed
- Five binaries:
isonapse(the CLI),isonapse-hook(the thin per-event client Claude Code spawns),isonapse-controlplane(the local decision engine that runs as a daemon),isonapse-hermes-adapterandisonapse-pi-adapter. They are in Homebrew's managed prefix (Brew install) or~/.isonapse/bin/(script install).isonapse hook initvalidates and records the hook beside the invoked CLI. For future updates, see Update Isonapse. - The license and attribution files next to them —
LICENSE.md,THIRD_PARTY_NOTICES.md, andTHIRD_PARTY_DEPENDENCIES.md. - The Hook ADK, as
isonapse-adapter-toolkit.tar.gz: in$(brew --prefix)/share/isonapse/with Homebrew, or next to the binaries with the install script. Isonapse never runs it; you use it to connect an agent without a built-in integration, such as OpenAI Codex CLI. - Script-install archives are a closed, preflighted cohort. Before changing any installed file, the installer verifies the outer SHA-256 and a versioned manifest. The manifest binds the five binaries, updater, EULA, both notice files, archive README and Hook ADK toolkit to their exact modes, platform target, byte sizes, and SHA-256 digests. Missing, undeclared, linked, non-executable, wrong-target, or tampered members reject the whole archive and leave the existing install unchanged. The generated archive guide names the exact release, product and platform and how to install it. A release keeps the same signed archive on every channel that publishes it. The installer records your selected channel separately, then preflights a complete sibling directory—including its checksummed build identity, signature and channel record—under a shared per-install advisory lock and switches it as one cohort with the channel configuration. A pre-commit failure restores every prior byte; after a killed process, the next run resolves the retained identity-bound journal before contacting GitHub. Lock ownership also remains held by a foreground child that outlives a killed installer shell. Every installer/updater request also shares a bounded transport policy: ten seconds to connect, no more than five redirects, transient 408/429/5xx retries, and a 300-second maximum per operation including retries. After resolving any retained recovery journal, exhaustion prepares or commits no new cohort change and reports the channel/tag without exposing credentials. If metadata for the installed immutable release is missing or inaccessible, an ordinary update stops before installation because release order is unknown; only an explicit
--forcewaives that conflict. Authentication, transport, and transient-service failures remain non-overridable. - Your
~/.isonapse/state directory, a machine signing key, and a starter policy — and Isonapse registered as a Claude Code plugin (with--host, that host's plugin or extension instead). The Claude Code plugin's hooks-only manifest registers thirteen events, including configuration changes and turn stops, and invokes the local guard and control-plane client. Managed mode instead adds host permission rules and locks hook loading withallowManagedHooksOnly. - At
isonapse hook init: the 90.9 MB embedding model the control plane needs to start. Optionally, 1.877 GB (1.748 GiB) of on-device PII, prompt-injection, and NLI cross-encoder models viaisonapse hook intel download— skippable; the required embedding-backed learned gate still enforces without them. That command also repairs the required model if it is missing, making 1.968 GB the maximum transfer from an empty model directory.
License & attribution
Isonapse is governed by the Isonapse Public Beta EULA — the plain-language summary is on the beta terms page. Third-party notices for the bundled models and the open-source dependencies ship with every install (next to the binaries) and are available anytime with isonapse licenses.
Common questions
Is Isonapse open source?
The Agent Hook is not: the Hook, daemon and policy engine are proprietary binaries in signed releases under the Isonapse Public Beta EULA. The Hook ADK, which connects other agents, is open source under Apache-2.0. It ships inside current Agent Hook releases as isonapse-adapter-toolkit.tar.gz. Community Edition's server and dashboard images are proprietary too, under the same EULA.
What does it cost?
The public beta is free of charge for personal testing, research, internal demonstrations and internal, non-production evaluation. Production and commercial use are not covered; write to licensing@isonapse.com. Community Edition is free for evaluation under the Isonapse Public Beta EULA. Enterprise Edition will be commercial. The beta terms summarize the EULA.
Does it work with Codex or my own agent?
Claude Code, Hermes Agent v0.20.0, and pi 1.0.3, 1.0.4 and 1.5.0 are built in. OpenAI Codex CLI connects through the Hook ADK reference adapter, which the easy install sets up for you, for codex-cli 0.159.0 or newer and contract-tested on codex-cli 0.164.0 on macOS arm64 and Linux x86_64; Supported hosts shows what that covers. Other agents connect on macOS and Linux through an adapter you write or reuse with the Hook ADK, registered as a host profile.
Does it slow my agent down?
Ordinary RPCs have a 5-second budget. Only methods that can build a model session receive up to 45 seconds; daemon-start and all RPC work share one 50-second Hook deadline ahead of Claude Code's generated 55-second handler timeout. These are fail-closed bounds, not a promise that a cold load finishes within 45 seconds. Model setup, on-device inference, and the learning-readiness report share one non-queueing background lane, while everyday authorization, completion, and audit traffic stay responsive. Isonapse keeps at most one logical model session. Busy model-dependent detection or inference uses the local no-model fallback instead of waiting in a queue; a busy learning-readiness report fails visibly and asks you to retry.
Does my code or data leave my machine?
The Agent Hook uploads no user content or telemetry by default. If you explicitly configure an optional self-hosted receiver, Isonapse can send signed witness batches and enrollment metadata to that receiver. Model provisioning makes the required setup GET and the optional user-started GETs to Hugging Face. Separately, an opt-in hook start update check reads GitHub release metadata only; notify_on_update defaults off, and the check sends no user content. While a paired dashboard is open, Isonapse also reads public release information from GitHub at most once a day, sends no content of yours, and can be switched off on the Hosts page. Your agents may make their own policy-governed network calls.
The easy install, and isonapse server start and isonapse dashboard start, download the server and dashboard container images from GitHub's container registry. The server keeps its database, accounts, its own API keys and the records it receives in a Docker volume you control, and Isonapse never receives them. A Codex API key you enter on the dashboard's Hosts page goes from your browser to Isonapse on this machine and into Codex's own sign-in; the server never receives it.
What does the optional model download fetch?
The extra on-device ML models for smarter detection — recognizing personal data and injected instructions. (The small embedding model that compares actions to what you've approved before is fetched automatically at hook init.) It's a one-time 1.877 GB (1.748 GiB) download covering PII NER, prompt-injection detection, and the NLI cross-encoder. The models run entirely locally; skip them and the required embedding-backed learned gate still enforces, while the PII/injection detectors use local fallbacks and NLI entailment is unavailable.
Is this per project, or for the whole machine?
Both. Your user policy remains the machine-wide baseline. A repository can add restrictive rules in .isonapse/policy.lua, and learned history stays partitioned by repository. Run isonapse hook suggest --repo . --diff inside a project to draft its rules. A fresh clone inherits those restrictions; any rule that widens access needs an explicit trust grant bound to the exact policy bytes. Follow the project policy walkthrough.
What happens to my existing Claude Code setup?
Plugin mode registers Isonapse alongside your existing configuration. isonapse hook init --managed writes the active OS managed policy and first backs up any policy already at that path. Managed lifecycle permission is separate from OS authentication: protection-relaxing changes remain denied until enterprise approval support is available. Where an uninstall is authorized, it preserves those backups for deliberate administrator or MDM restoration rather than guessing which prior policy to restore.