Repository navigation
Releases
v0.14.2
Harness evidence refreshed for current builds
0.14.2 is a maintenance release. Decoding, effects, capabilities and generated-artifact shapes are unchanged, and a project synced with 0.14.1 keeps working as it did. The release refreshes the recorded evidence for the newest harness builds, makes OpenCode v2 playback follow two 2.4.x harness changes, and brings the toolchain and release checks up to date.
What is included
- OpenCode v2 playback follows 2.4.x. On 2.4.0, a background child's result reaches the parent as a user-role
<background-result kind="subagent" ...>message instead of<subagent ...>, and each remote MCP server receives aserver/discoverPOST beforeinitialize. The playback lane now derives the expected wrapper from the build's validation record, asserts the discovery POST, and still requires exactly one failedinitializeon the legacy SSE endpoint with no fallback GET. New records and fixtures cover 2.4.0 and 2.4.1 (capture record). No decoder, shim or capability cell changed. - Validation records refreshed. Scheduled model-free playback recorded Claude Code 2.1.330, Codex 0.171.0, GitHub Copilot CLI 1.0.114, OpenCode 1.19.6 and Pi 1.6.0. The drift lane's new OpenCode payload variants — the shell
execute.beforeandexecute.aftershapes and the context callback's messages and tools — are now committed fixtures (capture record); which build changed each field is not established. The variants are preserved raw, and no normalized view reads them. Recommended ranges, reference builds and support levels are unchanged. - Toolchain updates. pnpm 12.23.0, Vitest 5.1.1 and typescript-eslint 8.73.0. The three minimatch catalog overrides were removed because every lint-tooling consumer now declares a patched 11.x line itself, and the catalog stays at
^11.0.9, so GHSA-g3hv-75wg-m249 remains covered (dependency notes). - Release checks. The CI sidecar probe now records every request that reaches its stub and fails with exit 3 unless each case arrives as a single chat-completions request with exactly one leading system message and no
reasoning_effort. It also pins the thinking request shape that Claude Code 2.1.330 uses, so a proxy or model-shim regression surfaces in the required Ubuntu lane instead of a paid drift run (harness-watch). - Repository housekeeping. A new
dependency-upgradesskill documents the Renovate and harness-watch workflow, and the Windows PowerShell streaming test now writes until it reaches 20,000 lines rather than stopping at a 10-second cap, so a slow runner cannot fail it on line count.
Upgrading from 0.14.1
-
Upgrade the SDK and the CLI together. Keep
@hooknostic/sdk,@hooknostic/agent-pluginand thehooknosticCLI on the same release; the CLI warns HN110 when it and the project's SDK differ. To upgrade:npm install --save-dev @hooknostic/sdk@0.14.2 hooknostic@0.14.2
With pnpm, run
pnpm add -D @hooknostic/sdk@0.14.2 hooknostic@0.14.2, adding--allow-build=esbuildif the project has not allowed esbuild's install script yet. -
Rebuild or re-sync. Generated artifacts carry the release version, so their bytes change with the upgrade even though their shape does not. A project already synced with 0.14.1 needs no re-sync; the new version is recorded on the next build or sync.
Limits
- Validation evidence, not new capability. The refreshed records are model-free playback and loopback captures. They confirm the current builds against existing behavior; they do not widen a recommended range, raise a support level, or establish a new capability.
- OpenCode 2.4.x discovery is asserted, not implemented. Playback answers
server/discoverwith an empty result, as the captured harness interaction did. How a real 2026-07-28 MCP server answers discovery, and what OpenCode does with a non-empty answer, was not probed. - The new raw shapes stay raw. The added shell and context fields captured from the 2.4.1 watch run are committed as fixtures only; no normalized view or effect consumes them. Consumers that read
event.rawsee them unchanged. - Thinking routing is recorded, not re-probed on the paid lane. The sidecar probe pins Claude Code 2.1.330's adaptive-thinking request shape. The paid drift lane has not been rerun, and a Claude Code release that switched to enabled thinking would pass the pre-drive probe before failing on the drive.
Start with the README; the release runbook describes preparation, draft creation, and publication.
Harness support
| Harness | Recommended target range | Validated ranges | Reference build |
|---|---|---|---|
| Claude Code | >=2.1 <3 |
>=2.0 <3 |
2.1.238 |
| Codex CLI | >=0.148 <1 |
>=0.140 <1 |
0.148.0 |
| GitHub Copilot CLI | >=1.0.101 <2 |
>=1.0.101 <2 |
1.0.101 |
| OpenCode | >=1.18 <2 |
>=1.10 <2 |
1.18.18 |
| OpenCode v2 | >=2.0.17 <3 |
>=2.0.17 <3 |
2.0.17 |
| pi | >=1 <2 |
>=0.84 <1, >=1 <2 |
1.3.0 |
What's Changed
Other changes
- harness-watch: claude 2.1.330 playback validation by @roryeckel in #305
- harness-watch: codex 0.171.0 playback validation by @roryeckel in #307
- harness-watch: copilot 1.0.114 playback validation by @roryeckel in #308
- harness-watch: opencode-v1 1.19.6 playback validation by @roryeckel in #306
- harness-watch: pi 1.6.0 playback validation by @roryeckel in #304
- chore(deps): update ci and tooling (non-major) by @renovate[bot] in #302
- chore(deps): update npm dependencies (non-major) by @renovate[bot] in #301
- Pin LiteLLM shims in the sidecar probe; drop redundant minimatch overrides by @roryeckel in #309
- fix(opencode-v2): track 2.4.x subagent wrapper and MCP discovery in playback by @roryeckel in #310
- docs(skills): add dependency-upgrades skill by @roryeckel in #311
- test(scripts): let the streaming test's lane reach 20,000 lines however slow the runner by @roryeckel in #312
Full Changelog: v0.14.1...v0.14.2
Direct commits
Release v0.14.2 (#313) (c0cfaba)
-
docs(release): prepare 0.14.2
-
chore(release): 0.14.2
Co-authored-by: release-prepare <release-prepare@users.noreply.github.com>
v0.14.1
Durable project writes on Linux, and a lock that cannot be half-created
0.14.1 is a fix release. 0.14.0 flushed a file's contents before reporting the write, but a rename becomes durable only once its directory's entries are: a power loss could still lose a completed sync, or bring back a journal a recovery had just removed. sync and recover now flush the directories their renames and removals touch, in an explicit order, before they remove the transaction journal. Lock creation is atomic as well: the PID is written and flushed to a staging file, then published with a hard link, so on a filesystem with hard links a half-created lock is unobservable. ADR-0015 records the amended durability rule.
What is included
- A completed write survives a crash (Linux). After the journal is in place,
syncflushes.hooknosticand then the project root, replaces or removes every destination, flushes each touched destination directory once — including every newly created ancestor of a nested output — removes the journal, and flushes.hooknosticonce more as the commit point. - Recovery flushes before it forgets. Before removing the journal,
recoverflushes every existing ancestor, through the project root, of every validated journal entry, including entries already at their preimage, plus every directory it created while restoring. A retried recovery after a failed flush therefore cannot discard the journal while the rollback is not durable. - The flush cannot be redirected by a symlink. Linux uses a descriptor-relative walk through
/proc/self/fdwithO_NOFOLLOW | O_DIRECTORY. A component swapped for a symlink fails withELOOP/ENOTDIRinstead of being followed, and a pre-unlink failure keeps the journal unless rollback completes. There is no absolute-path fallback. - A failed rollback is reported as such. A pre-commit flush failure aborts the sync and attempts rollback. If rollback also fails, the error names both failures and the remaining journal, and tells you to run
hooknostic recoverwith the same configuration instead of replacing the original error. - A lock is created in one publication step. The lock's PID is written and flushed to
.hooknostic/staging/lock-<uuid>, then linked into place;renameis not used because it would replace a peer's live lock. Filesystems without hard links fall back to the previous exclusive create. - The empty-lock message is now accurate. An empty
sync.lockorrecovery.lockis still refused and still has to be deleted by hand, but the message no longer claims a current hooknostic can leave one: only an older hooknostic, another tool, or a filesystem without hard links can.
Apart from the new flush and rollback errors and that message, no CLI surface or generated-artifact shape changes; the rest of the release is test and CI hardening.
Upgrading from 0.14.0
-
Upgrade the SDK and the CLI together. Keep
@hooknostic/sdk,@hooknostic/agent-pluginand thehooknosticCLI on the same release; the CLI warns HN110 when it and the project's SDK differ. To upgrade:npm install --save-dev @hooknostic/sdk@0.14.1 hooknostic@0.14.1
With pnpm, run
pnpm add -D @hooknostic/sdk@0.14.1 hooknostic@0.14.1, adding--allow-build=esbuildif the project has not allowed esbuild's install script yet. -
Rebuild or re-sync. Generated artifacts carry the release version, so their bytes change with the upgrade even though their shape does not. A project already synced with 0.14.0 keeps working; the new durability applies to writes made after the upgrade.
-
An empty lock from an older release behaves as before. Confirm no
syncorrecoveris running, delete the file, and rerunrecover.
Limits
- Directory flushing is Linux-only. Windows, macOS, FreeBSD and Linux hosts without working
/proc/self/fdtraversal skip it, as do filesystems that cannot flush a directory (EINVAL,EISDIR,ENOTSUP,EOPNOTSUPP,ENOSYS). Rename durability there remains the filesystem's guarantee. On Windows, Node can open a directory butfs.fsyncon it fails, and although Win32 hasMOVEFILE_WRITE_THROUGH, Node does not expose it throughfs.rename. - The guarantee starts below the opened project root. The root is opened by absolute path; its ancestors must stay stable. Path-based recovery metadata checks, renames and removals are outside the descriptor walk. Network and FUSE filesystems may honour descriptor flushes differently.
recovercannot see another environment's process. A process in WSL, a container or another host that shares the checkout cannot be seen, and its lock looks abandoned. Runsyncandrecoverfrom one environment at a time.- Filesystems without hard links keep the weaker lock creation. The exclusive create cannot overwrite a live lock, but a process killed between creating and writing it can leave an empty one, which
recoverstill refuses.
Start with the README; the release runbook describes preparation, draft creation, and publication.
Harness support
| Harness | Recommended target range | Validated ranges | Reference build |
|---|---|---|---|
| Claude Code | >=2.1 <3 |
>=2.0 <3 |
2.1.238 |
| Codex CLI | >=0.148 <1 |
>=0.140 <1 |
0.148.0 |
| GitHub Copilot CLI | >=1.0.101 <2 |
>=1.0.101 <2 |
1.0.101 |
| OpenCode | >=1.18 <2 |
>=1.10 <2 |
1.18.18 |
| OpenCode v2 | >=2.0.17 <3 |
>=2.0.17 <3 |
2.0.17 |
| pi | >=1 <2 |
>=0.84 <1, >=1 <2 |
1.3.0 |
What's Changed
Other changes
- fix(core): flush project directories after renames by @roryeckel in #295
- test(cli): pin PnP suite progress to report() by @roryeckel in #296
- test(core): cover the ambiguous PnP fallback by @roryeckel in #297
- chore(ci): harden the no-network wrappers by @roryeckel in #298
- fix(core): create project locks atomically by @roryeckel in #299
Full Changelog: v0.14.0...v0.14.1
Direct commits
Release v0.14.1 (#300) (bc810ae)
-
docs(release): prepare 0.14.1
-
chore(release): 0.14.1
Co-authored-by: release-prepare <release-prepare@users.noreply.github.com>
v0.14.0
Versions at a glance, and a lock that clears itself
0.14.0 is about knowing which releases are running and trusting what a sync left behind. hooknostic --version prints the CLI's release, and doctor opens with the CLI, the project's @hooknostic/sdk and Node.js. The HN110 and HN109 warnings now name paths without a machine's directories, doctor reports HN110 for every configuration, and HN110's advice spells out the install command to run: npm's, pnpm's with esbuild's install script allowed where pnpm needs that, or Yarn's. pnpm's own Plug'n'Play mode is no longer mistaken for Yarn's. recover clears a lock a dead process left, project writes are flushed before they are reported written, and a WSL mount that keeps no file modes no longer makes verify treat every generated file as modified. Under Yarn Plug'n'Play, sync and MCP components now work.
Several command-line behaviours change, and the upgrade steps below cover them.
Upgrading from 0.13.x
-
Upgrade the SDK and the CLI together. Keep
@hooknostic/sdk,@hooknostic/agent-pluginand thehooknosticCLI on the same release; the CLI warns HN110 when it and the project's SDK differ. To upgrade:npm install --save-dev @hooknostic/sdk@0.14.0 hooknostic@0.14.0
With pnpm, run
pnpm add -D @hooknostic/sdk@0.14.0 hooknostic@0.14.0, adding--allow-build=esbuildif the project has not allowed esbuild's install script yet. -
Commands refuse options and words they do not accept. Each command now takes only what its usage line shows, plus
-h/--help;inspectalone takes a word, its target. Input a command used to ignore is a usage error: exit 2, reported before it reads a config or writes a file. That coverscheck --dry-run,dispatch --local, an--eventsfile given toinitorsync, and a second word toinspect.sync,verifyandrecovernow reject--targetas a usage error rather than a partial-selection error; both exit 2, but under--jsonthe usage line replaces the full project result. A usage error keeps its single JSON line under--json. -
dispatch --jsonis a usage error.dispatchalways writes JSON Lines, so--jsonis reported as text on stderr, with the usage, and exits 2. It is checked before anything else, including an unreadable--eventsfile. -
-vmeans--version. In the command position,hooknostic --versionandhooknostic -vprint the CLI's release and exit 0. Afterinspect,--version <range>remains the harness version range. -
doctor --jsongains two fields.runtime.hooknosticandruntime.sdkjoinruntime.node;runtime.sdkappears only when there is a config. The addition is additive, soschemaVersionstays 2. -
Expect new output lines.
sync,verify,recoveranddoctornow print each diagnostic'sRemediation:line, ascheckandbuilddo.doctoralso starts its text output with a version line, and may now print HN110 where it previously said nothing. -
Rebuild packages and re-sync projects. Generated artifacts carry the release version, so their bytes change with the upgrade. A project whose configuration
entrysits in a package with its own@hooknostic/sdkalso gets a different bundle: the entry now uses that SDK and the runtime uses the CLI's, as an npm-run build already did.
What is new
hooknostic --version, and versions indoctor.doctor's text output starts with one line, such ashooknostic 0.14.0, project @hooknostic/sdk 0.14.0 (Node.js v24.20.0). It is printed before the config loads, so a bug report has it even when the load hangs or fails.doctor --jsoncarries the same facts underruntime.- HN110 tells you what to install. Its advice now names a command with the SDK's version, without build metadata:
npm install --save-dev --save-exact hooknostic@<version>,pnpm add -D hooknostic@<version>, oryarn add -D hooknostic@<version>under Yarn Plug'n'Play. npm gets--save-exactbecause it would otherwise save a^range and let the CLI move away from the SDK again. pnpm's command carries--allow-build=esbuildwhen the project's install record names pnpm 10.4.0 or later, which accepts the option; earlier pnpm refuses it, so the command leaves it out. - pnpm's Plug'n'Play mode is told apart from Yarn's. A Plug'n'Play manifest is pnpm's when pnpm's install record says
nodeLinker: pnp, or whenpnpm-lock.yamlsits beside it andyarn.lockdoes not. Such a project is now advised to runpnpm exec hooknosticrather thanyarn hooknostic. doctorreports HN110 for every configuration. A package-only or hooks-only configuration, a config that fails to load, and targets with no registered adapter all report the skew that a build would hit. HN110 stays a warning and never changes the exit code.- The moved-schema hint reaches every command. A config or hook source that imports a schema from
@hooknostic/sdkthat lives at@hooknostic/sdk/schemasgets an HN501 remediation naming the subpath, the import to write, and the upgrade guide.sync,verify,recoveranddoctornow print it too, and doctor's top-leveldiagnosticscarries them as well.
What is fixed
Releases and paths
- HN110 compares the SDK the build sees. It resolves the project's
@hooknostic/sdkby walkingnode_modulesfrom the configuration's directory and its ancestors, asdoctoralready did, rather than through Node's resolver. An SDK that onlyNODE_PATH(which pnpm's bin shims set) or a global folder reaches no longer triggers HN110, and no longer stands in for the project's SDK in the bundle, where a foreign or incomplete copy used to fail the build with HN301. - HN110 and HN109 name no machine directory. Under
yarn hooknostic, the SDK and the Zods are namedfrom Yarn's Plug'n'Play installrather than by their archive path. Inside the configuration's directory, a path is relative to it and uses forward slashes. - The SDK names
main. pnpm 12's Plug'n'Play runtime resolves a package by its directory, throughmain, and ignoresexports; the SDK now names both.exportsstill wins wherever it is read. An SDK of 0.13.0 or earlier remainsnot-foundunderpnpm exec.
Project state
recoverclears a dead process's lock. A hard kill duringsyncorrecoverused to leavesync.lockorrecovery.lockbehind until it was deleted by hand.recovernow clears either lock when its recorded process ID names a process that has exited, and refuses one held by a live process, a reused ID, or no valid ID, naming the ID and the lock's path. It claims the lock by renaming it into.hooknostic/stagingand rechecks its identity before removing it, so a peer's fresh lock is not taken.- A failed write no longer leaves a lock behind. Locks, staged files and the journal are written, flushed with
fs.fsync, then closed; a failure after creating one removes it again. A flush error such asEIOstill aborts the sync. - A leftover lock names
recover. A sync that findssync.lockreports that another sync or recover may be running and namesrecover, to run with the same configuration, instead of Node's rawEEXIST. - File modes are compared only where the filesystem keeps them. On a WSL checkout under
/mnt/c, with DrvFs mounted without metadata, every file read0777andchmodchanged nothing, soverifyand a secondsyncreported every generated file as modified, andrecoverreported a conflict. Modes are now unobserved there and content is still compared; Windows behaved this way already. A Windows path containing a space in a DrvFs mount'spath=option no longer hides a metadata mount's option.
Yarn Plug'n'Play
syncworks under Yarn's runtime. It used to fail withMethod not implemented.from Yarn's patched file handle and leave its lock behind, after which every later sync failed withEEXIST. The opt-in Yarn suite now runsinit --local,synctwice andverifyunderyarn hooknostic.- MCP components build under Yarn Plug'n'Play. Every MCP component failed with HN301 when Yarn used its global cache, because the launcher's dependencies could not be resolved from inside Yarn's archives. The launcher now resolves its imports through the PnP API that serves the CLI. Generated launcher bytes are unchanged.
- ADR-0041 records the supported surface.
yarn hooknosticand, for a CLI installed outside the project,node -r ./.pnp.cjs <cli>/bin/hooknostic.mjs, run from the project directory, are supported. Plainnode,npx, a global install run directly andpnpm dlxfail with HN504 when a build needs a package from Yarn's install.yarn dlxstays best effort.
Limits
- HN110 is a warning, and compares release numbers, not contents. It does not run for
dispatch, and it stays silent underyarn dlxand pnpm 11's PnP runtime, where looking up the project's SDK would break the build. recovercannot see another environment's process. A process in WSL, a container or another host that shares the checkout cannot be seen, and its lock looks abandoned. Runsyncandrecoverfrom one environment at a time.- An empty lock is not cleared. A process killed while creating a lock leaves an empty one, which a live process paused at that moment also has.
recoverrefuses it; delete the file only after confirming nosyncorrecoveris running. - pnpm's Plug'n'Play mode is best effort.
pnpm exec hooknosticbuilt a working artifact with pnpm 12.21.0 in one recorded check (.capture/pnpm-pnp), but no test suite runs it. `symli...
v0.13.0
Hook authoring without Zod, and every failure in your code reported
0.13.0 moves the SDK's Zod schemas to @hooknostic/sdk/schemas, so hooks and configuration no longer import Zod. Most of the rest is about what happens when code fails, yours or Hooknostic's. The command shims, hooknostic dispatch and every other command now run your config and hook source under a guard. A rejection, a timer that throws or a process.exit is reported, rather than ending the process with its own exit code or a stack trace, and a leaked handle no longer hangs a command. Every shim reports the errors it absorbs, in one format, and fails open. A new warning, HN110, names a CLI and an SDK from different releases. On OpenCode v2, subagents now report agent.start and agent.stop, and a plugin reload no longer reports a start or stop twice.
Several of these changes affect exit codes and output that scripts read. The breaking changes come first, each with its upgrade step.
Upgrading from 0.12.x
-
Upgrade the SDK and CLI together. An older CLI's shims import the schemas from the SDK root and cannot bundle against this SDK. Keep
@hooknostic/sdk,@hooknostic/agent-pluginand thehooknosticCLI on the same release. From 0.13.0, the CLI warns HN110 when it and the project's SDK differ. To upgrade, add@hooknostic/agent-plugin@0.13.0if you depend on it:npm install --save-dev @hooknostic/sdk@0.13.0 hooknostic@0.13.0
With pnpm, run
pnpm add -D @hooknostic/sdk@0.13.0 hooknostic@0.13.0, adding--allow-build=esbuildif the project has not allowed esbuild's install script yet. Without it, pnpm 12 exits 1 withERR_PNPM_IGNORED_BUILDS, though the packages are installed. If your project imports the SDK or@hooknostic/agent-pluginat runtime, use--save(pnpm: without-D) for those instead, so they stay regular dependencies. Both package managers save a^0.13.0range; if your project pins exact versions, add--save-exact. The same commands with@latestare in upgrading. Expect the re-sync to rewrite most of each generated runtime, even with Zod and esbuild unchanged, because this release bundles the same code in a different layout. Commit the regenerated output with the version bump. -
The SDK's schemas move to
@hooknostic/sdk/schemas. Every*Schemaexport moves from@hooknostic/sdkto the subpath, includingruntimeDiagnosticCodeSchema,handlerErrorSchemaandhookResultSchema. Nothing else moves:definePlugin,hook,defineConfig, the effect helpers,RUNTIME_DIAGNOSTIC_CODESand every type stay at the root. The root never loads Zod, at runtime or in its type declarations: only@hooknostic/sdk/schemasneeds it. The SDK'szod@^4.6.7peer stays required, as in 0.12.0. Making it optional sent npm into an endless loop when a project downgraded Zod (#240, #242).Until you change the imports,
checkandbuildfail with HN501 and esbuild'sNo matching export in "node_modules/@hooknostic/sdk/dist/index.js" for import "targetConfigSchema", naming the schema. The remediation printed with it does not mention the subpath. To upgrade, change the imports:import { effectSchema, toolInvocationSchema } from "@hooknostic/sdk/schemas";
The SDK's
zodpeer stays required: npm and pnpm install Zod beside the SDK, shared with the CLI's copy, so hooks and configuration need nozodof your own. Code that imports the subpath should listzod@^4.6.7in its own dependencies, because it imports Zod. Under Yarn Plug'n'Play that import fails until it does (yarn add -D zod@^4.6.7).Keep a
zoddependency at^4.6.7or a newer 4.x floor. Withhooknosticand@hooknostic/sdkinstalled, npm refuses an older Zod withERESOLVE; don't retry with--force, which can leave npm unable to finish. If your own code needs Zod 3, install it under an alias such aszod3@npm:zod@3. Under pnpm and Yarn the install warns, and the build warns HN109. See importing SDK schemas. -
Under Yarn Plug'n'Play, run Hooknostic through Yarn.
npx, a global install andpnpm dlxrun without the project's PnP runtime, and the build now fails with HN504.yarn dlxis not supported either. It fails with HN504 when the build needs the CLI's own Zod, because its install is not in the project's PnP manifest. On Linux with Node 22,yarn dlxthat shares Yarn's global cache with the project fails with HN501 ("controlled by multiple pnpapi instances") whatever the Zod. A plain-nodebuild that used to succeed, with misattributed licence notices and two SDK copies in the artifact, now fails too. This is intended. To upgrade, addhooknosticas a devDependency and runyarn hooknostic. npm, pnpm and Yarnnode_modulesprojects are unaffected. -
Rebuild packages or re-sync projects. Artifact bytes change even when your sources don't, so a project integration created by 0.12.x reports its hook files as modified until
syncruns again. That is expected. Sync, then verify. -
A hook source's exit no longer decides a shim's exit code. In the Claude Code, Codex and Copilot shims, a rejection nothing handles, a timer that throws or a call to
process.exitis reported as onehooknostic internalline. The hook then exits 0, or with the code its hooks decided. So aprocess.exit(2)no longer blocks a Claude Code event or denies a CopilotpreToolUse. Inside a handler, it is that handler's error,the hook source called process.exit(2). To upgrade, returnblock(...)to block, or setruntime.onHookError: "block"so that a failing handler blocks where the event can. -
Commands exit 2 when your config or hook source fails.
check,build,sync,verify,recover,doctorandinspect --configload them under a guard. A load that fails is HN501, and the command exits 2.sync,verify,recoveranddoctorprint a config that fails to load as its message alone, without the code, and their--jsonlists it undererrors(configurationErrorsfordoctor) rather than as a diagnostic, as in 0.12. That covers a top-level throw, aprocess.exit, a rejection, a timer that throws, a top-levelawaitor thenable default export that never settles, and a default export that throws when read, from a getter or a proxy. The message names the cause, as infailed to load config <path>: the config called process.exit(3). Before, these exited with your code's own exit code or Node's 1 or 13, exited 0 without a word, or hung on a leaked handle.- A failure after the load is a
hooknostic internalline, and the command still exits 2. That takes precedence oververify's drift exit 1. It does not hold back output:buildorsyncmay already have written its changes. - A timer or socket your code leaves open no longer keeps a command running once it has reported, and a load that fails no longer leaves a
hooknostic-eval-*directory in the temporary directory. - To upgrade, expect exit 2 where a script used to see your code's own exit code, a crash or a hang, and fix the failure the message names. See design §10.3.
- A failure after the load is a
-
hooknostic dispatchruns under the shims' guard, with new exit codes.- Exit 1 is new. The hook source failed outside a handler, with a rejection nothing handles or a timer that throws (at load or later) or a
process.exitafter it loaded, or it ended the process before every result was written. Each failure is reported on stderr against the event it interrupted, as inhooknostic internal [event 2]: stray rejection, and usually every result line is still written. - A load that fails exits 2 with no results. The config fails as it does under
check, with HN501, including when it rejects or throws from a timer while it loads. A load that never settles is a load failure, with a message that names what it waits on. - Before, the hook source's own exit code, Node's 1 or 13 ended the run, usually with no result lines.
- A
process.exitinside a handler is that handler's error. The run exits 0 on a command target, as the shim does, or 1 on a module target (OpenCode, Pi), with a note that the shim in the harness does not intercept it. - Exit 2 takes precedence over 1. The staged hook bundle's temporary directory is removed even when the run ends early.
To upgrade, note that a caller that treats any non-zero exit as failure now fails on a stray rejection or timer throw in the hook source. Fix it, or pass
--unguardedto keep the previous path, with the hook source's own exit code and Node's stack trace; other commands reject the flag. See when the hook source fails outside a handler and exit codes. - Exit 1 is new. The hook source failed outside a handler, with a rejection nothing handles or a timer that throws (at load or later) or a
-
Some error and JSON output changes. A usage or configuration mistake prints a plain message, followed by the usage for a usage error. Before, it printed
hooknostic: unexpected error:and a stack. Exit codes are unchanged. Under--json, the CLI's own usage checks keep their single JSON line:initwithout--local,--dry-runoutsidesync,--unguardedoutsi...
v0.12.0
Native Zod 4 schemas, and a start-up allowance for every deadline
0.12.0 makes the SDK's exported schemas native Zod 4 Classic, a breaking change for SDK consumers, and stops charging a hook process's start-up to its handler budget. Generated native deadlines add a 5-second start-up allowance above the budgets your hooks declare. Published packages now require a patched minimatch release and a patched Zod peer floor.
What is included
- SDK schemas are native Zod 4. The
@hooknostic/sdkschemas are Zod 4 Classic objects and the package requireszod: ^4.6.7as a peer. Zod 3 schema composition is not interchangeable, and the V3 error API is gone: readZodError.issuesrather than the removed.errorsalias. The CLI depends on a compatible Zod, so installing the SDK with the CLI is enough under a package manager that installs peers (npm 7+, pnpm 8+). Declarezodyourself only if your code imports it to compose SDK schemas, or if your package manager does not install peers. See the Zod 4 upgrading guide. - A start-up allowance sizes every native deadline. Each native deadline is
ceil((sum of the event's handler budgets + runtime.processAllowanceMs) / 1000)seconds. The allowance defaults to 5 seconds, is added once per native event because one dispatcher process serves every hook on it, and is build-time only — the bundled dispatcher never reads it. A harness that caps an event's timeout takes the smaller of the two, so a cap shrinks the allowance but never the handler budgets; only budgets that alone exceed the cap make a build refuse, as before. At defaults every generated native timeout grows by the four seconds the allowance gained, except where a cap leaves less room (Codex'sSessionEndkeeps its 3-second ceiling). See ADR-0039 and budget for what the hook waits on. - Patched dependency floors. Published packages require minimatch
^11.0.7, which excludes the ranges affected by GHSA-cf2h-pxjq-68xw and GHSA-g3hv-75wg-m249. Scoped overrides point ESLint and typescript-eslint's minimatch consumers at the same release, so the workspace holds one copy. The SDK's^4.6.7peer floor excludes the Zod 3.25.76 distribution that carries the affected V4 parser described in GHSA-mrhx-c7xc-m3w5. semver 7.8.6, typescript-eslint 8.72.2, and Vitest 5.1.0 round out the routine updates. No published API changes with them.
Upgrading from 0.11.0
-
Upgrade the SDK and CLI together. Install the SDK release containing this migration with the matching CLI:
npm install --save-dev @hooknostic/sdk hooknostic # or pnpm add -D @hooknostic/sdk hooknosticIf your project declares
zoditself, for any reason, addzod@^4.6.7to the same command; an older Zod there conflicts with the SDK's peer.Use regular dependencies instead where your application imports the SDK at runtime. Keep
@hooknostic/sdk,@hooknostic/agent-plugin, and thehooknosticCLI on the same release. -
Rebuild packages or re-sync projects. Generated native timeouts and project artifacts change with the allowance, so a project integration created by 0.11.0 reports its hook files as modified until
syncruns again. That report is expected; synchronize, then verify. -
Update schema composition and annotations. Compose SDK schemas with V4 schemas throughout, replace V3-specific annotations with V4 types, and read error details from
.issues. Issue codes and fields can differ from V3; avoid comparing complete messages or depending on V3-only issue types. -
Expect the same boundaries to validate strictly. The
inputkey oftoolInvocationSchemaand therawkey ofbaseHookEventSchemaare required (an explicitundefinedstill validates), integers now reject unsafe values, and symbol-keyed entries in authored maps are rejected with diagnostics. Event names, effects, capability IDs, andschemaVersion: 1are unchanged. -
Leave hand-written native timeouts alone. Only Hooknostic-generated deadlines gained the allowance; a timeout you maintain outside its artifacts is untouched.
Limits
- The SDK's peer floor does not reach your transitive dependencies. Upgrading Hooknostic does not update other copies of Zod in your dependency graph; audit those separately.
- The allowance is headroom, not a larger handler budget. Handler timeouts are unchanged, a hung handler still ends at its budget, and the allowance covers only process start, stdin read, decode, and stdout flush.
- A harness cap still bounds the deadline. Defaults cover the measured 1.5–2.0 second start-up under ordinary contention, not the capture's roughly 9-second worst case under 96 busy-loop processes; raise
runtime.processAllowanceMson a host that needs more. - No harness support range claim changes. The allowance is a build-time number that adds headroom to existing deadlines, and the Zod migration leaves the event, effect, capability, and distribution model in place.
Start with the README; the release runbook describes preparation, draft creation, and publication.
Harness support
| Harness | Recommended target range | Validated ranges | Reference build |
|---|---|---|---|
| Claude Code | >=2.1 <3 |
>=2.0 <3 |
2.1.238 |
| Codex CLI | >=0.148 <1 |
>=0.140 <1 |
0.148.0 |
| GitHub Copilot CLI | >=1.0.101 <2 |
>=1.0.101 <2 |
1.0.101 |
| OpenCode | >=1.18 <2 |
>=1.10 <2 |
1.18.18 |
| OpenCode v2 | >=2.0.17 <3 |
>=2.0.17 <3 |
2.0.17 |
| pi | >=1 <2 |
>=0.84 <1, >=1 <2 |
1.3.0 |
What's Changed
Other changes
- harness-watch: claude 2.1.319 playback validation by @roryeckel in #164
- harness-watch: codex 0.167.0 playback validation by @roryeckel in #163
- harness-watch: copilot 1.0.107 playback validation by @roryeckel in #166
- harness-watch: opencode-v2 2.2.6 playback validation by @roryeckel in #165
- chore(deps): update ci and tooling (non-major) by @renovate[bot] in #168
- chore(deps): update dependency minimatch to v11 [security] by @renovate[bot] in #156
- fix(deps): keep Renovate dashboard compatible across runtimes by @roryeckel in #170
- chore(deps): update npm dependencies (non-major) by @renovate[bot] in #167
- feat(sdk)!: migrate exported schemas to patched Zod 4 by @roryeckel in #171
- fix(deps): move lint tooling onto patched minimatch 11 by @roryeckel in #172
- feat(core): size native deadlines with a process allowance by @roryeckel in #173
Full Changelog: v0.11.0...v0.12.0
Direct commits
chore(release): 0.12.0 (#174) (5d6cc2f)
-
docs(release): prepare 0.12.0
-
chore(release): 0.12.0
Co-authored-by: release-prepare <release-prepare@users.noreply.github.com>
v0.11.0
Target-aware skills and component delivery
0.11.0 adds build-time skill context and per-target component exclusions. One portable skill can identify its intended harness and refer to sibling skills, while one configuration can select different component files for each target. Project synchronization also reports generated-file ownership conflicts together, with recovery guidance for the command you ran.
What is included
- Build-time skill context.
${HARNESS}becomes the intended projection identifier, and${SKILL_REF:setup}becomes the native prompt reference for an available sibling namedsetup. Both work in ownedSKILL.mdbodies for package and project delivery, including package-sourced project skills. Sibling names follow the actual emitted naming policy. See skill context tokens and ADR-0037. - Per-target exclusions.
components.excludeFormaps configured target names to additional file exclusion globs. Globalcomponents.excludestill applies. Filtering works for package components and direct project sources, before discovery and validation; excluding a skill'sSKILL.mdomits the whole skill. Reports distinguish omitted files from files still exposed through shared discovery, with optionalauthorExclusionsand per-targetsourceFilesin report schema version 2. See configuration and ADR-0038. - Generated-file conflicts together.
sync,sync --dry-run, andverifylist all whole generated-file ownership conflicts with project-relative paths. Recovery guidance explains how to preserve edits, move aside conflicting files, then synchronize and verify. Ownership rules, JSON output shape, and exit codes are unchanged. See ownership and recovery.
For example, a portable skill body can contain:
Run `node scripts/status.mjs --harness ${HARNESS}`.
If setup is needed, run ${SKILL_REF:setup} first.The values are resolved during projection. ${HARNESS} identifies the intended target; it does not detect the running process or consult inherited environment variables. A sibling reference is prompt text and does not guarantee invocation.
Upgrading from 0.10.1
- Rebuild packages or re-sync projects after upgrading to regenerate owned output. Existing configurations do not need new options.
- Review newly recognized skill tokens.
${HARNESS}and${SKILL_REF:...}now have compiler meaning in owned skill bodies, including code blocks. Missing or skipped siblings, malformed closed references, and tokens in frontmatter or skills discovered in place remain literal and reportskill-reference-unexpanded(HN101), failing by default under the existing degradation policy. Scripts and other bundled files are not rewritten. - Key exclusions by configured target name. Package exclusion paths are relative to
components.root; direct skill paths are relative to each skill collection, and a direct MCP document is addressed asmcp.jsonregardless of its source filename. Materializers keep their existing execution policy even when their output is excluded. - Preserve the ownership record when recovering conflicts. Keep an existing
.hooknostic/integration.json, preserve needed edits, move aside the reported conflicting files, runsyncwith the same configuration, thenverify. Removing conflicts alone does not establish the integration verification needs.
Limits
- Shared project discovery still applies. A file excluded for one target may remain discoverable through another target's retained copy or an authored native copy. An unenforced skill exclusion reports
skill-exclusion-unenforced(HN101) and fails by default. Warning or explicit acceptance retains the exposed content; it does not make the exclusion work. - Different skill bytes cannot share one destination. If target-specific token substitutions produce different bytes at a shared project skill path, synchronization rejects the conflict before writing. Use separate package projections or shared native text where appropriate.
- Sibling references stay within the selected skill set. Arbitrary external plugin references need native text in target-specific sources or supported package overlays. Successful context-token substitutions add no degradation;
${SKILL_DIR}retains its existing independent policy. - Harness support ranges are unchanged. The context-token feature reuses existing reference evidence, with a bounded Claude overlay-name probe recorded in ADR-0037. It does not promise automatic skill invocation or broader native alias behavior.
Start with the README; the release runbook describes preparation, draft creation, and publication.
Harness support
| Harness | Recommended target range | Validated ranges | Reference build |
|---|---|---|---|
| Claude Code | >=2.1 <3 |
>=2.0 <3 |
2.1.238 |
| Codex CLI | >=0.148 <1 |
>=0.140 <1 |
0.148.0 |
| GitHub Copilot CLI | >=1.0.101 <2 |
>=1.0.101 <2 |
1.0.101 |
| OpenCode | >=1.18 <2 |
>=1.10 <2 |
1.18.18 |
| OpenCode v2 | >=2.0.17 <3 |
>=2.0.17 <3 |
2.0.17 |
| pi | >=1 <2 |
>=0.84 <1, >=1 <2 |
1.3.0 |
What's Changed
Other changes
- fix(project): report generated-file conflicts together by @roryeckel in #159
- feat(skills): project harness identity and sibling references by @roryeckel in #160
- feat: add per-target component exclusions by @roryeckel in #161
Full Changelog: v0.10.1...v0.11.0
Direct commits
v0.10.1
A host's disabled MCP server stays disabled on OpenCode
0.10.1 is a fix release. A host that launches OpenCode with its own configuration layer (OPENCODE_CONFIG_CONTENT or a config file) can switch a project MCP server off with enabled: false again. Until now, Hooknostic's generated OpenCode module wrote its own declaration over that entry, and the server ran anyway. Claude Code, Codex and GitHub Copilot never lost their switch, because it acts on the static file Hooknostic writes. On OpenCode, Hooknostic's runtime registration had removed it. ADR-0015 records the amended rule. The evidence is in .capture/opencode-disabled-mcp.
What is included
- A project or package declaration no longer re-enables a server the host disabled. It still replaces a same-named inherited server the host left enabled, and unrelated inherited servers are still left untouched.
- OpenCode v2: the MCP editor reports the host's entry as
disabled: true, for local and remote entries alike. The project components module and the package injector then skip that name and register the rest. - OpenCode v1: the
confighook receives the host's entry asenabled: false. The project module and package injector skip it the same way. The generated modules stay environment-free.
- OpenCode v2: the MCP editor reports the host's entry as
- No new vocabulary. There is no environment variable and no Hooknostic diagnostic: OpenCode itself reports the server as disabled. Hooknostic's own
enabled: false, for a remote declaration with an unset${VAR}, still applies. - Playback covers it. The
opencode-v2lane starts two projected stdio servers. The one the host disabled never starts, while the other, the copied skill and the generated hook still work. A same-named entry the host left enabled is still replaced. Theopencode-v1lane covers the host-layer case. - Windows playback runs the build
PATHselects. The OpenCode v2 capture drive used to run the globalopencode.exeeven when a reference build came first onPATH. It now runs the selected build, fails loudly on a version mismatch, and the mutation verifier refuses to count a mutant run on the wrong build. A stalled Windows ancestry probe in Pi playback now retries. - Support evidence. Editor-shape and effect records were added for OpenCode 2.0.17 and 2.2.0, and config-hook records for 1.18.18. The playback lanes' scheduled validations recorded Claude 2.1.316, Codex 0.166.0, Copilot 1.0.105, OpenCode 1.19.5 and 2.2.5, and pi 1.5.0. Recommended target ranges, reference builds and support levels are unchanged.
Upgrading from 0.10.0
- Re-sync or rebuild to pick it up. The fix is in generated output. A project-delivered install needs
syncto rewrite.opencode/plugins/hooknostic-components.js, and an OpenCode package needs a rebuild. - A disabled host entry now wins. If a host or a global OpenCode configuration disables a server by name, the project's declaration of that server no longer turns it back on. That is the intended change. Remove the host entry, or set it to
enabled: true, to use the project's server.
Limits
- Pi is unchanged. Its registration loses to a host file entry rather than overriding one, and no capture covers a disabled collision.
- Windows-only evidence. The editor-shape, config-hook and effect captures ran on native Windows. CI's playback lanes also run the new cases on Ubuntu.
- Not captured: whether another plugin's earlier v1
configwrite is part of the document the module reads.
Start with the README; the release runbook describes preparation, draft creation, and publication.
Harness support
| Harness | Recommended target range | Validated ranges | Reference build |
|---|---|---|---|
| Claude Code | >=2.1 <3 |
>=2.0 <3 |
2.1.238 |
| Codex CLI | >=0.148 <1 |
>=0.140 <1 |
0.148.0 |
| GitHub Copilot CLI | >=1.0.101 <2 |
>=1.0.101 <2 |
1.0.101 |
| OpenCode | >=1.18 <2 |
>=1.10 <2 |
1.18.18 |
| OpenCode v2 | >=2.0.17 <3 |
>=2.0.17 <3 |
2.0.17 |
| pi | >=1 <2 |
>=0.84 <1, >=1 <2 |
1.3.0 |
What's Changed
Other changes
- harness-watch: claude 2.1.316 playback validation by @roryeckel in #142
- harness-watch: codex 0.166.0 playback validation by @roryeckel in #144
- harness-watch: opencode-v1 1.19.5 playback validation by @roryeckel in #143
- harness-watch: opencode-v2 2.2.5 playback validation by @roryeckel in #145
- harness-watch: pi 1.5.0 playback validation by @roryeckel in #146
- harness-watch: copilot 1.0.105 playback validation by @roryeckel in #141
- fix(playback): retry a stalled Pi PowerShell ancestry probe by @roryeckel in #149
- chore(deps): update npm dependencies (non-major) by @renovate[bot] in #147
- chore(deps): update ci and tooling (non-major) by @renovate[bot] in #148
- fix(playback): run the OpenCode v2 build PATH selects on Windows by @roryeckel in #152
- fix(opencode): leave a host-disabled MCP server alone instead of re-enabling it by @roryeckel in #153
- docs(release): write the 0.10.1 release highlights by @roryeckel in #154
Full Changelog: v0.10.0...v0.10.1
Direct commits
chore(release): 0.10.1 (#155) (496ba08)
Co-authored-by: release-prepare <release-prepare@users.noreply.github.com>
v0.10.0
A notice when a session opens, without the model seeing it
0.10.0 adds session.start.notify. A hook can show the user a short message as a session opens — a required tool is missing, a policy is active, a check was skipped — and no harness puts that message in front of the model. The capability is a new scope for the existing notify effect, decided in ADR-0036; text the model should read is still session.start.context.add. It is delivered on four of the five harnesses — OpenCode through v1 only — and stated as unsupported on GitHub Copilot CLI, where no user-only channel exists at all. See the versioned harness support table for the builds behind each rating.
What is included
- One capability, four harnesses. Claude Code, Codex CLI, OpenCode v1 and pi 1.x each deliver the notice, rated
approximatewith the loss named. The contract is user-only: a channel the model reads does not qualify, so the transcript routesturn.stop.notifyaccepts on OpenCode are refused at session start.- Claude:
systemMessageonSessionStartrenders in the interactive TUI for startup,/clear,/compactand resume. A-pconsumer loses it except at/compact, and a resumed session redraws an earlier notice. - Codex:
systemMessagerenders in the interactive TUI for every source.codex exec, plain or--json, shows it nowhere. The TUI dispatchesSessionStartwith the first submitted prompt, so the notice appears then, not when the TUI opens. - OpenCode v1: a TUI toast (
client.tui.showToast) atsession.created, shown for 15 seconds when a TUI is attached, local or throughserve. It is inert underopencode run. - pi 1.x:
ctx.ui.notifyat warning level, in the TUI and over RPC. Print mode shows nothing,--continuecan lose a notice, and pi's own status line can replace it.
- Claude:
- Unsupported where it must be stated. GitHub Copilot CLI drops a
sessionStartsystemMessageat parse, and an OpenCode v2 server plugin has no user-only route: only a companion./tuientry could show one, and it would not reach OpenCode Desktop, so Hooknostic generates none. Both are ratedunsupportedrather than silently dropped, so a build that requires the capability fails there with a diagnostic. - Declared like any other capability. A hook declares
capabilities: { notify: "optional" }on itssession.starthook and gates onctx.capabilities.has("notify"). Arequireddeclaration fails the build for Copilot and OpenCode v2. - Playback covers it. The
session-start-notifyscenario runs on every lane and asserts the two halves a lane can see: no model request carries the notice, and headless output does not show it. - Support evidence refreshed. The playback lanes re-ran against Claude 2.1.310, Codex 0.164.0, OpenCode 1.19.4 and 2.1.4, and pi 1.4.0. The notice probes add Claude 2.1.238 and 2.1.312, Codex 0.148.0 and 0.166.0, Copilot 1.0.102, OpenCode 1.18.18, 1.19.5, 2.0.17 and 2.2.0, and pi 1.3.0 and 1.4.0. Recommended target ranges and reference builds are unchanged.
Upgrading from 0.9.0
- Nothing changes for a hook that does not use it. Effects, exit codes and diagnostics are the same as 0.9.0; the only difference in an unchanged artifact is its version stamp.
- New scope on an old effect.
notifyreturned from asession.starthook is now licensed, so the SDK accepts what 0.9.0 rejected at compile time. Declare the capability and keep it optional wherever the plugin is built for more than the four harnesses above. - Re-sync a project that adopts it. The OpenCode shim and the pi extension carry the call, so a package needs a rebuild to pick it up, and a project-delivered install needs
syncto rewrite the generated shim and extension.
Limits
- Best-effort, interactive. A notice is not a delivery guarantee. Do not rely on one for anything that has to reach the user; nothing in a probe survived every launch mode.
- It can arrive late or more than once. Codex dispatches
SessionStartwith the first prompt. Claude fires it twice around/compact(resume, thencompact) and redraws earlier notices on resume. OpenCode v1 raisessession.startfor everysession.created, including a child session. - One toast at a time on OpenCode v1. A newer notice replaces an older one, and a toast sent during plugin initialization is lost under the TUI.
- Headless and desktop surfaces.
opencode run,codex exec, print mode and Claude's-pshow nothing in most sources, and OpenCode Desktop cannot show an OpenCode v2 notice at all. - Only the pi 1.x line is rated. The 0.84 line was not probed for session start.
Start with the README; the release runbook describes preparation, draft creation, and publication.
Harness support
| Harness | Recommended target range | Validated ranges | Reference build |
|---|---|---|---|
| Claude Code | >=2.1 <3 |
>=2.0 <3 |
2.1.238 |
| Codex CLI | >=0.148 <1 |
>=0.140 <1 |
0.148.0 |
| GitHub Copilot CLI | >=1.0.101 <2 |
>=1.0.101 <2 |
1.0.101 |
| OpenCode | >=1.18 <2 |
>=1.10 <2 |
1.18.18 |
| OpenCode v2 | >=2.0.17 <3 |
>=2.0.17 <3 |
2.0.17 |
| pi | >=1 <2 |
>=0.84 <1, >=1 <2 |
1.3.0 |
What's Changed
Other changes
- harness-watch: claude 2.1.310 playback validation by @roryeckel in #124
- harness-watch: codex 0.164.0 playback validation by @roryeckel in #127
- harness-watch: opencode-v1 1.19.4 playback validation by @roryeckel in #125
- harness-watch: opencode-v2 2.1.4 playback validation by @roryeckel in #126
- fix(harness-watch): load Copilot profiles in recorder by @roryeckel in #131
- harness-watch: pi 1.4.0 playback validation by @roryeckel in #128
- chore(deps): update ci and tooling (non-major) by @renovate[bot] in #129
- chore(deps): update npm dependencies (non-major) by @renovate[bot] in #130
- docs(readme): refresh support and status by @roryeckel in #133
- test(playback): keep Claude's skill-listing budget off fixture skills by @roryeckel in #134
- feat(sdk): add session.start.notify by @roryeckel in #135
- chore(deps): lock file maintenance by @renovate[bot] in #136
- chore(deps): require a deduped lockfile by @roryeckel in #137
- docs(release): write the 0.10.0 release highlights by @roryeckel in #138
Full Changelog: v0.9.0...v0.10.0
v0.9.0
GitHub Copilot CLI, and harnesses that read each other's files
0.9.0 adds GitHub Copilot CLI as the fifth target. Package delivery emits an Agent Plugins 1.0 package that Copilot loads natively, and project delivery writes .github/hooks, .agents/skills and the root .mcp.json. Copilot also reads Claude Code's hooks, skills and MCP file. This release makes each harness run only the output generated for it, and records that rule as ADR-0033. See the versioned harness support table for support levels and their evidence.
What is included
- A
copilotadapter for>=1.0.101 <2, referencing 1.0.101. Its hook payloads, tool argument shapes and effect channels were captured on Windows and Linux, and its shell dialect on macOS as well. It covers all of these events: session start and end, prompts, tools, tool errors, permission requests, compaction notices, subagents, and turn stops.- Exact: blocking and approval requests before a tool, input and output replacement, and tool-time context.
- Approximate: blocking continuation after a tool, and preventing a subagent stop.
- Emulated: prompt context, which reaches the model as prompt text.
- Package delivery:
copilot --plugin-dir ./dist/copilot, or a local or git-hosted marketplace. Skills and stdio, streamable-HTTP and SSE MCP servers ship in the package, and the hooks go undercom.github.copilot/hooks/hooks.json. The combined example now builds a Copilot package and includes a.github/plugin/marketplace.jsonfor it. - Project delivery for
sync,verifyandrecover. It writes.github/hooks/hooknostic.json, copies skills to.agents/skills, and declares MCP servers in the root.mcp.json.doctorreports the installed version without triggering Copilot's self-update. - Claude and Copilot in one project. Copilot runs
.claude/settings.jsonhooks, so Hooknostic's Claude entries carry a non-numerictimeoutSec. That key makes Copilot drop the file's hooks; Claude ignores it. Both harnesses read the root.mcp.json, so each server has one entry that serves both. Whencomponents.targetsselects only one of them,synclists the shared servers in the other harness's native disable setting. Names you added to that setting yourself are kept. tool.mcpis never set on Copilot. It names an MCP tool<server>-<tool>on tool events and<server>/<tool>on a permission request. Either part may contain hyphens, and no hook payload states the split. Guard MCP calls onkind: "mcp"andnativeName(ADR-0032).- The harness playback suite drives Copilot against a loopback model server on Windows and Linux, with no credentials and no spend. Claude Code's deferred MCP tools are now found through ToolSearch during playback.
Upgrading from 0.8.0
- Re-sync Claude projects.
syncrewrites Claude's project hook entries with thetimeoutSecmarker, and addscwd: "."to stdio servers in the root.mcp.json. Thatcwdis needed underGITHUB_WORKSPACE, and Claude ignores it. Until you runsync,verifyreports the old entries as drift. .github/mcp.json. Ifsyncwould create a root.mcp.jsonwhile.github/mcp.jsonlists servers, it now stops before writing anything. The root file would hide those servers from Copilot. This applies to a Claude-only project too. Move the servers into the root file, then fence any Claude should not start withdisabledMcpjsonServers.- Conflicting definitions. A server whose per-target overrides define it differently for Claude and Copilot fails
sync, because the shared file holds one definition per name.
Limits
- Copilot reads
.claude/skillsas well as.agents/skills. A skill in both resolves to Copilot's own.agents/skillscopy, but a hand-written skill that only exists in.claude/skillsstill reaches Copilot. - A hand-written hook in the same
.claude/settings.jsonis dropped for Copilot, along with Hooknostic's entries. - Repository hooks load only in a trusted folder, from the directory the session starts in. They load at startup, so restart Copilot after
sync. prompt.before.context.addis emulated by appending to the prompt. Preventing a subagent stop has no observed loop guard. Compaction is a notice only, and there is nomodel.requestorturn.stop.notifychannel.- Copilot expands placeholder text that Agent Plugins 1.0 requires to stay literal: ambient
${NAME},${NAME:-fallback}and bare$NAMEreferences, and${PLUGIN_ROOT}or${PLUGIN_DATA}in a stdio command or in their bare and fallback spellings. Each such use is reported as thecopilot:mcp-environment-expansiondeviation (HN106), which warns by default. The exact aliases in stdioargs,envandcwdconform and are not reported. - A git-hosted marketplace install is a copy, so a rebuilt package reaches Copilot only after
copilot plugin update. No install route runs a dependency install, so bundle a package's Node dependencies. - The interactive approval scenario has no automated driver on the playback lane. macOS evidence covers the shell dialect only.
Start with the README; the release runbook describes preparation, draft creation, and publication.
Harness support
| Harness | Recommended target range | Validated ranges | Reference build |
|---|---|---|---|
| Claude Code | >=2.1 <3 |
>=2.0 <3 |
2.1.238 |
| Codex CLI | >=0.148 <1 |
>=0.140 <1 |
0.148.0 |
| GitHub Copilot CLI | >=1.0.101 <2 |
>=1.0.101 <2 |
1.0.101 |
| OpenCode | >=1.18 <2 |
>=1.10 <2 |
1.18.18 |
| OpenCode v2 | >=2.0.17 <3 |
>=2.0.17 <3 |
2.0.17 |
| pi | >=1 <2 |
>=0.84 <1, >=1 <2 |
1.3.0 |
What's Changed
Other changes
- feat(copilot): add GitHub Copilot CLI adapter by @roryeckel in #120
- docs: name GitHub Copilot CLI on the front page and in the combined example by @roryeckel in #121
- docs: write the 0.9.0 release highlights by @roryeckel in #122
Full Changelog: v0.8.0...v0.9.0
Direct commits
chore(release): 0.9.0 (#123) (50cd021)
Co-authored-by: release-prepare <release-prepare@users.noreply.github.com>
v0.8.0
Pi 1.x with native MCP, and a stated MCP identity
0.8.0 adds pi 1.x as a second supported pi line. Project and package delivery now hand stdio and streamable-HTTP MCP servers to pi's own MCP client through a generated extension, where 0.7.0 could only omit them. Because pi's MCP tool names are lossy, the server and tool split for those calls comes from what pi states beside the call, not from the name. See the versioned harness support table for support levels and their evidence.
What is included
- A
>=1 <2pi profile referencing 1.3.0, beside the retained>=0.84 <1line. A target pinned to either line gets that line's support; a range spanning both keeps resolving to the least capable level. - Pi 1.x package and project delivery project stdio and streamable-HTTP MCP servers into pi's native client. stdio runs through the shared launcher, which binds the package root and a Hooknostic-managed data directory; header values are escaped for pi's
$and$!expansion. pi rejects the legacy SSE transport, so that single omission is namedpi:mcp-sse-omitted. tool.mcpon pi 1.x carries the server and tool pi registered, ontool.afterand on a server-reportedtool.error. The shim reads the registration source so only tools pi's own MCP extension registered supply it; another extension'smcp__tool, a JSON-RPC failure and atool.beforecall keep the split absent. ADR-0032 records the model.- An adapter now declares where its
tool.mcpsplit comes from, andinspect,hooknostic dispatchand the contract suite hold a test or a fixture to that declaration, so none of them can claim an identity the harness never states. ${SKILL_DIR}in a Codex SKILL.md body becomes<absolute path of the directory containing this SKILL.md>instead of.. In a controlled package-delivery comparison the explicit placeholder succeeded on 10 of 10 first launcher attempts against 1 of 10, so the build now treats the remaining substitution as a model dependency rather than a solved path.- Generated launchers and OpenCode project delivery resolve project-relative paths through one shared helper, which fixes a stdio server started with a missing
cwdwhen the project was reached through a junction, symlink or another Windows drive or UNC share. - Harness evidence was refreshed by the scheduled model-free playback lanes: Claude Code 2.1.303, Codex CLI 0.163.0, OpenCode v1 1.19.3 and OpenCode v2 2.0.32. Automatic harness-watch merges are now guarded and serialized.
Upgrading from 0.7.0
- Node. The supported range is now
^22.22.2 || ^24.15.0 || >=26.0.0, in all three published packages. Node 22 before 22.22.2, Node 24 before 24.15.0, and the odd 23 and 25 lines are no longer supported; see dependencies. - Codex skills. A rewritten Codex skill body now fails the build as
codex:skill-directory-model-substitution(HN101). Review the skill, then addcomponents.accept: ["codex:skill-directory-model-substitution"]to ship it with an informational diagnostic. Acceptance records the dependency on the model. - Shared skill paths. Codex and OpenCode both write project skills to
.agents/skills. A combined sync whose two projections would differ at the same path is now rejected before anything is written; use package delivery for separate projections, or skill text both targets can share. - Pi MCP omissions. A
>=1 <2target no longer needspi:mcp-stdio-omittedorpi:mcp-streamable-http-omitted; remove them and acceptpi:mcp-sse-omittedonly if a server uses SSE. A>=0.84 <1target keeps the previous omissions and support levels. - Pi MCP guards. On pi 1.x, guard
tool.beforeonkind: "mcp",nativeNameorraw. Usetool.mcpontool.afterand on a server-reportedtool.error, and keep anativeNamefallback because pi's spelling of a name can be ambiguous.
Limits
- Pi's
mcp__name is never parsed for the split: pi rewrites characters and hashes collisions, so the name alone cannot identify the server. An MCP call whose harness-stated identity is absent stays absent, which is the documented signal to fall back tonativeNameand the raw form. - The pi shim follows the target's version range, settled at build time, and never sees the running harness version. A target spanning
>=0.84 <2treatsmcp__tools conservatively; pin a single line to get the 1.x behavior. - Codex performs no runtime expansion in skill text. Correct substitution of the explicit placeholder remains the model's job, and project delivery was conservatively treated as having the same limitation rather than separately probed.
- Pi 1.x still has no native permission or subagent lifecycle channel, turn-stop and session-end mappings remain emulated, and output replacement is approximate. SSE remains unsupported.
- Harness evidence for pi remains Windows and Linux; no macOS harness captures exist.
Start with the README; the release runbook describes preparation, draft creation, and publication.
Harness support
| Harness | Recommended target range | Validated ranges | Reference build |
|---|---|---|---|
| Claude Code | >=2.1 <3 |
>=2.0 <3 |
2.1.238 |
| Codex CLI | >=0.148 <1 |
>=0.140 <1 |
0.148.0 |
| OpenCode | >=1.18 <2 |
>=1.10 <2 |
1.18.18 |
| OpenCode v2 | >=2.0.17 <3 |
>=2.0.17 <3 |
2.0.17 |
| pi | >=1 <2 |
>=0.84 <1, >=1 <2 |
1.3.0 |
What's Changed
Other changes
- Raise Node minimum and upgrade npm utilities with playback fixes by @roryeckel in #105
- Keep Renovate Node type updates on 22.x by @roryeckel in #106
- harness-watch: opencode-v2 2.0.32 playback validation by @roryeckel in #108
- harness-watch: claude 2.1.303 playback validation by @roryeckel in #109
- harness-watch: opencode-v1 1.19.3 playback validation by @roryeckel in #110
- harness-watch: validate Codex 0.163.0 and fix OpenCode playback event log race by @roryeckel in #111
- Guard and serialize harness-watch automatic merges by @roryeckel in #114
- fix(harness-watch): repair drift report issue text and routing by @roryeckel in #115
- fix(codex): use explicit skill directory placeholders by @roryeckel in #116
- feat(adapter-pi): support pi 1.x with native MCP projection by @roryeckel in #117
- docs: write the 0.8.0 release highlights by @roryeckel in #118
Full Changelog: v0.7.0...v0.8.0
Direct commits
Release v0.8.0 (#119) (f41a4d3)
-
chore(release): 0.8.0
-
ci(release): note the publication mode instead of asking about it
The prepared PR asked the owner to confirm a state that has been true since 0.2.0: the three packages are public with publishConfig, and the npm environment has no NPM_PUBLICATION_MODE variable, so the 'oidc' default applies. Nothing consumed the line, and the half that cannot be checked from the repository is the npm-side 'Allow publish' flag.
Replace the checkbox with a note, and align docs/releases.md step 8 with the default the workflow actually uses.
The environment's required reviewer is untouched; that, not this line, is the per-publish approval.
Co-authored-by: release-prepare <release-prepare@users.noreply.github.com>