Known limits

Limits of the agents, the operating systems, OpenShell and DefenseClaw that a setting cannot remove, what each one means and what to do about it.

These are limits of the agents, the operating systems, OpenShell and DefenseClaw itself that a setting cannot remove. Each entry says what to do. Which agent and feature runs where is on the support matrix.

Command reader limits

The deterministic hook reader covers common command forms. The optional LLM judge is the second layer for the forms below. A managed host's operating-system controls still apply on their own.

Limit
On Windows, statements after a subexpression prefix and junction references inside a Bash wrapper are outside the reader's proof.
A long script can exceed the self-protection reader's bounded analysis.
Some archive entries and later file moves cannot be tied together by the deterministic archive proof.
A path held in a shell variable populated by read is not fully resolved through a later write or copy, including on managed macOS.
A PowerShell scriptblock or leading unquoted call, and a shell function defined in an && list after a directory change, can hide later statements from the reader.
Case modification or pattern substitution used as a redirect target is outside the reader's proof.
Two ordinary copy commands with options and a dynamic destination can still be refused because the destination cannot be proved. Run them yourself or name a fixed destination.
Long PowerShell pipelines get the same bounded treatment as POSIX pipelines and can be refused when the reader cannot prove the full command.
The deterministic rules do not inspect a shell whose script comes from a here-string that contains a command substitution (bash <<< "$(...)") or from a process substitution (bash <(...)). When the LLM judge is on, it reviews these calls.

The MCP refusal wording can be less specific than the underlying reason; a refusal is still a refusal. See Fail modes for what the agent receives.

Platform limits

WhereLimitWhat to do
macOS per-userOn a per-user Mac, idle gateway memory can grow gradually with the audit store. Retention bounds the store but does not return all memory at once.See Local history.
Windows per-userOn per-user Windows, a redirect to a network share that responds slowly can receive a conservative reader decision.Check the destination and retry from a terminal.
Windows per-userOn per-user Windows, replacing the DefenseClaw home with a junction can leave the copied launcher unable to start doctor, setup or status. The gateway refuses to start in this state.Restore a regular home folder, then rerun the command. See Windows paths.
Linux per-userPerformance budgets assume x86 hosts with four vCPUs. A two-vCPU arm64 host can exceed hook latency and command-time budgets while remaining inside memory and restart bounds.Use a larger host for heavy agent work.
Windows per-userDuring a sustained hook flood, some calls can lack a completed audit row even when the agent received a decision.See Audit completeness.
Managed WindowsSetup checks a new hook image under a filtered copy of its own token, not as an enrolled user. Application control or EDR rules that name one user or group are not evaluated at install. If such a rule blocks the hook later, Claude Code and Codex run the tool call without a DefenseClaw decision, whatever the fail mode.For every enrolled user and group, allow C:\Program Files\Cisco\DefenseClaw and everything under it by path, or allow defenseclaw-hook.exe by its file hash. The release Setup is unsigned, so a signer rule does not match it. After an upgrade, check an audit row from an enrolled account. See Windows hook images.

Claude Code shell

Claude Code does not run its hook for a command you type with ! in shell mode, because shell mode runs no PreToolUse hook. DefenseClaw cannot inspect or block that command, so there is no hook decision and no hook audit row for it. This applies on every OS, to per-user and managed installs, in observe and action mode. It is a Claude Code limit.

On managed Linux the Tetragon runtime layer can still record it (hook_seen=false), see Coverage by layer. Use a normal Claude Code tool action when you need DefenseClaw to check a command. See Claude Code.

