You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(cli): carry a session-start hook's context to the model on OpenCode, Kilo and Antigravity #1348
A SessionStart hook that informs the model reaches nothing on three hosts, and the docs say at least two of them could carry it:
OpenCode and Kilo: the generated bridge runs the hook with its output ignored (opencode-hooks-bridge.model.ts, kilo-hooks-bridge.model.ts, stdio ignore). Kilo documents experimental.chat.system.transform ("Modify the system prompt array"); OpenCode V2 documents ctx.session.instructions.entry.put(...) (server plugins). Whether the V1 plugin API the bridge targets has an equivalent is not verified.
Antigravity: host-antigravity.cjs answers nothing at SessionStart, yet the hooks doc gives an optional injectSteps output with a systemMessage "out-of-band system instruction for the agent". The captured SessionStart run only logged, so injection was never tried.
Proposed solution
Probe each host in a sandbox (throwaway HOME and project, free model, chats deleted): does a session-start context reach the model? Wire what the probe proves; state the rest as a limit in docs/COMPATIBILITY.md.
Acceptance criteria
One probe per host, recording version, invocation and whether the model saw the text.
Each proven path wired and tested from a captured payload.
Addition from the raw docs: Antigravity's PreInvocation hook "fires before the model is called" and its injectSteps can carry a systemMessage, so a session-start context could also be injected at the first PreInvocation. The probe should try both paths.
Delivered on next: #1353 carries a SessionStart context to the model on Antigravity (injectSteps systemMessage), and #1378 on OpenCode and Kilo, V1 and V2.
Activity
blafourcade commentedon Nov 25, 2026
Addition from the raw docs: Antigravity's PreInvocation hook "fires before the model is called" and its
injectStepscan carry asystemMessage, so a session-start context could also be injected at the first PreInvocation. The probe should try both paths.blafourcade commentedon Nov 26, 2026
Delivered on
next: #1353 carries a SessionStart context to the model on Antigravity (injectSteps systemMessage), and #1378 on OpenCode and Kilo, V1 and V2.