overlord-cli 0.2611201138.0 → 0.2611211050.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -0
- package/dist/connectors/AGENTS.md +4 -2
- package/dist/connectors/HARNESS-MATRIX.md +28 -27
- package/dist/connectors/README.md +23 -14
- package/dist/connectors/VERSION +1 -1
- package/dist/connectors/adapters/antigravity/CAPABILITIES.md +49 -26
- package/dist/connectors/adapters/antigravity/README.md +63 -15
- package/dist/connectors/adapters/antigravity/assets/logo.png +0 -0
- package/dist/connectors/adapters/antigravity/codec/antigravity.codec.yaml +66 -0
- package/dist/connectors/adapters/antigravity/codec/antigravity.decision-codec.yaml +26 -0
- package/dist/connectors/adapters/antigravity/conformance-manifest.yaml +8 -4
- package/dist/connectors/adapters/antigravity/fixtures/decision-codec.json +51 -0
- package/dist/connectors/adapters/antigravity/fixtures/hooks-registration.json +15 -0
- package/dist/connectors/adapters/antigravity/fixtures/mutation-window-evidence.json +12 -7
- package/dist/connectors/adapters/antigravity/fixtures/normalize-post-tool-use-failed.json +54 -0
- package/dist/connectors/adapters/antigravity/fixtures/normalize-post-tool-use-shell.json +50 -0
- package/dist/connectors/adapters/antigravity/fixtures/normalize-post-tool-use-write.json +58 -0
- package/dist/connectors/adapters/antigravity/fixtures/normalize-pre-invocation.json +37 -0
- package/dist/connectors/adapters/antigravity/fixtures/official-stop.json +32 -0
- package/dist/connectors/adapters/antigravity/fixtures/post-tool-use-hook.json +36 -0
- package/dist/connectors/adapters/antigravity/fixtures/post-tool-use-unbound.json +35 -0
- package/dist/connectors/adapters/antigravity/fixtures/pre-invocation-hook.json +35 -0
- package/dist/connectors/adapters/antigravity/fixtures/pre-invocation-inject.json +36 -0
- package/dist/connectors/adapters/antigravity/fixtures/pre-invocation-unbound.json +29 -0
- package/dist/connectors/adapters/antigravity/fixtures/stop-delivery-reminder.json +37 -0
- package/dist/connectors/adapters/antigravity/fixtures/stop-hook-failure.json +37 -0
- package/dist/connectors/adapters/antigravity/fixtures/stop-inbox-inject.json +35 -0
- package/dist/connectors/adapters/antigravity/fixtures/unbound-session.json +27 -10
- package/dist/connectors/adapters/antigravity/harness-capabilities.yaml +133 -51
- package/dist/connectors/adapters/antigravity/hooks/overlord-pre-invocation.sh +30 -0
- package/dist/connectors/adapters/antigravity/hooks/overlord-stop.sh +37 -0
- package/dist/connectors/adapters/antigravity/hooks.json +31 -1
- package/dist/connectors/adapters/antigravity/mcp_config.json +1 -2
- package/dist/connectors/adapters/antigravity/plugin.json +9 -2
- package/dist/connectors/adapters/claude/.claude-plugin/plugin.json +5 -8
- package/dist/connectors/adapters/claude/.mcp.json +8 -0
- package/dist/connectors/adapters/claude/CAPABILITIES.md +32 -20
- package/dist/connectors/adapters/claude/README.md +84 -15
- package/dist/connectors/adapters/claude/codec/claude.decision-codec.yaml +13 -5
- package/dist/connectors/adapters/claude/conformance-manifest.yaml +4 -6
- package/dist/connectors/adapters/claude/fixtures/decision-codec.json +8 -9
- package/dist/connectors/adapters/claude/fixtures/decision-hook-registration.json +17 -0
- package/dist/connectors/adapters/claude/fixtures/hook-capture-fail-open.json +60 -0
- package/dist/connectors/adapters/claude/fixtures/hook-decision-no-approval-on-failure.json +74 -0
- package/dist/connectors/adapters/claude/fixtures/hook-nested-session-gate.json +148 -0
- package/dist/connectors/adapters/claude/fixtures/hook-stop-fail-open.json +61 -0
- package/dist/connectors/adapters/claude/fixtures/hooks-fail-open-registration.json +32 -0
- package/dist/connectors/adapters/claude/fixtures/native-payload-shapes.json +206 -0
- package/dist/connectors/adapters/claude/fixtures/normalize-post-tool-use-shell.json +1 -7
- package/dist/connectors/adapters/claude/fixtures/normalize-post-tool-use-write.json +2 -10
- package/dist/connectors/adapters/claude/fixtures/normalize-session-start.json +1 -4
- package/dist/connectors/adapters/claude/fixtures/normalize-user-prompt-submit.json +1 -5
- package/dist/connectors/adapters/claude/fixtures/permission-request.json +14 -5
- package/dist/connectors/adapters/claude/fixtures/post-tool-use-capture.json +54 -13
- package/dist/connectors/adapters/claude/fixtures/post-tool-use-parity.json +6 -3
- package/dist/connectors/adapters/claude/fixtures/probe-decision-fail-closed.json +45 -0
- package/dist/connectors/adapters/claude/fixtures/probe-fail-open.json +48 -0
- package/dist/connectors/adapters/claude/fixtures/probe-stop-heartbeat.json +40 -0
- package/dist/connectors/adapters/claude/fixtures/status-line-opt-in.json +16 -0
- package/dist/connectors/adapters/claude/fixtures/status-line-payload.json +29 -0
- package/dist/connectors/adapters/claude/fixtures/status-line-side-effect-free.json +16 -0
- package/dist/connectors/adapters/claude/fixtures/subagent-identity.json +143 -0
- package/dist/connectors/adapters/claude/fixtures/subagent-stop-background.json +95 -0
- package/dist/connectors/adapters/claude/fixtures/unbound-session.json +134 -12
- package/dist/connectors/adapters/claude/harness-capabilities.yaml +151 -57
- package/dist/connectors/adapters/claude/hooks/hooks.json +33 -6
- package/dist/connectors/adapters/claude/skills/overlord-mission/SKILL.md +4 -4
- package/dist/connectors/adapters/codex/.codex-plugin/plugin.json +1 -1
- package/dist/connectors/adapters/codex/CAPABILITIES.md +24 -10
- package/dist/connectors/adapters/codex/README.md +31 -5
- package/dist/connectors/adapters/codex/codec/codex.codec.yaml +9 -0
- package/dist/connectors/adapters/codex/conformance-manifest.yaml +2 -2
- package/dist/connectors/adapters/codex/fixtures/control-plane-surface-guard.json +26 -0
- package/dist/connectors/adapters/codex/fixtures/control-plane-surface-prompt-guard.json +24 -0
- package/dist/connectors/adapters/codex/fixtures/decision-codec.json +13 -9
- package/dist/connectors/adapters/codex/fixtures/normalize-post-tool-use-failed.json +2 -0
- package/dist/connectors/adapters/codex/fixtures/normalize-post-tool-use-rename.json +2 -0
- package/dist/connectors/adapters/codex/fixtures/normalize-post-tool-use-subagent.json +53 -0
- package/dist/connectors/adapters/codex/fixtures/normalize-post-tool-use.json +2 -0
- package/dist/connectors/adapters/codex/fixtures/normalize-pre-tool-use.json +2 -0
- package/dist/connectors/adapters/codex/fixtures/normalize-session-start.json +2 -0
- package/dist/connectors/adapters/codex/fixtures/normalize-user-prompt.json +2 -0
- package/dist/connectors/adapters/codex/fixtures/permission-request.json +22 -7
- package/dist/connectors/adapters/codex/fixtures/shell-session-env.json +28 -0
- package/dist/connectors/adapters/codex/fixtures/status-line-opt-in.json +22 -0
- package/dist/connectors/adapters/codex/fixtures/status-line-provider.json +124 -0
- package/dist/connectors/adapters/codex/fixtures/status-line-state.json +90 -0
- package/dist/connectors/adapters/codex/fixtures/stop.json +28 -0
- package/dist/connectors/adapters/codex/harness-capabilities.yaml +118 -20
- package/dist/connectors/adapters/codex/scripts/permission-hook.sh +5 -0
- package/dist/connectors/adapters/codex/scripts/user-prompt-submit-hook.sh +5 -0
- package/dist/connectors/adapters/codex-app-server/CAPABILITIES.md +149 -0
- package/dist/connectors/adapters/codex-app-server/README.md +251 -0
- package/dist/connectors/adapters/codex-app-server/codec/codex-app-server.codec.yaml +150 -0
- package/dist/connectors/adapters/codex-app-server/conformance-manifest.yaml +24 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/human-answers-control-plane-cards.json +17 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/launch-mints-control-plane-channel.json +20 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/mutation-window-evidence.json +29 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-child-file-change.json +74 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-command-completed.json +67 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-command-started.json +61 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-file-change-completed.json +70 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-file-change-declined.json +71 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-file-change-started.json +64 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-fork-started.json +79 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-steer-message.json +50 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-subagent-started.json +51 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-thread-started.json +77 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-turn-interrupted.json +44 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-user-message.json +50 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/reasked-approval-occurrence.json +14 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/replay-child-thread.json +692 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/replay-command-approval.json +465 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/replay-concurrent-answer.json +278 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/replay-handshake.json +242 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/replay-history-import.json +974 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/replay-inject-steer.json +235 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/replay-inject-turn-boundary.json +403 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/replay-interrupt.json +199 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/replay-patch-approval.json +266 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/replay-version-gate.json +84 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/server-socket-owner-only.json +24 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/status-line-provider.json +125 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/status-line-thread-index.json +15 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/supervisor-reaps-orphans.json +17 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/supervisor-watchdog.json +14 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/trust-entry-cleanup.json +13 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/unbound-session.json +13 -0
- package/dist/connectors/adapters/codex-app-server/harness-capabilities.yaml +384 -0
- package/dist/connectors/adapters/cursor/.cursor-plugin/plugin.json +1 -1
- package/dist/connectors/adapters/cursor/CAPABILITIES.md +3 -3
- package/dist/connectors/adapters/cursor/conformance-manifest.yaml +2 -2
- package/dist/connectors/adapters/cursor/fixtures/claude-plugin-import-guard.json +17 -0
- package/dist/connectors/adapters/cursor/harness-capabilities.yaml +12 -7
- package/dist/connectors/adapters/opencode/conformance-manifest.yaml +1 -1
- package/dist/connectors/adapters/pi/conformance-manifest.yaml +1 -1
- package/dist/connectors/core/scripts/agent-session-hook.sh +4 -0
- package/dist/connectors/core/scripts/capture-change-hook.sh +5 -0
- package/dist/connectors/core/scripts/overlord-mcp.mjs +668 -38
- package/dist/connectors/docs/05-connectors-and-agent-plugins.md +12 -4
- package/dist/connectors/docs/testing.md +12 -4
- package/dist/index.js +12809 -6328
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/dist/connectors/adapters/claude/fixtures/inject-async-rewake.json +0 -13
- package/dist/connectors/adapters/claude/fixtures/inject-stop-block.json +0 -9
- package/dist/connectors/adapters/claude/scripts/permission-hook.sh +0 -21
- package/dist/connectors/adapters/claude/scripts/stop-hook.sh +0 -81
- package/dist/connectors/adapters/claude/scripts/user-prompt-submit-hook.sh +0 -121
package/README.md
CHANGED
|
@@ -226,6 +226,67 @@ Notes for headless use:
|
|
|
226
226
|
installable connectors with `ovld agent-setup --json`.
|
|
227
227
|
- `ovld agent-setup codex --export <dir>` renders the self-contained plugin
|
|
228
228
|
package into an empty directory without changing the user's Codex setup.
|
|
229
|
+
- Codex runs the Overlord hooks only after you approve them in Codex `/hooks`,
|
|
230
|
+
and needs approval again after every connector update. `codex exec` skips
|
|
231
|
+
unapproved hooks silently. `ovld agent-setup codex` and `ovld doctor` report
|
|
232
|
+
hooks that need approval. In an untrusted directory, `codex exec` also needs
|
|
233
|
+
`--trust` to load project config and MCP servers (Codex 0.169+).
|
|
234
|
+
- Codex app-server mode (experimental, Codex 0.170+): with the Codex launch setting
|
|
235
|
+
*Run through the Codex app server* (Settings → Terminal & IDE), a project launch
|
|
236
|
+
env var `OVERLORD_CODEX_APP_SERVER=1`, or that variable in the runner's own
|
|
237
|
+
environment, `ovld launch` and runner claims run a Codex objective through a
|
|
238
|
+
private Codex app server driven by `ovld agent-session sidecar --agent
|
|
239
|
+
codex-app-server`. The terminal only attaches; a runner without a terminal needs
|
|
240
|
+
none. `ovld agent-session attach [--objective-id <ref>]` opens the Codex TUI on
|
|
241
|
+
a running session, and `ovld doctor` lists those sessions. The launch falls back
|
|
242
|
+
to the terminal when Codex is missing or older than 0.170 (tested with 0.171).
|
|
243
|
+
Approval cards are answered in the web app (only by the member who launched the
|
|
244
|
+
session) or in the attached TUI; follow-ups, steering and interrupts are typed in
|
|
245
|
+
the TUI. A direct `ovld launch` takes the session's approval policy and sandbox
|
|
246
|
+
from `--flag` (for example `--flag=--ask-for-approval=untrusted`); runners use
|
|
247
|
+
the saved launch flags. While the session runs Codex trusts its working
|
|
248
|
+
directory, so that checkout's Codex config, hooks and MCP servers load; the entry
|
|
249
|
+
is removed when the session ends. Security model and troubleshooting:
|
|
250
|
+
`connectors/adapters/codex-app-server/README.md`.
|
|
251
|
+
- `ovld models codex [--provider <id>] [--json]` lists the models and reasoning
|
|
252
|
+
efforts the Codex installation on this machine supports, asked live through a
|
|
253
|
+
short-lived `codex app-server` (read only; it starts no thread). `--sync` also
|
|
254
|
+
makes them the workspace's Codex models, so the model and effort picker offers
|
|
255
|
+
what Codex can run (needs `launch:configure`; `--workspace-id <id>` picks the
|
|
256
|
+
workspace). `ovld runner start` and the runner service send the same report when
|
|
257
|
+
they start and every 6 hours. Your Codex account's email and ids never leave the
|
|
258
|
+
machine; only the account type and plan are shown. Without a reachable Codex the
|
|
259
|
+
command shows Overlord's bundled defaults. A Codex launch whose model or effort the
|
|
260
|
+
installation does not list stops with the list of available models instead of
|
|
261
|
+
failing in the terminal; when Codex cannot be asked, the launch is not checked.
|
|
262
|
+
- Claude Code needs version 2.1.328 or later: the plugin's hooks are `mcp_tool`
|
|
263
|
+
hooks served by its bundled `plugin:overlord:overlord-hooks` MCP server, which
|
|
264
|
+
needs `node` on `PATH`. `ovld agent-setup claude` and `ovld doctor` report an
|
|
265
|
+
older Claude Code, a disabled plugin, or a hooks server that is not connected.
|
|
266
|
+
Until that is fixed, follow-up capture, file capture and the Stop reminder are
|
|
267
|
+
off; the `ovld protocol` commands still work as the fallback (declare changed
|
|
268
|
+
files with `--paths`). `ovld launch` adds the fail-closed permission-decision
|
|
269
|
+
hook only for sessions it launches with a session channel.
|
|
270
|
+
- `ovld agent-setup claude --status-line` adds a Claude Code status line that shows
|
|
271
|
+
the session's bound mission and objective (display ids and titles) and whether it
|
|
272
|
+
is awaiting an answer or approval, blocked on a question, or delivered. It is
|
|
273
|
+
opt-in (an interactive `ovld agent-setup claude` asks, defaulting to no) and is
|
|
274
|
+
written only when `~/.claude/settings.json` has no `statusLine`; an existing status
|
|
275
|
+
line is kept, and setup prints how to pipe the same stdin into
|
|
276
|
+
`ovld status-line --agent claude --payload-file -` from your own script. The
|
|
277
|
+
command prints nothing in a session that is not bound to a mission, answers from a
|
|
278
|
+
local cache, and refreshes it in the background. Remove the `statusLine` key to
|
|
279
|
+
turn it off.
|
|
280
|
+
- `ovld agent-setup codex --status-line` does the same for Codex 0.171+: it turns on
|
|
281
|
+
the experimental `tui_extensions_statusline` feature and selects the Overlord
|
|
282
|
+
plugin's status line provider (`overlord` / `overlord_status_line`) in
|
|
283
|
+
`~/.codex/config.toml`, only when no provider is selected and the feature is not
|
|
284
|
+
turned off. The provider replaces Codex's built-in footer, so it keeps the model,
|
|
285
|
+
folder and context left and adds the segment from
|
|
286
|
+
`ovld status-line --agent codex --ui-tree --native-session-id <thread id>`. A
|
|
287
|
+
thread binds through the native-session index, which `ovld protocol attach` writes
|
|
288
|
+
from `CODEX_SESSION_ID` and the app-server sidecar writes for its thread. Choose
|
|
289
|
+
another provider in `/statusline` to turn it off.
|
|
229
290
|
- Set `OVLD_HOME=/some/writable/dir` if the default `~/.ovld` is not writable in
|
|
230
291
|
your container; it relocates the entire CLI data directory.
|
|
231
292
|
- Interactive `ovld auth login` / `ovld config set` (no args) and `ovld setup`
|
|
@@ -108,9 +108,11 @@ read, search, and fetch callbacks append no evidence but still record callback o
|
|
|
108
108
|
Patch-text extraction reduces `*** Add|Update|Delete File:` and `*** Move to:` headers, so a
|
|
109
109
|
rename keeps both endpoints. Every hook
|
|
110
110
|
registration must be backed by a `script-io` fixture, and every mutation window claim must be
|
|
111
|
-
backed by a `mutation-window` fixture.
|
|
111
|
+
backed by a `mutation-window` fixture. Codex, Cursor and Antigravity render this callback from
|
|
112
112
|
`connectors/core/scripts/capture-change-hook.sh`; their adapter directories own only the native
|
|
113
|
-
managed path and registration, not copies of the implementation.
|
|
113
|
+
managed path and registration, not copies of the implementation. Claude registers an `mcp_tool`
|
|
114
|
+
hook instead, served by the shim's `--hooks` mode, which spawns the same `capture-change`; its
|
|
115
|
+
fixtures run that shim (`script-io` with `args` and `stdinMessages`).
|
|
114
116
|
|
|
115
117
|
### The event codec
|
|
116
118
|
|
|
@@ -13,46 +13,47 @@ Legend: ✅ supported (fixture-proven) · ⛔ unsupported (harness cannot) ·
|
|
|
13
13
|
|
|
14
14
|
| Adapter | Harness | Verified version | Shape | Tier | Mutation evidence | Binding | Decision hold |
|
|
15
15
|
| --- | --- | --- | --- | --- | --- | --- | --- |
|
|
16
|
-
| [`antigravity`](adapters/antigravity/CAPABILITIES.md) | Antigravity CLI | `docs
|
|
17
|
-
| [`claude`](adapters/claude/CAPABILITIES.md) | Claude Code | `2.1.
|
|
18
|
-
| [`codex`](adapters/codex/CAPABILITIES.md) | Codex CLI | `0.
|
|
16
|
+
| [`antigravity`](adapters/antigravity/CAPABILITIES.md) | Antigravity CLI | `docs + agy changelog 1.5.13` | `callback` | 1 (Observational) | `post-only` | ✅ supported | ❓ unverified |
|
|
17
|
+
| [`claude`](adapters/claude/CAPABILITIES.md) | Claude Code | `2.1.329` | `callback` | 1 (Observational) | `post-only` | ✅ supported | ✅ supported |
|
|
18
|
+
| [`codex`](adapters/codex/CAPABILITIES.md) | Codex CLI | `0.171.0` | `callback` | 1 (Observational) | `post-only` | ✅ supported | ✅ supported |
|
|
19
|
+
| [`codex-app-server`](adapters/codex-app-server/CAPABILITIES.md) | Codex app server | `0.171.0` | `controlPlane` | 3 (Conversational) | `paired` | ✅ supported | ✅ supported |
|
|
19
20
|
| [`cursor`](adapters/cursor/CAPABILITIES.md) | Cursor Agent CLI | `2026.08.04-aaa8809` | `callback` | 1 (Observational) | `post-only` | ✅ supported | ✅ supported |
|
|
20
21
|
| [`opencode`](adapters/opencode/CAPABILITIES.md) | OpenCode | — | `controlPlane` | 3 (Conversational) | `post-only` | ✅ supported | ✅ supported |
|
|
21
22
|
| [`pi`](adapters/pi/CAPABILITIES.md) | Pi Coding Agent | `0.83.0` | `extension` | 1 (Observational) | `unsupported` | ✅ supported | 🚧 not-implemented |
|
|
22
23
|
|
|
23
24
|
## Capabilities
|
|
24
25
|
|
|
25
|
-
| Capability | `antigravity` | `claude` | `codex` | `cursor` | `opencode` | `pi` |
|
|
26
|
-
| --- | --- | --- | --- | --- | --- | --- |
|
|
27
|
-
| `observe.prompt` |
|
|
28
|
-
| `observe.toolCall` | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented |
|
|
29
|
-
| `observe.toolResult` |
|
|
30
|
-
| `observe.fileEdit` |
|
|
31
|
-
| `observe.sessionLifecycle` | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented | ✅ supported | 🚧 not-implemented |
|
|
32
|
-
| `decide.shell` | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented | ✅ supported | 🚧 not-implemented |
|
|
33
|
-
| `decide.mcp` | ❓ unverified | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented | ✅ supported | 🚧 not-implemented |
|
|
34
|
-
| `decide.fileWrite` | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented |
|
|
35
|
-
| `decide.anyTool` | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented | ✅ supported | 🚧 not-implemented |
|
|
36
|
-
| `decide.universal` | ❓ unverified | 🚧 not-implemented | 🚧 not-implemented | ⛔ unsupported | 🚧 not-implemented | 🚧 not-implemented |
|
|
37
|
-
| `answer.structuredQuestion` | ❓ unverified | ❓ unverified | ❓ unverified | ⛔ unsupported | 🚧 not-implemented | 🚧 not-implemented |
|
|
38
|
-
| `answer.persistentAllow` | 🚧 not-implemented | 🚧 not-implemented | ❓ unverified | ⛔ unsupported | 🚧 not-implemented | ⛔ unsupported |
|
|
39
|
-
| `inject.midTurn` | ⛔ unsupported | 🚧 not-implemented | ❓ unverified | ⛔ unsupported | ✅ supported | 🚧 not-implemented |
|
|
40
|
-
| `inject.turnBoundary` |
|
|
41
|
-
| `inject.nextTurn` | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented | ✅ supported | ✅ supported | 🚧 not-implemented |
|
|
42
|
-
| `terminal.concurrentAnswer` | ❓ unverified | ⛔ unsupported | ⛔ unsupported | ⛔ unsupported | ✅ supported | ⛔ unsupported |
|
|
43
|
-
| `terminal.statusSurface` | ❓ unverified |
|
|
26
|
+
| Capability | `antigravity` | `claude` | `codex` | `codex-app-server` | `cursor` | `opencode` | `pi` |
|
|
27
|
+
| --- | --- | --- | --- | --- | --- | --- | --- |
|
|
28
|
+
| `observe.prompt` | ✅ supported | ✅ supported | ✅ supported | ✅ supported | ✅ supported | 🚧 not-implemented | ✅ supported |
|
|
29
|
+
| `observe.toolCall` | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented | ✅ supported | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented |
|
|
30
|
+
| `observe.toolResult` | ✅ supported | 🚧 not-implemented | 🚧 not-implemented | ✅ supported | ✅ supported | ✅ supported | 🚧 not-implemented |
|
|
31
|
+
| `observe.fileEdit` | ✅ supported | ✅ supported | ✅ supported | ✅ supported | ✅ supported | 🚧 not-implemented | 🚧 not-implemented |
|
|
32
|
+
| `observe.sessionLifecycle` | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented | ✅ supported | 🚧 not-implemented | ✅ supported | 🚧 not-implemented |
|
|
33
|
+
| `decide.shell` | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented | ✅ supported | 🚧 not-implemented | ✅ supported | 🚧 not-implemented |
|
|
34
|
+
| `decide.mcp` | ❓ unverified | 🚧 not-implemented | 🚧 not-implemented | ❓ unverified | 🚧 not-implemented | ✅ supported | 🚧 not-implemented |
|
|
35
|
+
| `decide.fileWrite` | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented | ✅ supported | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented |
|
|
36
|
+
| `decide.anyTool` | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented | ⛔ unsupported | 🚧 not-implemented | ✅ supported | 🚧 not-implemented |
|
|
37
|
+
| `decide.universal` | ❓ unverified | 🚧 not-implemented | 🚧 not-implemented | ⛔ unsupported | ⛔ unsupported | 🚧 not-implemented | 🚧 not-implemented |
|
|
38
|
+
| `answer.structuredQuestion` | ❓ unverified | ❓ unverified | ❓ unverified | ❓ unverified | ⛔ unsupported | 🚧 not-implemented | 🚧 not-implemented |
|
|
39
|
+
| `answer.persistentAllow` | 🚧 not-implemented | 🚧 not-implemented | ❓ unverified | 🚧 not-implemented | ⛔ unsupported | 🚧 not-implemented | ⛔ unsupported |
|
|
40
|
+
| `inject.midTurn` | ⛔ unsupported | 🚧 not-implemented | ❓ unverified | ✅ supported | ⛔ unsupported | ✅ supported | 🚧 not-implemented |
|
|
41
|
+
| `inject.turnBoundary` | ✅ supported | 🚧 not-implemented | 🚧 not-implemented | ✅ supported | ✅ supported | ✅ supported | 🚧 not-implemented |
|
|
42
|
+
| `inject.nextTurn` | 🚧 not-implemented | 🚧 not-implemented | 🚧 not-implemented | ✅ supported | ✅ supported | ✅ supported | 🚧 not-implemented |
|
|
43
|
+
| `terminal.concurrentAnswer` | ❓ unverified | ⛔ unsupported | ⛔ unsupported | ✅ supported | ⛔ unsupported | ✅ supported | ⛔ unsupported |
|
|
44
|
+
| `terminal.statusSurface` | ❓ unverified | ✅ supported | ✅ supported | ✅ supported | ❓ unverified | 🚧 not-implemented | 🚧 not-implemented |
|
|
44
45
|
|
|
45
46
|
## Open hazards
|
|
46
47
|
|
|
47
48
|
| Adapter | Hazard | Severity | Verification | Mitigation | Tracked as |
|
|
48
49
|
| --- | --- | --- | --- | --- | --- |
|
|
49
|
-
| `antigravity` | `
|
|
50
|
-
| `claude` | `
|
|
51
|
-
| `claude` | `fork-and-subagent-identity-unknown` | medium | unverified | required | `taxonomy-7.6` |
|
|
52
|
-
| `claude` | `subagent-stop-unregistered` | medium | verified | required | `coo:585` |
|
|
50
|
+
| `antigravity` | `per-invocation-hook-spawn` | low | verified | accepted | — |
|
|
51
|
+
| `claude` | `hook-tool-unlisted-call` | medium | verified | required | `coo:1323.2ewy` |
|
|
53
52
|
| `codex` | `prompt-and-agent-hook-handlers-inert` | low | verified | accepted | — |
|
|
54
53
|
| `codex` | `hooks-version-and-platform-gate` | medium | verified | required | `agent-session-phase-4` |
|
|
55
|
-
| `
|
|
54
|
+
| `codex` | `plugin-hook-trust-pinned-to-bundle` | high | verified | accepted | — |
|
|
55
|
+
| `codex-app-server` | `human-session-controls-closed` | low | verified | required | `coo-1325-control-plane-human-controls` |
|
|
56
|
+
| `codex-app-server` | `same-user-agent-reaches-credentials` | medium | verified | accepted | — |
|
|
56
57
|
| `cursor` | `allowlist-precedence` | medium | unverified | required | `taxonomy-7.8` |
|
|
57
58
|
| `opencode` | `harness-version-unverified` | medium | unverified | required | `agent-session-verify-opencode-frames` |
|
|
58
59
|
| `pi` | `no-native-floor-fails-open` | high | verified | accepted | — |
|
|
@@ -25,7 +25,7 @@ OpenCode, Antigravity, and others). A connector is what lets an agent speak the
|
|
|
25
25
|
Install or refresh a connector with:
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
|
-
ovld agent-setup <agent> # claude | codex | cursor | pi | antigravity | opencode | all
|
|
28
|
+
ovld agent-setup <agent> # claude | codex | codex-app-server | cursor | pi | antigravity | opencode | all
|
|
29
29
|
ovld doctor # verify managed files and permissions
|
|
30
30
|
```
|
|
31
31
|
|
|
@@ -41,6 +41,7 @@ connector contract version changes.
|
|
|
41
41
|
- [PI](adapters/pi/README.md): PI Agent skill and extension with follow-up capture and native-session resume.
|
|
42
42
|
- [Antigravity](adapters/antigravity/README.md): Antigravity plugin exposing the local mission workflow to Antigravity CLI/IDE sessions.
|
|
43
43
|
- [OpenCode](adapters/opencode/README.md): control-plane connector (Shape C) driven by `ovld agent-session sidecar` — no hook scripts.
|
|
44
|
+
- [Codex app server](adapters/codex-app-server/README.md): experimental control-plane connector for Codex driven by `ovld agent-session sidecar --agent codex-app-server` against a private `codex app-server` — no hook scripts; behind `OVERLORD_CODEX_APP_SERVER=1`.
|
|
44
45
|
|
|
45
46
|
### Plugin marketplace
|
|
46
47
|
|
|
@@ -103,9 +104,10 @@ contributor adding an adapter can tell signal from neglect. Source of truth for
|
|
|
103
104
|
| `claude` | `commands/` | `hooks/hooks.json` (3 types) | — | — | — | — |
|
|
104
105
|
| `codex` | — | `.codex-plugin/hooks.json` + `scripts/*.sh` (2 types) | rendered | `.mcp.json` | — | yes |
|
|
105
106
|
| `cursor` | `commands/` | `hooks/*.sh` (4 types) | rendered | `mcp.json` | `rules/` | — |
|
|
106
|
-
| `antigravity` | `skills/*.md` | `hooks.json` (
|
|
107
|
+
| `antigravity` | `skills/*.md` | `hooks.json` + `hooks/*.sh` (3 types) | rendered | `mcp_config.json` | — | — |
|
|
107
108
|
| `pi` | — | `extensions/overlord.ts` (input/tool/session events) | — | — | — | yes |
|
|
108
109
|
| `opencode` | — | none — control plane, see below | — | — | — | — |
|
|
110
|
+
| `codex-app-server` | — | none — control plane, see below | — | — | — | — |
|
|
109
111
|
|
|
110
112
|
Intentional omissions:
|
|
111
113
|
|
|
@@ -115,13 +117,20 @@ Intentional omissions:
|
|
|
115
117
|
alongside the harness. The sidecar implements event reconciliation, concurrent permission
|
|
116
118
|
observation, and `prompt_async` instruction delivery, but the bundled agent catalog does not
|
|
117
119
|
yet start it automatically. A supervised execution target must supply that launch integration.
|
|
118
|
-
- **`
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
120
|
+
- **`codex-app-server` ships no hooks either.** It drives Codex through `codex app-server`
|
|
121
|
+
instead of the plugin hooks, and the private server's environment silences the `codex`
|
|
122
|
+
plugin's hooks inside it (`OVERLORD_CONTROL_PLANE_SURFACE`), so one Codex session is never
|
|
123
|
+
reported through both. It is experimental and launch does not start it yet.
|
|
124
|
+
- **Only the `codex` shim is a status line provider.** The Codex rendering of the local MCP
|
|
125
|
+
shim also lists `overlord_status_line` and serves `ui://overlord/status-line`, the Codex 0.171
|
|
126
|
+
statusline provider (`terminal.statusSurface`, ADR 0093). It is a terminal UI surface, not a
|
|
127
|
+
protocol operation, so the hosted MCP server and the other shims have no equivalent; Claude's
|
|
128
|
+
status line is the `ovld status-line` command itself.
|
|
129
|
+
- **`claude` ships no hook scripts.** Its hooks are `mcp_tool` hooks (Claude Code 2.1.328+)
|
|
130
|
+
that call the plugin-bundled `overlord-hooks` server, the core shim rendered in `--hooks`
|
|
131
|
+
mode, which lists no tools and forwards each hook to the same `ovld` command the CLI uses.
|
|
132
|
+
The model's tools still come from Overlord's hosted MCP server. The fail-closed
|
|
133
|
+
`PermissionRequest` hook is registered per launch by `ovld launch`, not in the plugin.
|
|
125
134
|
- **`pi` ships no shim, hooks directory, or commands.** PI integrates through one TypeScript
|
|
126
135
|
extension. It has no native permission dialog; its optional `tool_call` decision interceptor
|
|
127
136
|
is fail-open and requires explicit workspace and project opt-in.
|
|
@@ -135,8 +144,8 @@ work as its own mission rather than folding it into a docs change:
|
|
|
135
144
|
|
|
136
145
|
- `codex` ships no `commands/` while `claude` and `cursor` do, and `antigravity`
|
|
137
146
|
achieves the same surface through `skills/*.md`. No harness constraint is recorded.
|
|
138
|
-
- `antigravity` registers no
|
|
139
|
-
|
|
147
|
+
- `antigravity` registers no `PreToolUse` decision hook: its decision codec is pinned, but the
|
|
148
|
+
remote decision path needs a session channel that no launch creates yet (ADR 0090).
|
|
140
149
|
|
|
141
150
|
### Generated files
|
|
142
151
|
|
|
@@ -144,10 +153,10 @@ The local MCP shim and post-tool capture callback are **generated**, not committ
|
|
|
144
153
|
adapter. `ovld agent-setup` renders their core sources with the adapter key substituted:
|
|
145
154
|
|
|
146
155
|
- [`core/scripts/overlord-mcp.mjs`](core/scripts/overlord-mcp.mjs) becomes the local MCP
|
|
147
|
-
shim for Codex, Cursor, and Antigravity.
|
|
156
|
+
shim for Codex, Cursor, and Antigravity, and Claude's `overlord-hooks` server (`--hooks`).
|
|
148
157
|
- [`core/scripts/capture-change-hook.sh`](core/scripts/capture-change-hook.sh) becomes
|
|
149
|
-
|
|
150
|
-
`hooks
|
|
158
|
+
Codex's `scripts/post-tool-use-hook.sh` and Cursor's `hooks/overlord-post-tool-use.sh`.
|
|
159
|
+
Claude reaches the same `ovld protocol capture-change` through its hooks server.
|
|
151
160
|
|
|
152
161
|
Edit the core source; there are no adapter copies. Installed paths and native hook
|
|
153
162
|
registrations remain harness-specific.
|
package/dist/connectors/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.84
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
# Antigravity CLI — Overlord agent-session capabilities
|
|
4
4
|
|
|
5
|
-
**Adapter** `antigravity` · **Codec** `antigravity` · **Integration shape** `callback` · **Capability tier**
|
|
5
|
+
**Adapter** `antigravity` · **Codec** `antigravity` · **Integration shape** `callback` · **Capability tier** 1 (Observational)
|
|
6
6
|
|
|
7
|
-
**Harness version verified** `docs
|
|
7
|
+
**Harness version verified** `docs + agy changelog 1.5.13` · **range** `>=1.5.4` · **scheme** `semver`
|
|
8
8
|
|
|
9
|
-
**Descriptor digest** `
|
|
9
|
+
**Descriptor digest** `c99353d29093e78117e61a930e091a5bdba53952a29c578cad8c113b397a1474`
|
|
10
10
|
|
|
11
11
|
> The tier is derived from passing fixtures, never authored. `unsupported` means the harness
|
|
12
12
|
> cannot do it — do not attempt it. `not-implemented` means it is buildable and unbuilt: that is
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
| Status | ✅ supported |
|
|
21
21
|
| Source | `payload` |
|
|
22
22
|
| Field | `conversationId` |
|
|
23
|
-
| Evidence | fixtures: `fixtures/
|
|
23
|
+
| Evidence | fixtures: `fixtures/normalize-pre-invocation.json` |
|
|
24
24
|
|
|
25
|
-
The first-party hook contract defines `conversationId` as the
|
|
25
|
+
The first-party hook contract defines `conversationId` as the UUID of the active conversation and includes it in every hook payload; the codec reads it as the native session id and `hook-event` persists it as the session's external id. It remains a correlation alias: the launch environment (or a verified channel credential) is the authorization and mission scope. Antigravity exports no conversation id to tool processes, so a chat-started attach cannot index itself and its hooks stay unbound.
|
|
26
26
|
|
|
27
27
|
The native session id is a **correlation alias only**. Authorization and mission scope come
|
|
28
28
|
from the verified channel/session credential; neither the working directory nor an unverified
|
|
@@ -33,59 +33,82 @@ native id is a binding authority.
|
|
|
33
33
|
| Field | Value |
|
|
34
34
|
| --- | --- |
|
|
35
35
|
| Status | ❓ unverified |
|
|
36
|
+
| Timeout field | `timeout` |
|
|
37
|
+
| Harness default | 30s |
|
|
36
38
|
| Harness ceiling | none documented |
|
|
37
|
-
| Evidence | tracked as `
|
|
39
|
+
| Evidence | tracked as `latch-engine` |
|
|
38
40
|
|
|
39
|
-
|
|
41
|
+
Hook `timeout` is in seconds with a 30-second default; no maximum is documented. The build guide states that a non-zero exit is logged and ignored ("failing open"), and agy 1.4.3 made a failing PostToolUse hook (missing command, error exit, timeout, invalid JSON) leave the tool result unchanged. Whether a PreToolUse hook held past its timeout falls back to the native permission prompt has not been exercised, and no decision hook is registered, so the hold stays unverified.
|
|
40
42
|
|
|
41
43
|
## Mutation-window evidence
|
|
42
44
|
|
|
43
45
|
| Field | Value |
|
|
44
46
|
| --- | --- |
|
|
45
|
-
| Classification | `
|
|
47
|
+
| Classification | `post-only` |
|
|
46
48
|
| Executable fixture | `fixtures/mutation-window-evidence.json` |
|
|
47
49
|
|
|
48
|
-
|
|
50
|
+
Only PostToolUse is registered, so evidence is post-only. A `write_to_file`, `replace_file_content` or `multi_replace_file_content` completion names its destination in `TargetFile`; the codec normalizes it to `file.edited` and decodes the outcome from `error` (empty or absent is success per the hook contract). Only an `ok` edit records objective-bound, non-exclusive `declared_edit`/`direct` evidence; a failed edit records `outcome_partial`, and `run_command` records `shell_activity_unverified`.
|
|
49
51
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
+
A completion callback path normalized by the connector-owned codec as `file.edited`
|
|
53
|
+
records objective-bound, non-exclusive `declared_edit`/`direct` evidence.
|
|
54
|
+
Codec-normalized read, search, and fetch callbacks are silent no-ops. Mutation-capable
|
|
55
|
+
callbacks without a normalized edit path, plus shell, generic, unknown, and unmapped
|
|
56
|
+
callbacks, record unavailable evidence health.
|
|
52
57
|
|
|
53
58
|
## Capabilities
|
|
54
59
|
|
|
55
60
|
| Capability | Status | Native | Evidence |
|
|
56
61
|
| --- | --- | --- | --- |
|
|
57
|
-
| `observe.prompt` |
|
|
58
|
-
| `observe.toolCall` | 🚧 not-implemented | `PreToolUse` | tracked as `
|
|
59
|
-
| `observe.toolResult` |
|
|
60
|
-
| `observe.fileEdit` |
|
|
61
|
-
| `observe.sessionLifecycle` | 🚧 not-implemented | `
|
|
62
|
-
| `decide.shell` | 🚧 not-implemented | `PreToolUse` | tracked as `
|
|
62
|
+
| `observe.prompt` | ✅ supported | `PreInvocation` | fixtures: `fixtures/normalize-pre-invocation.json`, `fixtures/pre-invocation-hook.json`, `fixtures/pre-invocation-unbound.json` |
|
|
63
|
+
| `observe.toolCall` | 🚧 not-implemented | `PreToolUse` | tracked as `latch-engine` |
|
|
64
|
+
| `observe.toolResult` | ✅ supported | `PostToolUse` | fixtures: `fixtures/normalize-post-tool-use-shell.json`, `fixtures/normalize-post-tool-use-failed.json` |
|
|
65
|
+
| `observe.fileEdit` | ✅ supported | `PostToolUse` | fixtures: `fixtures/normalize-post-tool-use-write.json`, `fixtures/normalize-post-tool-use-failed.json`, `fixtures/post-tool-use-hook.json`, `fixtures/post-tool-use-unbound.json` |
|
|
66
|
+
| `observe.sessionLifecycle` | 🚧 not-implemented | `SessionStart` | tracked as `latch-engine` |
|
|
67
|
+
| `decide.shell` | 🚧 not-implemented | `PreToolUse` | tracked as `latch-engine` |
|
|
63
68
|
| `decide.mcp` | ❓ unverified | — | tracked as `agent-session-verify-antigravity` |
|
|
64
|
-
| `decide.fileWrite` | 🚧 not-implemented | `PreToolUse` | tracked as `
|
|
65
|
-
| `decide.anyTool` | 🚧 not-implemented | `PreToolUse` | tracked as `
|
|
69
|
+
| `decide.fileWrite` | 🚧 not-implemented | `PreToolUse` | tracked as `latch-engine` |
|
|
70
|
+
| `decide.anyTool` | 🚧 not-implemented | `PreToolUse` | tracked as `latch-engine` |
|
|
66
71
|
| `decide.universal` | ❓ unverified | — | tracked as `agent-session-verify-antigravity` |
|
|
67
72
|
| `answer.structuredQuestion` | ❓ unverified | — | tracked as `agent-session-verify-antigravity` |
|
|
68
|
-
| `answer.persistentAllow` | 🚧 not-implemented | `PreToolUse.permissionOverrides` | tracked as `
|
|
73
|
+
| `answer.persistentAllow` | 🚧 not-implemented | `PreToolUse.permissionOverrides` | tracked as `latch-engine` |
|
|
69
74
|
| `inject.midTurn` | ⛔ unsupported | — | PreInvocation and PostInvocation can inject only at model-invocation boundaries; the hook surface has no path to deliver input while a model or tool call is actively running. (evidence: `https://antigravity.google/docs/hooks#preinvocation`) |
|
|
70
|
-
| `inject.turnBoundary` |
|
|
71
|
-
| `inject.nextTurn` | 🚧 not-implemented | `PreInvocation.injectSteps.userMessage` | tracked as `
|
|
75
|
+
| `inject.turnBoundary` | ✅ supported | `Stop` | fixtures: `fixtures/stop-delivery-reminder.json`, `fixtures/stop-inbox-inject.json`, `fixtures/stop-hook-failure.json`, `fixtures/official-stop.json` |
|
|
76
|
+
| `inject.nextTurn` | 🚧 not-implemented | `PreInvocation.injectSteps.userMessage` | tracked as `latch-engine` |
|
|
72
77
|
| `terminal.concurrentAnswer` | ❓ unverified | — | tracked as `agent-session-verify-antigravity` |
|
|
73
78
|
| `terminal.statusSurface` | ❓ unverified | — | tracked as `agent-session-verify-antigravity` |
|
|
74
79
|
|
|
80
|
+
### Capability notes
|
|
81
|
+
|
|
82
|
+
- **`observe.prompt`** — PreInvocation carries the latest user message as `lastUserInput` (a common hook field since agy 1.4.7, documented in the hook contract). It fires before every model invocation, so `hook-event` records a prompt only when it differs from the last one recorded for the conversation, and the launch prompt (turn 0) is skipped as for other adapters. The transcript is never read.
|
|
83
|
+
- **`observe.toolCall`** — The codec normalizes PreToolUse, but no PreToolUse hook is registered: the observation has no live path until Overlord has a native Conversation Hub client.
|
|
84
|
+
- **`observe.toolResult`** — PostToolUse carries the call and any `error`, never the tool output (build guide). The codec reduces it to a tool card with a decoded `ok`/`error` outcome; the error text is not retained.
|
|
85
|
+
- **`observe.fileEdit`** — The PostToolUse hook (matcher `write_to_file|replace_file_content| multi_replace_file_content|run_command`) runs the rendered core capture callback, which forwards the payload to local `capture-change --agent antigravity` only when `OVERLORD_OBJECTIVE_ID` is in the launch environment.
|
|
86
|
+
- **`decide.shell`** — PreToolUse returns `decision` for `run_command`. The decision codec pins the exact bytes (fixtures/decision-codec.json), but no launch creates a session channel and no PreToolUse hook is registered, so Antigravity's native permission flow stays the only authority.
|
|
87
|
+
- **`decide.mcp`** — The name a plugin MCP tool has in PreToolUse is not documented: the plugin docs namespace tools as `<plugin>_<server>` while the build guide's matcher example is `mcp_.*`.
|
|
88
|
+
- **`decide.universal`** — PreToolUse sees every tool call, but whether every approval Antigravity would prompt for (sandbox escapes, admin review) is decided through it is not documented; agy 1.5.7 made admin-enforced review ignore `auto_approve`.
|
|
89
|
+
- **`inject.turnBoundary`** — Stop `decision: "continue"` keeps the agent from stopping and injects `reason` as a system message. The live path is the once-per-objective delivery reminder from `hook-event`; it is skipped while `continuation_active` is true or `fullyIdle` is false. With a session channel the inbox instruction takes precedence, which is not a live path today.
|
|
90
|
+
- **`inject.nextTurn`** — The PreInvocation hook and the inbox encoder emit `injectSteps: [{ userMessage }]` before the next model call, proven by the fixture, but only for a session channel, which no launch creates today.
|
|
91
|
+
|
|
75
92
|
## Hazards
|
|
76
93
|
|
|
77
94
|
| Hazard | Severity | Verification | Mitigation | Tracked as |
|
|
78
95
|
| --- | --- | --- | --- | --- |
|
|
79
|
-
| `outside-verification-survey` | medium |
|
|
96
|
+
| `outside-verification-survey` | medium | verified | implemented | fixture `fixtures/hooks-registration.json` |
|
|
97
|
+
| `per-invocation-hook-spawn` | low | verified | accepted | — |
|
|
98
|
+
|
|
99
|
+
**`outside-verification-survey`** — Antigravity was not part of the original harness verification survey. Its hook names, payload fields, response shapes and failure behavior are now established by the first-party hook contract, the build guide ("any non-zero exit code is logged ... and ignored (failing open)") and the agy release notes, and every graded capability is fixture-proven against that contract. The connector registers only fail-open observational, reminder and inject hooks; it registers no decision hook, so no hook failure can block or approve a tool call. No live agy session at the 1.5.4 floor has been recorded (the local agy was 1.0.4).
|
|
80
100
|
|
|
81
|
-
**`
|
|
101
|
+
**`per-invocation-hook-spawn`** — PreInvocation runs before every model call, so a launched session spawns `ovld` once per invocation to record a prompt that usually has not changed. Repeats are dropped locally before any backend call; unlaunched sessions spawn nothing.
|
|
82
102
|
|
|
83
103
|
## Native decision shape
|
|
84
104
|
|
|
85
105
|
- **Codec** `antigravity`
|
|
86
|
-
- **Never send** `allow_tool`, `hookSpecificOutput`, `permissionDecision`, `permission`
|
|
106
|
+
- **Never send** `allow_tool`, `hookSpecificOutput`, `permissionDecision`, `permission`, `overwrite`
|
|
107
|
+
- **Allow fixture** `fixtures/decision-codec.json`
|
|
108
|
+
- **Deny fixture** `fixtures/decision-codec.json`
|
|
109
|
+
- **Defer fixture** `fixtures/decision-codec.json`
|
|
87
110
|
|
|
88
|
-
The
|
|
111
|
+
The PreToolUse response is `{ decision, reason?, overwrite?, permissionOverrides? }`. Antigravity's `allow` only defers to the next hook or default policy, so a remote approval is `auto_approve`; deny is `deny`; ask is silence, leaving the native permission flow. The connector never emits `overwrite`, which would rewrite tool arguments a person approved.
|
|
89
112
|
|
|
90
113
|
## Unbound-session negative test
|
|
91
114
|
|
|
@@ -19,8 +19,9 @@ Antigravity plugin that exposes the Overlord local mission workflow to Antigravi
|
|
|
19
19
|
### Requirements
|
|
20
20
|
|
|
21
21
|
- Overlord CLI (`ovld`) on `PATH`. See the Overlord docs / Settings → Agents & MCP.
|
|
22
|
-
- Antigravity CLI (`agy`) on `PATH` for Overlord-launched sessions and plugin enablement.
|
|
23
|
-
- `
|
|
22
|
+
- Antigravity CLI (`agy`) on `PATH` for Overlord-launched sessions and plugin enablement. The lifecycle hooks need agy **1.5.4 or later** (the release that adds `hookEventName`, `cwd` and `toolCall.id` to hook input); `ovld agent-setup antigravity` and `ovld doctor` warn when `agy` is older. Run `agy update`.
|
|
23
|
+
- `bash` for the hook scripts.
|
|
24
|
+
- `MISSION_ID`, `OVERLORD_MISSION_ID` and `OVERLORD_OBJECTIVE_ID` are exported automatically when an Antigravity session is launched from Overlord. The hooks act only in such a session.
|
|
24
25
|
|
|
25
26
|
### Install
|
|
26
27
|
|
|
@@ -30,7 +31,9 @@ From an OpenOverlord checkout:
|
|
|
30
31
|
ovld agent-setup antigravity
|
|
31
32
|
```
|
|
32
33
|
|
|
33
|
-
This copies the managed plugin files to `~/.gemini/
|
|
34
|
+
This copies the managed plugin files to `~/.gemini/config/plugins/overlord`, the global plugin directory that Antigravity (CLI, app and IDE) loads plugins from, and the same place `agy plugin install` stages a plugin. `agy` picks it up on next startup and registers its skills, MCP server and hooks (`/hooks` lists them).
|
|
35
|
+
|
|
36
|
+
Earlier connector versions installed to `~/.gemini/antigravity-cli/plugins/overlord`, which current `agy` releases do not scan. Re-running `ovld agent-setup antigravity` moves an existing install: files the earlier install wrote and you have not edited are removed from the old location, while edited files are left in place and named in the output. `ovld doctor` reports an install that is still at the old location, and any files in the plugin directory that Overlord does not manage (Antigravity loads everything in a plugin's folder, so a leftover skill from an older hand-installed copy still loads).
|
|
34
37
|
|
|
35
38
|
Re-run safely any time the connector contract version changes:
|
|
36
39
|
|
|
@@ -53,6 +56,7 @@ Inside Antigravity the plugin surfaces as:
|
|
|
53
56
|
|
|
54
57
|
- skills → `overlord-mission`, `attach`, `connect`, `load`, `create`, `prompt`, `discuss-objective`, `add-objectives`, `record-work` (each markdown skill also auto-registers as a `/<name>` slash command)
|
|
55
58
|
- MCP server → `overlord`
|
|
59
|
+
- hooks → the `overlord` group in `hooks.json`: `PreInvocation`, `PostToolUse`, `Stop`
|
|
56
60
|
|
|
57
61
|
Prompts generated by the runner should reference these names in bundle instruction mode.
|
|
58
62
|
|
|
@@ -69,29 +73,73 @@ This connector is intentionally reviewable against the four connector layers in
|
|
|
69
73
|
|
|
70
74
|
### What ships
|
|
71
75
|
|
|
72
|
-
- `plugin.json` — Antigravity plugin manifest (name
|
|
76
|
+
- `plugin.json` — Antigravity plugin manifest, kept to the documented schema (`$schema`, `name`, `displayName`, `version`, `description`, `logo`, `suggestedPrompts`, `author`, `homepage`, `repository`, `license`, `keywords`); the schema rejects unknown top-level fields.
|
|
77
|
+
- `assets/logo.png` — the plugin logo `plugin.json` points at.
|
|
73
78
|
- `skills/overlord-mission/SKILL.md` — Antigravity adapter template with a `<!-- @connector-core -->` marker; setup interpolates shared core content at install time.
|
|
74
79
|
- `skills/attach.md`, `skills/connect.md`, `skills/load.md`, `skills/create.md`, `skills/prompt.md`, `skills/discuss-objective.md`, `skills/add-objectives.md`, `skills/record-work.md` — one skill per protocol operation; Antigravity auto-registers each as a `/<name>` slash command.
|
|
75
|
-
- `hooks.json` —
|
|
76
|
-
- `
|
|
80
|
+
- `hooks.json` — one `overlord` hook group with three command hooks (see the mapping below). Plugin hooks run with the plugin folder as their working directory, so the commands are relative paths (`./hooks/…`), never `${PLUGIN_ROOT}`.
|
|
81
|
+
- `hooks/overlord-pre-invocation.sh`, `hooks/overlord-stop.sh` — thin shell hooks that gate on the launch environment and hand the native payload to `ovld protocol hook-event` / `ovld agent-session inbox`.
|
|
82
|
+
- `hooks/overlord-post-tool-use.sh` — **generated**: the core capture callback `connectors/core/scripts/capture-change-hook.sh`, rendered at setup with the adapter key. There is no copy in this directory.
|
|
83
|
+
- `codec/antigravity.codec.yaml`, `codec/antigravity.decision-codec.yaml` — the connector-owned event and PreToolUse decision dialects, compiled into the CLI by `yarn connectors:capabilities`.
|
|
84
|
+
- `harness-capabilities.yaml` + `fixtures/` — the fixture-backed capability descriptor; `CAPABILITIES.md` is generated from it.
|
|
85
|
+
- `mcp_config.json` + `scripts/overlord-mcp.mjs` — MCP bridge to common `ovld protocol` operations (requires `ovld` on `PATH` and valid credentials when talking to a live server). Antigravity namespaces the server as `overlord_overlord`. The shim is **generated**: it is rendered from `connectors/core/scripts/overlord-mcp.mjs` at setup time with the adapter key substituted, and there is no copy in this directory to edit.
|
|
77
86
|
- `conformance-manifest.yaml` — connector conformance declaration for the Overlord contract.
|
|
78
87
|
- `prompt-wrapper.md` — Antigravity launch guidance.
|
|
79
88
|
|
|
89
|
+
### Validation
|
|
90
|
+
|
|
91
|
+
`yarn connectors:antigravity:check` (part of `yarn connectors:check`) renders the managed files into a scratch plugin root, checks `plugin.json` and `mcp_config.json` against the documented plugin schema, and then runs `agy plugin validate --strict --json` on the result. The `agy` step is skipped when `agy` is not on `PATH` (set `OVERLORD_AGY_BIN` to use another binary); an `agy` too old for `--strict` runs the basic validator and says so.
|
|
92
|
+
|
|
80
93
|
The shared Connector Core source lives at `connectors/core/overlord-mission`. `ovld agent-setup antigravity` interpolates that core into the adapter skill template and installs core reference files so the runtime package is self-contained.
|
|
81
94
|
|
|
82
95
|
### Omissions
|
|
83
96
|
|
|
84
97
|
- **No model or effort flag at launch.** Antigravity selects the model internally, so Overlord passes neither. Deliberate.
|
|
85
98
|
- **No `commands/` directory.** Antigravity auto-registers each `skills/*.md` as a `/<name>` slash command, so a separate commands surface would be redundant. Deliberate.
|
|
86
|
-
- **No `
|
|
99
|
+
- **No `PreToolUse` decision hook.** The decision codec pins the exact response bytes, but no launch creates a session channel today, so Antigravity's own permission flow stays the only authority. `decide.*` are `not-implemented`.
|
|
100
|
+
- **No `SessionStart` or `PostInvocation` hooks.** Nothing in Overlord consumes them yet.
|
|
101
|
+
- **No chat-started binding.** Antigravity exports no conversation id to tool processes, so `ovld protocol attach` run by the agent cannot index its conversation; the hooks only act in sessions Overlord launched.
|
|
87
102
|
|
|
88
103
|
See the [adapter capability matrix](../../README.md#adapter-capability-matrix) for how this compares across adapters.
|
|
89
104
|
|
|
90
|
-
###
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
105
|
+
### Notes on the Antigravity hook mapping
|
|
106
|
+
|
|
107
|
+
Antigravity's hook contract (https://antigravity.google/docs/hooks) differs from Claude's in
|
|
108
|
+
three ways that shape the mapping: hook input is camelCase JSON, the submitted prompt is the
|
|
109
|
+
`lastUserInput` field rather than a prompt event, and Stop continues on `decision: "continue"`.
|
|
110
|
+
Every hook prints one JSON object (`{}` at minimum) when bound, and nothing at all when unbound.
|
|
111
|
+
A failing hook is logged and ignored by agy (fail-open), so no failure here can block or approve
|
|
112
|
+
a tool call.
|
|
113
|
+
|
|
114
|
+
| Antigravity event | Matcher / input | Script | Overlord path | Capability |
|
|
115
|
+
| --- | --- | --- | --- | --- |
|
|
116
|
+
| `PreInvocation` | `lastUserInput`, `conversationId` | `hooks/overlord-pre-invocation.sh` | `ovld protocol hook-event --hook-type UserPromptSubmit` records a follow-up; with a session channel, `ovld agent-session inbox` answers `{"injectSteps":[{"userMessage":…}]}` | `observe.prompt` ✅, `inject.nextTurn` 🚧 (channel not wired) |
|
|
117
|
+
| `PostToolUse` | `write_to_file\|replace_file_content\|multi_replace_file_content\|run_command` | `hooks/overlord-post-tool-use.sh` (core) | `ovld protocol capture-change --agent antigravity` | `observe.fileEdit` ✅, `observe.toolResult` ✅ |
|
|
118
|
+
| `Stop` | `continuation_active`, `fullyIdle` | `hooks/overlord-stop.sh` | with a session channel, inbox first; otherwise `hook-event --hook-type Stop` answers the delivery reminder `{"decision":"continue","reason":…}` | `inject.turnBoundary` ✅ |
|
|
119
|
+
| `PreToolUse` | — | not registered | decision codec only (`auto_approve` / `deny` / silence) | `decide.*` 🚧 |
|
|
120
|
+
|
|
121
|
+
Details:
|
|
122
|
+
|
|
123
|
+
- **Binding.** `conversationId` is the native session id. It is a correlation alias that
|
|
124
|
+
`hook-event` records as the session's external id; the launch environment is the authority.
|
|
125
|
+
The scripts check `OVERLORD_MISSION_ID`/`MISSION_ID`/`OVERLORD_OBJECTIVE_ID` before reading
|
|
126
|
+
stdin or spawning anything.
|
|
127
|
+
- **Working directory.** agy runs plugin hooks in the plugin folder. `hook-event` locates the
|
|
128
|
+
session-key cache from the payload's `cwd` (or the first `workspacePaths` entry), and
|
|
129
|
+
`capture-change` relativizes paths against the same root.
|
|
130
|
+
- **Prompt capture.** `PreInvocation` fires before every model call, repeating the same
|
|
131
|
+
`lastUserInput`. `hook-event` records a prompt only when it differs from the last one recorded
|
|
132
|
+
for the conversation (a hash is kept under the global data dir), and the first prompt of a
|
|
133
|
+
launched session (turn 0, the launch prompt) is skipped as for every adapter. The cost is one
|
|
134
|
+
`ovld` spawn per model call in a launched session.
|
|
135
|
+
- **File capture.** The codec reads `toolCall.name`, `toolCall.args.TargetFile` and `error`.
|
|
136
|
+
`error` is "empty if successful", so an empty or absent `error` is `ok` (codec field
|
|
137
|
+
`outcomeErrorPath`). Only an `ok` edit records `declared_edit` evidence; a failed edit records
|
|
138
|
+
`outcome_partial`; `run_command` records `shell_activity_unverified`.
|
|
139
|
+
- **Stop.** The delivery reminder is shown once per session and objective, never while
|
|
140
|
+
`continuation_active` is true (this stop already follows a continuation) and never while
|
|
141
|
+
`fullyIdle` is false (background work is still running). agy also caps consecutive
|
|
142
|
+
continuations itself.
|
|
143
|
+
- **Older agy.** Before 1.5.4 payloads carry no `hookEventName`. The hooks still run: Stop and
|
|
144
|
+
PreInvocation pass the hook type explicitly, while file capture matches no codec rule and
|
|
145
|
+
records only callback health.
|
|
Binary file
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Antigravity — agent-session event codec.
|
|
2
|
+
#
|
|
3
|
+
# Field names come from the first-party hook contract (https://antigravity.google/docs/hooks)
|
|
4
|
+
# and the agy release notes, never from a guess. Payloads are camelCase JSON on stdin:
|
|
5
|
+
#
|
|
6
|
+
# `hookEventName`, `cwd`, `toolCall.id` — added in agy 1.5.4 ("so a single hook command can
|
|
7
|
+
# handle several events")
|
|
8
|
+
# `conversationId`, `workspacePaths` — common fields on every event
|
|
9
|
+
# `lastUserInput` — common field since agy 1.4.7
|
|
10
|
+
# `toolCall{name,args}`, `error` — PostToolUse; `error` is "empty if successful"
|
|
11
|
+
#
|
|
12
|
+
# The event name lives in the payload only from 1.5.4, which is the descriptor's version floor.
|
|
13
|
+
# An older payload resolves no event name, matches no rule, and is therefore silence — never a
|
|
14
|
+
# misattributed event. The hook scripts also pass the canonical hook type explicitly, so the
|
|
15
|
+
# lifecycle hooks (`hook-event`) keep working without it.
|
|
16
|
+
codecVersion: 1
|
|
17
|
+
adapter: antigravity
|
|
18
|
+
|
|
19
|
+
eventNamePath: hookEventName
|
|
20
|
+
|
|
21
|
+
# Correlation only. `conversationId` is the harness's UUID for the conversation and appears on
|
|
22
|
+
# every hook payload. The channel credential (or the launch environment) is the authority.
|
|
23
|
+
nativeSessionPaths:
|
|
24
|
+
- conversationId
|
|
25
|
+
|
|
26
|
+
# Used only to relativize file paths. `cwd` is the agent's working directory (1.5.4); the first
|
|
27
|
+
# mounted workspace is the fallback for a payload that predates it.
|
|
28
|
+
projectRootPaths:
|
|
29
|
+
- cwd
|
|
30
|
+
- workspacePaths.0
|
|
31
|
+
|
|
32
|
+
events:
|
|
33
|
+
# PreInvocation runs before every model invocation and carries the latest user message as
|
|
34
|
+
# `lastUserInput`. It is the only native place a submitted prompt appears; there is no
|
|
35
|
+
# per-submission event. One prompt therefore arrives once per invocation of its turn, so the
|
|
36
|
+
# event id is derived from the prompt itself (repeat invocations collapse to one id) and the
|
|
37
|
+
# lifecycle hook records a prompt only when it differs from the last one it recorded.
|
|
38
|
+
- native: PreInvocation
|
|
39
|
+
kind: prompt.submitted
|
|
40
|
+
origin: user
|
|
41
|
+
promptPath: lastUserInput
|
|
42
|
+
|
|
43
|
+
# Fires before the call runs. Observational here; Overlord registers no PreToolUse hook, so
|
|
44
|
+
# nothing in this rule can allow, deny, or delay a tool call.
|
|
45
|
+
- native: PreToolUse
|
|
46
|
+
kind: tool.called
|
|
47
|
+
origin: agent
|
|
48
|
+
toolPath: toolCall.name
|
|
49
|
+
inputPath: toolCall.args
|
|
50
|
+
callIdPath: toolCall.id
|
|
51
|
+
|
|
52
|
+
# Fires after the call ran, success or failure. `error` is documented as "empty if successful"
|
|
53
|
+
# (hooks doc, PostToolUse input), and agy 1.4.3 made a failing PostToolUse hook leave the tool
|
|
54
|
+
# result unchanged, so this rule is observational by construction. Only the decoded outcome is
|
|
55
|
+
# kept; the error text is never retained. `write_to_file`, `replace_file_content`, and
|
|
56
|
+
# `multi_replace_file_content` name their destination in `TargetFile`.
|
|
57
|
+
- native: PostToolUse
|
|
58
|
+
kind: tool.completed
|
|
59
|
+
origin: agent
|
|
60
|
+
toolPath: toolCall.name
|
|
61
|
+
inputPath: toolCall.args
|
|
62
|
+
callIdPath: toolCall.id
|
|
63
|
+
outcomeErrorPath: error
|
|
64
|
+
fileEditKind: file.edited
|
|
65
|
+
filePathPaths:
|
|
66
|
+
- TargetFile
|