Codex

  • Cleanup refused by Codex: Codex's own command check can refuse a shell command that contains rm -f or rm -rf, even for build output inside your project. Codex shows rm -f style commands are not permitted. Use a safer approach and skips that step. It is a Codex limit, not a DefenseClaw block: DefenseClaw does not write this message, and its audit records the call as allowed with no DefenseClaw rule. Run the cleanup yourself in a terminal.
  • Stopped or timed-out pre-tool hook: Codex runs the tool when its PreToolUse hook is stopped, killed or times out. This is how Codex hooks work. If the hook stopped before it reached the gateway, DefenseClaw makes no decision and writes no pre-tool audit row. If it reached the gateway first, the gateway can still record the call, but Codex never gets the answer and runs the tool anyway. On a managed computer, status and verify report hook_process_fail_open and security_complete: false while Codex is enabled. Application control or EDR that stops users from signalling hook processes keeps them from stopping the hook. It does not prevent a timeout: Codex has no setting to deny a call on timeout, and its 30-second hook timeout only bounds the wait. See Known vendor limits.
  • First session after Codex sets up its sandbox on Windows: the first Codex session after the Sandbox ready step can refuse every shell command with approval required by policy, but AskForApproval::Granular.sandbox_approval is false. Codex does this with or without DefenseClaw: DefenseClaw allows the call, then Codex refuses it. It is a Codex limit. Quit Codex and start it again once; later sessions run commands normally.
  • Shared daemon keeps its model key: a running Codex app-server daemon keeps the model credential it started with. After you change or renew the key (for example a short-term Bedrock key), Codex calls fail with 401 until the daemon restarts. DefenseClaw's hooks still allow the calls. It is a Codex limit. Run codex app-server daemon restart from a shell that has the new key.
  • defenseclaw status inside an agent sandbox: inside an agent's sandbox (for example Codex's workspace sandbox on Linux), defenseclaw status shows Config check: not run because the sandbox hides who owns your folders. Your config is fine; run defenseclaw status in a normal terminal to check it.

See Codex.

Copilot CLI

  • Permission request not delivered: Copilot CLI can fail to deliver a tool's permission request, most often after a long model turn. The tool call fails with Session host did not acknowledge permission.requested delivery within 5 seconds and the turn stops. Esc and Ctrl+C may not end it. This happens with or without DefenseClaw's hook, and DefenseClaw gives no verdict for it. It is a Copilot CLI limit. Ask again; if the session stops responding, quit Copilot and start a new session.
  • Timed-out or failed pre-tool hook: Copilot CLI runs the tool when its preToolUse hook times out or cannot start, even when DefenseClaw's fail mode is closed. This is how Copilot CLI hooks work, and it applies to per-user and managed installs on every OS. If the hook never reached the gateway, DefenseClaw makes no decision and writes no pre-tool audit row. If it reached the gateway first, the gateway can still record the call, but Copilot CLI runs the tool anyway. A later permission hook may still deny the call on some Copilot CLI releases. On a managed computer, status and verify report hook_process_fail_open and security_complete: false while Copilot is enabled. See Known vendor limits.

See GitHub Copilot CLI.

Antigravity

Antigravity documents no deny when its PreToolUse hook times out or cannot start, so DefenseClaw cannot guarantee the call is stopped, even when DefenseClaw's fail mode is closed. This applies to every install on every OS that the connector supports. If the hook never reached the gateway, DefenseClaw makes no decision and writes no pre-tool audit row. If it reached the gateway first, the gateway can still record the call, but its decision never reaches Antigravity. On a managed computer, status and verify report hook_process_fail_open and security_complete: false while Antigravity is enabled.

Some Antigravity builds block the call when the hook is stopped, but that is not a vendor promise. See Antigravity.

Local Splunk

The local Splunk bridge works only with an x86_64 Docker engine, because the Splunk container image it runs is published for x86_64 (amd64) only. This is a Splunk image limit. On ARM64, use --enterprise with an existing Splunk HTTP Event Collector (HEC) endpoint. See Send to Splunk.

Managed Linux and macOS scans

The managed Linux and macOS packages (rpm, deb and pkg) install the skill, MCP and plugin scanners. An administrator runs them through the managed gateway, for example sudo /opt/defenseclaw/bin/defenseclaw-gateway scan skill PATH on Linux or sudo /opt/cisco/defenseclaw/bin/defenseclaw-gateway scan skill PATH on macOS. Two limits apply:

  • The gateway service cannot read home folders (on Linux /home and /root; on macOS /Users and /var/root) and, on Linux, temporary folders (/tmp, /var/tmp and /run/user). On macOS a folder in /tmp is scanned. Copy the folder somewhere every account can read, such as /opt/defenseclaw-scan, and scan the copy. The command names the folder it refuses.
  • A deployment installed from the payload archive (enterprise linux install --payload or enterprise macos install --payload) has no scanners. There, scan skill, scan mcp and scan plugin exit 3 and scan nothing. Install the package instead.

Standard users add MCP servers through the agent's own MCP configuration. See Scan a skill.

Managed macOS private agent scan

On managed macOS the scan of an account's private agent installs does not open the folders that macOS privacy protection holds for a background service. An agent copy kept in one of them is not found and not reported. This is a macOS limit.

