Install from the command line
The Agent Hook alone, without Docker: install, initialise once, connect your agent, and see it work.
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 report --detailsStep 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://get.isonapse.com/install.sh?from=site" | 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.4.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 report --detailsNote 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.Plain
isonapse hook reportopens with a short per-host summary;--detailskeeps the full counters used here, and--jsongives scripts structured counts and findings. A host filter narrows the 24-hour receipts; lifetime learning and policy-suggestion counts remain machine-wide. - 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 masks detected personal data in selected successful Read, WebFetch, Bash and MCP results before the next model request. - 4
Read the report again
isonapse hook report --detailsBoth 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.
Stuck? Help finds the message you see.