ACC 0.1.7: Guarded claims block shell writes

ACC 0.1.7 makes a guarded claim also stop recognised shell writes such as redirects and sed -i, on all four clients. Closes a claim-guard gap.

Released

Before ACC 0.1.7, a guarded claim stopped a file edit and nothing else. The shell went straight through it, on all four clients, in a workspace that ACC reported as protected. ACC 0.1.7 reads a shell command for the writes it can recognise and blocks them when another agent holds the claim. This closes a gap in the claim guard. The release belongs to the ACC 0.1 line and was released on 2026-08-26.

Who is affected#

Everyone who relied on guarded claims on 0.1.0 to 0.1.6. Agents in these harnesses are told to prefer the shell for file edits, so the uncovered path was the default one. Codex users also met the side effect of the uninstall change described below.

What changed#

The gap. The guard read the path from the arguments of an editing tool. A shell call declares no path. A live Codex session appended a line to a file that another agent held:

printf '%s\n' '// via shell' >> src/parser.mjs

The line landed. sed -i, mv, rm and git restore behaved the same way. Skipping the shell had been a deliberate decision. A path guessed out of a command blocks work at random and still misses real writes. The decision did not account for agents that use the shell by default.

The fix does not guess. ACC reads a command only at positions where a write is unambiguous:

ACC sees ACC does not see
> file, >> file, 2> file < file, 2>&1, /dev/null
tee, touch, truncate, dd of=, rm, mv, cp, ln, install cat, grep, wc
sed -i, perl -i sed without -i
git restore, git checkout -- git diff, git log -- path

Quoted text is text, and a heredoc body is content. Every command in a chain or pipeline is read, not only the first. Anything ACC cannot parse yields nothing instead of a guess. ACC never reports a read. A guard that blocked reading would be a worse regression than the hole it closes.

Coverage is partial on purpose. A language runtime that opens the file itself is still unseen. The context that ACC injects into a turn now says so where an agent reads it:

- file edits are blocked; edits made through a shell are not
+ file edits and recognised shell writes are blocked; a runtime can still get past

The old line was honest about the gap. Read by an agent that is told to use the shell, it amounted to directions around the guard.

Two smaller changes. acc release --resource gives a claim back the way it was taken. Before, you needed a round trip through acc status --json for an id you never chose. The id still works, and it stays the precise answer when an authority releases someone else's claim. Second, acc uninstall started to remove the trust records that Codex keeps for ACC's hooks. The belief behind it was that they were harmless leftovers, and that belief was wrong. See "Later changes".

Verification. The release was checked on the published package with a live Codex client. A shell write to a claimed file was blocked and the file stayed unchanged. Reads through the shell, cat and grep -c, were not blocked. After acc release --resource, the identical shell command changed the file. The last step separates a guard from a breakage, because a hook that denied everything would pass the first step alone.

What to do#

npm install -g agents-can-communicate
acc install

Running agents pick up the guard on their next hook run. Keep in mind what the guard does not cover: runtimes that open files themselves, and shell commands whose write target ACC cannot read from the command line.

If you use Codex, upgrade to 0.1.11 or later before you run acc uninstall followed by acc install. On 0.1.7 to 0.1.10, that pair switches off the Codex write guard.

Later changes#

  • The trust-record removal that shipped in this release switched the Codex write guard off after an uninstall followed by an install. ACC 0.1.11 stopped removing those records. The 0.1.11 notes name 0.1.9 as the origin. The code and the 0.1.7 changelog entry show it started here. See ACC 0.1.11.

Sources#