macOSFolders the scan skips in each account
Every releaseDesktop, Documents, Downloads, Movies, Music, the Photos library, and the Mail, Messages, Safari and other personal-data folders under ~/Library
macOS 15.8~/Library: Accounts, AppleMediaServices, Assistant/SiriVocabulary, Autosave Information, ContainerManager, CoreFollowUp, DoNotDisturb, DuetExpertCenter, IntelligencePlatform, PersonalizationPortrait, Photos, Shortcuts, StatusKit, Trial, Weather, com.apple.aiml.instrumentation
macOS 15.8~/Library/Application Support: DifferentialPrivacy, FaceTime, FileProvider, com.apple.sharedfilelist
macOS 15.8~/Library/Caches: CloudKit, com.apple.HomeKit, com.apple.Safari, com.apple.ap.adprivacyd, com.apple.containermanagerd, com.apple.homed

On macOS 15.8 the managed scan also skips these folders because macOS holds them for a background service without a GUI session.

Scanners on macOS

On macOS, the skill, MCP and plugin scanners DefenseClaw starts run as you, with a timeout, and DefenseClaw ends the processes they start when the scan ends. A scanner process that detaches itself completely from the scan between DefenseClaw's process checks can escape that tracking and keep running after the scan and after defenseclaw-gateway stop. macOS gives an unprivileged program no race-free way to follow every process its children start. This is a macOS limit.

Use scanners you trust, and end a leftover scanner process yourself (Activity Monitor or ps -U $USER shows it).

Cisco AI Defense scanner analyzers

With the default cisco_ai_defense.endpoint, the Cisco AI Defense analyzer of the MCP scanner and of the skill scanner does not reach Cisco AI Defense. An MCP scan that uses it reports the scan as incomplete. A skill scan finishes without that analyzer's result. The other analyzers still run, and the Cisco AI Defense guardrail is not affected.

Hook floods on Windows

A sustained flood of tool calls is an agent loop or script that makes several calls a second for minutes. Interactive sessions are far below these rates.

  • Disk. On Windows, every hook decision adds to the account's audit database (audit.db), and a flood grows it for as long as it runs. Windows writes the database to disk more slowly than Linux and macOS. On a disk with slow scattered writes the write-ahead log (audit.db-wal) can also pass its 256 MiB alarm and hook answers can take seconds (Local history). This is a Windows disk-write limit.
  • Late answers. A call the gateway took but did not answer in time is blocked in every policy tier, never let through. A per-user hook says this account's gateway did not answer in time (it may be restarting or busy); a managed hook reports enterprise_managed_gateway_no_answer.
  • Rate. Each call costs CPU time, mostly for starting the hook processes, so a host with fewer cores keeps up with fewer calls a second. Past that rate, answers come late.
  • Memory. After a long flood the gateway on Windows keeps much of the memory the flood used. It keeps that memory until it restarts. This is a Windows limit. On Linux the gateway gives the memory back on its own.

What to do:

  • Slow automated loops down or batch their work, more so on a smaller host.
  • Keep enough free disk for the flood. Retention deletes events older than observability.local.retention_days (default 7) and frees their space. The defenseclaw.sqlite.wal.bytes metric shows the log size.
  • To give the memory back after a flood, run defenseclaw-gateway restart.

Audit log under sustained hook load

On every platform, the audit write-ahead log (audit.db-wal) is not bounded under a sustained high-rate flood of hook calls. Its 256 MiB size is an alarm threshold, not a disk limit. The log grows with the number of audit.db pages the hook calls change between syncs. On a disk with limited write operations it can grow far past that threshold. Every hook call is still answered, and the log shrinks once the flood stops.

  • Under a sustained flood, keep plenty of free space on the filesystem that holds the DefenseClaw data directory, beyond the size of audit.db itself, or slow the loop down.
  • The gateway warns when the log passes 256 MiB, repeats the warning every ten minutes while it stays over, and reports when it falls back under.
  • The defenseclaw.sqlite.wal.bytes metric shows the log size, and doctor reports low free disk space.

A bounded log needs a change to how audit and correlation records are stored, planned for a later release.

Many agents on one Linux host

On a per-user install on Linux, hook answers get slower as more agents work at once on each vCPU, so a busy host waits longer. On a managed host a call that waits out its answer window is blocked (Hook capacity on managed hosts).

Hook sizing

One interactive agent makes a few tool calls a second at most. Rates matter for many agents, or agent loops and scripts, on one host. The rate a host keeps up with grows with its free CPU cores, and a very large command, such as a long here-document, costs more time and memory to check in proportion to its size. A call past its answer budget follows the configured fail mode (Fail modes). Each hook call adds a row to the local audit store.

