Repository navigation
ACC 0.5.2
Removes two costs an agent paid on every peer exchange, and cuts the repetition out of the skill it reads.
Where this came from
A live Codex session was asked, over ACC, to read its own acc doctor and report one line back. It did — and its transcript showed two calls that could not have been needed: doctor run with --session/--generation, which that command refuses, and inbox --message on a message it had already been handed whole.
Neither was a CLI defect. Every command that acts as a participant takes the credential pair and every command that acts on the installation refuses it, which is the split the CLI's own help already prints. The strictness behind the refusal is load-bearing elsewhere: a message body legitimately begins --- a/file, and the parser tells that from a typo by checking whether the token names a real option of the command.
Both costs were in what the skill said.
What changes
The credential rule says what the arguments mean. It was scoped to "the CLI examples below", which gave an agent no way to know that some commands refuse the pair. It now says the arguments name the participant that is calling, and that such a refusal is about the command rather than about the credentials. No machine-level command is named on purpose: a skill that taught those would have models running the installer.
A message delivered whole is not fetched again. "Fetch the selected message before acting on its contents" read as a rule while its exception — an injected peer block is already the complete body — sat eight lines lower and read as an aside. They now sit together.
Each adapter installs one shim, and the skill's examples name it. The examples carried the whole invocation — a data home, an interpreter and a script, up to 186 bytes repeated twenty-three times — because the command has to run where acc is not on PATH. That is not padding: a skill that once said acc led a Claude Code session that could not find it to read the store's JSON, work out the schema, and write records and events by hand, inventing an event type, a harness name and its own generation tokens.
One absolute path says the same thing. The shim holds the pinning and resolves nothing through PATH, tries the pinned pair first and then the same fallbacks the hook shim uses, and — unlike a hook — exits non-zero and says what is missing, because an agent told nothing went wrong is exactly the case that produced those hand-written records.
| Client | Before | After | Saved across 23 examples |
|---|---|---|---|
| Codex | 186 bytes | 78 | ~690 tokens |
| Claude Code | 125 bytes | 84 | ~262 tokens |
The shim is per adapter rather than per machine: one client pins a data home because its sandbox scrubs the environment, and another deliberately leaves it unset so an operator's own ACC_DATA_HOME still wins. A single shared shim could not honour both.
Verified
Installed-package verification includes the uninstall round trip that restores the client home byte for byte, which is what shows the new shim is removed with everything else. 27 of 27 packed managed-runtime checks passed, and the full suite passed with 2,124 tests and one skip.
tests/process/skill-command.test.mjs no longer looks for a path in the skill's text. It takes the path the skill names and runs it, so what an agent copies is what the test executes. See docs/release-evidence/v0.5.2.md.
Upgrading
acc update rewrites each client's skill and shim. Nothing needs re-trusting: a hook's command names the managed runner rather than a version, so the trust hashes do not move.