Agent Harnesses
Squeal is deliberately model- and harness-independent. Every native integration uses the same small surface:
- Hook / event delivery to push state transitions at safe turn boundaries.
- CLI status (
squeal status,squeal checks,squeal why) to pull state on demand. - Explicit checkpoint & run commands (
squeal run,squeal proof,squeal retry).
Outside a repository with a squeal.config.json or an existing Squeal store, every harness hook exits in a few milliseconds without starting Node or a daemon.
Supported harnesses
Section titled “Supported harnesses”Claude Code
Section titled “Claude Code”- Install:
install.shaddshearsay-tools/marketplaceand installssqueal@hearsayat user scope viaclaude plugin. - Hooks: Registers sessions on
SessionStart, delivers transitions after tool calls, enforcesinterrupt.onRegressionon file edits, and supportsStopholds/waits for slow andstop-moment check groups. - CLI:
squealis available via~/.local/bin/squeal. - Updates:
squeal updateorclaude plugin update.
- Install:
install.shinstalls the fixedsqueal@hearsayplugin viacodex pluginplus the release’s standalone Codex runtime under~/.codex/plugins/data/squeal-hearsay/(CODEX_HOMEoverrides). - Hook stability: Because the hook plugin stays fixed and only the runtime updates, Squeal upgrades do not require re-approving hooks.
- Session isolation: Each Codex session keeps the runtime version it started with. Session start checks for a newer runtime in the background for future sessions.
- Waiting hooks: On first use in a worktree, trust the hooks (
/hooks) so Stop can wait for slow/stop check groups.
- Install:
install.shunpacksplugins/pi/from the public GitHub release archive into~/.local/share/squeal/pi/<version>/(XDG_DATA_HOMEoverrides) and runspi install <dir>. - Architecture: Pi loads
dist/extension.mjsin-process; Squeal isolates all store work inside an unreferencedworker_threadsworker with strict per-hook deadlines so a slow store never blocks or hangspi -p. - Upgrades:
squeal updateinstalls the new version and keeps the previous version (plus any version used by a live daemon). Run/reloadinside an open Pi session to switch versions.
OpenCode
Section titled “OpenCode”- Install:
install.shinstalls the plugin viaopencode plugin file:<dir> -gthrough a versionedcurrentlink. - Architecture: Because OpenCode runs on Bun (without
node:sqlite) and awaits plugin hooks sequentially, Squeal’s thin plugin spawns per-hook Node 22.19+ bridge entries (dist/hooks/<kind>.mjs) in isolated process groups with tight deadlines (2 s for tool/chat hooks, up to 2 s at idle, 3 s at dispose). - Subagents: Tracks root sessions as
(session id, "main")andtask-tool child sessions as(root id, child id), injectingOPENCODE_SESSION_ID,OPENCODE_AGENT_ID, andbin/into the agent’s shell environment.
Antigravity
Section titled “Antigravity”- Install:
install.shrunsagy plugin install <dir>(supports interactive TUI,agy -p, and--input-format stream-jsonon Linux). - Hooks:
SessionStartregisters the conversation and delivers the primer.PreInvocationdelivers transitions after each tool batch.PreToolUseguards file-editing tools (write_file,edit_file,write_to_file,replace_file_content,multi_replace_file_content) andrun_command(supporting bothinterrupt.onRegressionandtestCommand.denyWhenCurrent).Stopandstop-slowhandle end-of-turn news and slow check-group waits.
- Subagents: Each subagent is tracked as its own Squeal consumer with its own primer and transition cursor.