Past its rate a host answers late. A managed hook then blocks the call and says that DefenseClaw is at capacity, not that a policy blocked it. A per-user hook in the default fail mode lets the call run unchecked after its answer budget and records it.

To see whether a host is over its rate:

InstallWhere to look
Per-userdefenseclaw status and defenseclaw doctor
Managedenterprise <os> status and verify (warning hook_over_capacity)
EitherThe gateway /status document (hook_capacity) and the defenseclaw.hook.deadline_outcomes telemetry counter

They report the tool calls of the last hour that ran out of their answer budget or that the admission limits refused, with the busiest minute. If calls ran past their budget, run fewer agents or parallel tool calls at once, or use a larger host.

Hook capacity on managed hosts

A managed host fails closed. A native tool-call hook gives the gateway up to 3.5 seconds from contact, within a 4-second cap from hook launch, before it blocks with enterprise_managed_gateway_no_answer. When the gateway does not answer, the hook blocks only after that full wait. A heavy burst of parallel calls, a very large audit store, or the first cold start of the gateway after an upgrade can slow the gateway enough that some calls wait out the budget and are denied. An agent that runs a few tool calls at a time is not affected. To reduce the effect, lower the number of tool calls the agent runs in parallel, and:

  • Keep the audit store small: an administrator can lower observability.local.retention_days (default 7) in the managed config and apply it with enterprise <os> ensure (Local history).
  • Upgrade while agents are idle.

No-op ensure time on managed Windows

On managed Windows, an ensure that finds nothing to change (noop: true, noop_reason: compliant) still takes a while. It checks the installer files Setup carries against the trust mode the Setup was built for (the SHA-256 values in the Setup's own payload manifest for the released, unsigned Setup; a valid Authenticode signature for a signed one), runs the installer status and verify checks, and checks the SHA-256 of every file of the scanner runtime, so that a changed file is put back. The first ensure after an upgrade, and an ensure on a busy host, take longer. DefenseClaw keeps that full check: skipping it would let a changed scanner file run.

Give the MDM compliance script a generous time limit, and do not run ensure in a tight loop.

Linux sign-out

On Linux, the OpenShell gateway runs in your systemd user manager. Without linger, signing out of your last session stops the gateway and its MicroVMs, even when a disk sync failed, so unsynced work in the guest is lost. This is how systemd works: without linger it ends a user's services when their last session ends.

Save your work and stop the sandbox before you sign out, or ask an administrator to enable linger for your account with sudo loginctl enable-linger USER. See A Linux sign-out ends a running MicroVM.

Identity

On Linux, the gateway confirms an SSH session through systemd-logind, or through /run/utmp when logind is not running. utmp keeps only the first 32 characters of a user name, so for a longer directory user name the session cannot be confirmed without logind: audit events then omit defenseclaw.session.kind and client.address. Tool calls still run and are audited with the user's identity. This is a Linux limit.

Keep systemd-logind running on hosts where directory user names are longer than 32 characters. See Identity sources.

Per-user self-protection

On a per-user install the agent runs as the account that owns DefenseClaw's own files, SSH keys and agent instruction files, and the hook decides from the command text the agent sends. It recognises the common ways an agent could change DefenseClaw's own files, SSH keys or protected instruction files.

A change to DefenseClaw's own state is reported with every rule pack (rule tamper.detector_state_write): the strict pack blocks it in every mode, and the default and permissive packs (a managed computer on the default pack included) raise a HIGH alert and do not block it. SSH keys, authorized_keys and agent instruction files are protected in action mode.

A call that stops or disables DefenseClaw itself has the effect of writing its state, and two rules cover it:

CallRulePer-user default and permissivestrict pack
Stops or disables DefenseClaw (see the list below)tamper.defenseclaw_control_disableAlertBlock (also every managed install)
Names DefenseClaw but cannot be readtamper.defenseclaw_control_unprovenAlert (also the managed default pack)Block

Forms the reader cannot decide

Shell can express the same write in many ways, and some unusual forms are not recognised. These cannot be decided by reading the command:

  • Command text built when it runs. A command that joins strings, fills in variables or decodes a value while it runs, and then runs the result, has no fixed text for the hook to check beforehand.
  • A link made by git, then a write. A git command such as a pull or a checkout can create a symbolic link from the repository's content. A write later in the same command that goes through that new link can reach the file the link points to, because the link does not exist yet when the hook reads the command.
  • Link text with line breaks. A link whose text has line breaks is a limit of the command reader.
  • A socket opened from an interpreter command line. The deterministic socket rule recognises the minimal one-liner form only. Other spellings are left to the LLM judge.
  • PowerShell text sent to the Claude Code Bash tool on Windows. The Bash tool runs Git Bash, so DefenseClaw reads the call as Git Bash, and PowerShell cmdlet text with a comment that names a protected path is blocked. Run PowerShell commands through PowerShell.
  • Script arguments. A credentials file passed by name to a script (for example a Python or Node script) is not tracked as a read; DefenseClaw does not read the script's code.
  • A find -exec reader over another account's home. A find -exec reader over another account's home outside /home and /Users is not raised as a read of that account's credentials; use file permissions for shared or mounted homes.
  • A relative path to another account's credentials file on the LLM proxy. The LLM proxy does not know the working folder of a tool call, so a read that names the file by a relative path from that account's home is not raised there; the same read by an absolute path, ~user, a variable or a symlink is raised.
  • A here-document and a command chosen at run time. A command that feeds a here-document to a data reader and also runs a command chosen at run time, or has more statements after the reader, is judged at the unknown tier (an alert in default) even when the here-document holds only data.
  • A write target that needs many folder reads. When a write target pattern needs more folder reads to expand than DefenseClaw allows, the write keeps the protected-target verdict (a block), even when the pattern would reach only ordinary files.
  • A write target from an unset variable or substitution. A write whose target comes from an unset variable, a command substitution or a default expansion is judged by what DefenseClaw can resolve; when that reaches no protected file, the write is allowed.
  • Routine administration that is also an attack step. DefenseClaw alerts, without blocking, on some routine administration that is also a known attack step: granting file capabilities or making files world-writable, reading a process environment, destructive SQL statements, and in strict mode reading .env files. Review these alerts in the context of the task.
  • Removing hooks on Windows. On Windows, removing DefenseClaw hooks from an agent with many configured hook entries can take a while.
  • A Git Bash file reached through the working folder. On Windows, a Git Bash command that reaches a file through the shell's working folder ($(pwd)/, ~+/, or a HOME set from it at run time) is not judged as that file; name the file directly.
  • A command joined to other statements. On Windows, a command joined to other statements in some list forms (a background &, a subshell, or a here-document on the same line) may be judged without the context of the other statements.
  • Deeply encoded PowerShell. A PowerShell script that is encoded three or four times inside other encoded launchers is read, and its findings are recorded, but a finding that needs proof from the decoded script may alert rather than block; deeper nesting is blocked as over the evaluation limit.
  • Response checks across adjacent fields. Response checks read every text field of a reply, one field per line, so a pattern that allows whitespace or a line break between its parts can match across two adjacent fields.

Perl open modes. A Perl program that decides an open mode in a way the hook cannot compute is recognised, not missed, and the hook does not let it through unchecked. The hook reports the unproven write and asks for a literal path or a command split into simpler steps.

  • DefenseClaw reads the inline Perl program only; a file the program loads with require or do can change values the hook cannot see, so an open of a hook file whose mode depends on such a file is reported as an unproven write.
  • Subroutine and constant definitions made inside a string eval are not evaluated; an affected open of a hook file is reported as an unproven write.
  • A Perl open mode changed by anything other than a plain assignment is not computed; the open of a hook file is reported as an unproven write.

Harmless commands that are blocked

A few harmless commands are blocked because their text matches a protected write and the hook cannot see what they do when they run:

  • a link to the SSH folder or to DefenseClaw's state made in a project, and a move in the same command as such a link;
  • a move inside a linked folder whose entries are links to the SSH folder or to DefenseClaw's state;
  • find -exec mv into a link that the same command makes;
  • a project script run by a relative path after cd, in a command that also makes a link;
  • cp -s with a source built by command substitution;
  • rsync of the whole SSH folder (cp -a and tar of it block too);
  • a ~ path after the command sets HOME.

Run such a step yourself, or give the agent a command of its own that names the real path.

Second layer and managed installs

The LLM judge (the LLM guardrail) is the second layer for protected-file access. If you need more than the command reader gives, turn it on; see LLM judge.

On a managed install DefenseClaw's own state is owned by root or SYSTEM, so these commands cannot change it. A user's own files, such as authorized_keys, are as exposed as on a per-user install. The managed gateway cannot read the user's home, so it judges links there from what the hook reports. A few link forms of a write to authorized_keys (an existing link moved and then written through, a relative link made from the home) and some PowerShell writes to it that a per-user gateway blocks can run on a managed install. The LLM judge is the second layer for them. Check for links in repositories you pull. For what DefenseClaw repairs afterwards and what to protect yourself, see Protected files in action mode under Security.

Upgrade and policy limits

  • Managed policy before launch: on managed Linux, macOS and Windows a managed agent loads its DefenseClaw hook from the machine policy when it starts. A standard user can start the agent in a private view of the files: a user and mount namespace or a process tracer such as PRoot on Linux, a sandbox profile on macOS, a process device map on Windows. This is an operating system limit: the system lets users change what their own processes see.
    • On Linux and macOS that view can hide the machine policy. The agent then runs without its hook, so DefenseClaw does not see or audit its tool calls, and status and verify cannot see inside that one process.
    • macOS has no setting that stops a user's sandbox profile, and its status and verify stay healthy while such an agent runs.
    • On Windows a user's private device map does not change what the agent reads.
    • On Linux, status and verify warn unprivileged_user_namespaces while the kernel allows these namespaces and unprivileged_ptrace while standard users can trace their own processes, and report security_complete: false. An administrator can set user.max_user_namespaces=0 and kernel.yama.ptrace_scope=2 after testing the host's workloads (Linux user namespaces, macOS machine policy, Windows machine policy).
    • Keep Unix policy files owned by root and Windows machine policy protected by the installer. Use the agent's doctor check where available. Before use, ask an administrator to run the policy verification for that OS and repair any missing hook.
  • Hermes config changed and put back quickly: on a managed computer Hermes reads its config from a file the user owns. If that file is emptied and put back within about 3 seconds, before the guardian's next check, one Hermes session can start without the DefenseClaw hook. The guardian repairs the file at its next check and records the change in the audit log. This is a limit of an agent config the user owns.
  • Windows upgrade and rollback return before the installer finishes: on Windows, defenseclaw upgrade and defenseclaw rollback hand over to the installer in a new window and return at once. Exit code 0 means the installer started, not that it finished, because the installer must replace the Python environment the CLI runs from. The result is shown in that window and saved in %USERPROFILE%\.defenseclaw\logs\install-<time>.log. A script that needs the result runs the installer itself in its own terminal, for example powershell -NoProfile -ExecutionPolicy Bypass -File <install.ps1> -Rollback -Yes, which waits and sets the exit code.
  • Legacy MicroVM guests: a MicroVM sandbox that an earlier DefenseClaw started on OpenShell 0.1.3 or older keeps running after the upgrade. DefenseClaw closes its egress proxy, withdraws every OpenShell network rule and provider of it, adds none back (approvals included) and reports it as not protected. But withdrawing those rules does not contain the guest's old OpenShell network broker, which passes a connection it cannot inspect straight to the host (NVIDIA/OpenShell#4494), so treat the guest's network as open until it restarts. DefenseClaw does not stop it for you, so as not to lose work it has not synced. Restart it once DefenseClaw has withdrawn its rules: save the work you need, then run defenseclaw sandbox stop NAME and defenseclaw sandbox start NAME (or delete for one whose workload ended). Its next session runs on the current supervisor with its network restored. This is an OpenShell 0.1.3 limit; see A guest from OpenShell 0.1.3 or older keeps its network after its rules are withdrawn. Run defenseclaw sandbox status NAME to check the guest's state and why it stopped, then:
    • Ready: save accessible work outside it, then run defenseclaw sandbox stop NAME and defenseclaw sandbox start NAME. This keeps the guest. The stop syncs the guest's disk first. If that sync fails (a frozen guest, for one), the stop is held and the guest keeps running: sandbox NAME was not stopped: its MicroVM's disk could not be synced first. defenseclaw sandbox stop NAME --discard-unsynced stops it anyway and loses what it wrote since its last sync; the activity feed then shows stop_unflushed. See A MicroVM stop is held because its disk could not sync.
    • Completed, or main process failed, with the VM still running: OpenShell 0.1.5 neither stops nor restarts such a MicroVM. Its start (defenseclaw sandbox start NAME --end-vm, or openshell sandbox start NAME for a raw sandbox) fails with Conflict and leaves it starting, where stop is refused too. Save or sync any work you can reach first and keep the VM while you need what it holds (it keeps the OpenShell gateway, so upgrades and gateway restarts wait). Only then delete it with defenseclaw sandbox delete NAME (or openshell sandbox delete NAME), which deletes it and its work.
    • On OpenShell 0.1.3: recreate a legacy guest only if it is completed or in an error state and its VM has not exited. Save accessible work outside it before running defenseclaw sandbox delete NAME; deletion removes the guest and its work.
    • VM process exited: run defenseclaw sandbox stop NAME and defenseclaw sandbox start NAME. For other states or errors, follow the recovery advice from status.
  • Managed upgrades: if the administrator explicitly chose to allow gateway outages, an old hook already in flight or a plugin still loaded by an agent may let a call run while the gateway is stopped. Stop agent sessions before upgrading and keep them stopped until the gateway is healthy, then start new OpenCode and Amp sessions. During the upgrade the old gateway can keep answering hook calls until the package replaces it. It does not wait for the hook to confirm that it used the answer, so if a call timed out in the hook and was blocked, the old gateway's audit row can still say allow. On a current install, the gateway records such a call as unconfirmed. See Managed hook limits.

Agent messages that are not from DefenseClaw

These messages come from the agent, its installer or its own command checks. DefenseClaw did not make that decision, and its audit log has no block for it. Check defenseclaw-gateway audit export --output - (or the TUI Audit panel) when you are not sure.

AgentMessageWhat it means and what to do
CodexModel metadata for <model> not found. Defaulting to fallback metadataCodex has no built-in metadata for a Bedrock model such as us.openai.gpt-5.6-luna and uses its defaults. Model turns work. Nothing to do.
CodexStartup offers to restart a shared daemon (for example to turn off api_key_model_discovery)The running Codex app-server daemon has other settings than this session asks for. Run without the daemon this time to leave other Codex sessions alone, or restart the daemon when no other session uses it.
Codexsandbox_approval refusals, a read-only .git/hooks or no network in a Workspace (granular) sessionCodex's own workspace sandbox refuses these steps; DefenseClaw allowed the call. /status in Codex shows the sandbox. Change the Codex sandbox or approval setting, or run the step in a terminal.
Claude CodeAuto-update failed: no write permission to npm prefixClaude Code is installed in an npm prefix your account cannot write. Ask the administrator who installed it to update it.
Claude CodeUnknown command: /NAME for a new project skillClaude Code loads a new skill only when it starts. Restart Claude Code.
Claude CodeContains brace with quote character (expansion obfuscation)Claude Code's own permission prompt labels some literal JSON or heredoc text this way. Read the command and allow it once if it is what you want.
GitHub Copilot CLIIts automatic update fails with EACCESCopilot cannot write its machine-owned install folder. Ask the administrator who installed it to update it.
Copilot CLIThe path-access dialog lists command words such as exit, test or run as pathsThat is how Copilot's dialog reads a shell command. Check the real project path in the dialog.
Copilot CLIModel "<model>" is not in the built-in catalog. Using defaults for: prompt tokens ..., output tokensCopilot has no catalog entry for the Bedrock model and uses default token limits. Set COPILOT_PROVIDER_MAX_PROMPT_TOKENS and COPILOT_PROVIDER_MAX_OUTPUT_TOKENS if you need other limits.
HermesSecurity scan — [HIGH] Pipe to interpreter, Nested executable body could not be resolved, The command is blocked followed by auto-approved by smart approval, or a Dangerous Command prompt that names TirithThese come from Hermes's own command scanner (Tirith) and SmartApproval. If you deny such a prompt, Hermes can then say DefenseClaw blocked the step; the DefenseClaw audit shows its real decision.
HermesThis foreground command appears to start a long-lived server/watch processHermes's terminal policy refuses a foreground command such as npm start. Run it in the background as Hermes suggests, or run the program directly.
Hermesnode not available (Hermes-managed Node not installed) from its file lintHermes's linter looks for its own Node, not yours. Your Node builds and tests still work.
Hermespygount: command not found in its inspection skillThe bundled skill uses the optional pygount tool. Install it, or let Hermes use its fallback.
Hermespm-runtime: invalid package install stamp, or Permission denied on .install.lock when you add an MCP serverHermes cannot read or create its own runtime files for your account, often in a shared Hermes install. Check the path, owner and permissions the message names. See Hermes limits.
OpenCodenpm warn install-scripts: postinstall ... is not covered by allowScripts during npm install -g opencode-ainpm reports the package's install script. The CLI works (opencode --version).
OpenClawIts coding-agent skill runs codex exec --full-auto or puts pty:true in a shell command and failsThe bundled OpenClaw skill does not match the installed Codex CLI. The model can still run Codex directly.

Sandboxes

  • Raw OpenShell during a gateway restart: a sandbox you start with a raw openshell command while DefenseClaw sets up, upgrades, restarts or rolls back the OpenShell gateway is not held back. DefenseClaw's lock covers only DefenseClaw commands, and OpenShell has no admission barrier that raw clients honor. DefenseClaw checks before the change and stops when it sees such a sandbox. On an upgrade, DefenseClaw's last check runs before NVIDIA's installer runs, not right before the restart: the installer restarts the gateway itself, after its download and install, so a raw sandbox started while the installer runs is not seen. A restart or rollback DefenseClaw makes itself checks again right before the restart. In both cases, one started after the last check is ended by the restart and loses work it has not written to disk. This is an OpenShell limit. Do not start raw openshell sandboxes until the DefenseClaw command finishes. See A raw openshell sandbox stops a restart or rollback.
  • Rejected model key in a sandbox: a rejected model key (for example an expired short-term Bedrock key) is named in the sandbox's feed and status when the agent's turn ends on it. Claude Code retries a rejected request for several minutes before that, and neither its hooks nor OpenShell's records report the rejection earlier, so DefenseClaw cannot warn before the retries end.
  • No network cutoff for a contained MicroVM: if DefenseClaw cannot confirm that OpenShell withdrew a contained VM's network rules (the OpenShell gateway does not answer, or a global OpenShell policy stops the change), the VM stays reported as unprotected and new DefenseClaw runs are refused, but its network may still work. The user-level DefenseClaw daemon has no host packet filter, and OpenShell has no VM pause or network-off operation. This is an OpenShell and platform limit. Treat the network as available until the withdrawal is confirmed, save the work you need, then decide whether to end the VM. See A contained VM has no confirmed network withdrawal.

Known issues

These are bugs in the current release. Each says who is affected and what to do now.

Agents and hooks

  • Copilot CLI can refuse some file creates: on Linux and macOS, Copilot CLI 1.0.109 and later can refuse some file creates in action mode, reported as a tool call DefenseClaw could not read. A fix is planned for the next release.
  • Kiro edits can be blocked: on Linux, macOS and Windows, Kiro CLI 3.3 and later (3.8.0 included) can send file edits that this release does not read, so action mode blocks those edits. Use observe mode for Kiro until the fix, planned for the next release.
  • Busy hosts: when many agent sessions start at once or the CPU is saturated, a few ordinary calls can be denied with "gateway is running but did not answer", "hook client disconnected before the gateway decision was delivered", or on managed Windows after an upgrade runtime_state_invalid once a minute. Retry the call, and don't start many sessions at once on a small host.

Fail mode and outages

  • OpenCode and Amp keep their start-up state: a session started while the gateway was down keeps blocking after the gateway is back, and a running OpenCode session keeps the outage mode it loaded with. Restart OpenCode or Amp after the gateway is healthy and after you change the fail mode or policy.
  • Outage warnings: check defenseclaw status after an outage; each unchecked call is in ~/.defenseclaw/logs/hook-failures.jsonl. How each agent shows the warning:
AgentOutage warning in the session
Claude CodeOnce per session, with the session's first prompt or tool call, in the terminal
CodexOnce per session
Copilot CLIOnce per session, under the first tool call's output (expand the tool output to read it)
OpenCode V2Added to the tool call's result
HermesNone in the chat
Claude Desktop's CoworkNone anywhere in its window. Check Cowork with defenseclaw status, defenseclaw doctor or the TUI

Action mode

  • Ordinary work blocked: action mode can block a few benign commands as an SSH key write: a bare alias definition such as alias ll=ls, some PowerShell if blocks, and on Windows some Codex apply_patch edits that name the file through a PowerShell variable. Observe, the default, only reports them. On a per-user install, switch that agent to observe while you work: defenseclaw guardrail mode observe --connector NAME.

Security

  • Protected files in action mode: on a per-user install the agent runs as the account that owns SSH keys, authorized_keys, agent instruction files and DefenseClaw's own state. Action mode blocks the commands it recognises (for DefenseClaw's own state, with the strict pack; the default and permissive packs alert), and some indirect forms can still get through. DefenseClaw's hook guard and defenseclaw doctor detect and repair a change to its own state afterwards. Managed installs protect that state with operating-system ownership and permissions. Per-user self-protection lists the commands the hook cannot decide by reading them.
  • Don't rely on DefenseClaw alone for these files: keep SSH keys passphrase-protected and file permissions tight, and review changes to CLAUDE.md, AGENTS.md and SOUL.md (for example with git diff). defenseclaw rollback refuses a saved installer whose digest changed.