Skip to content

Add Antigravity and Grok Build session hooks - #25

Open
quantizor wants to merge 2 commits into
mainfrom
add-more-support
Open

Add Antigravity and Grok Build session hooks#25
quantizor wants to merge 2 commits into
mainfrom
add-more-support

Conversation

@quantizor

Copy link
Copy Markdown
Owner

Antigravity and Grok Build sessions can now rediscover running servers instead of spawning duplicates after a new session or a compaction.

devctl hook install --harness antigravity and --harness grok (also offered at first run and in Settings when those tools are present) wire each harness. Uninstall removes them. devctl doctor reports a missing or stale hook the same way it already does for Claude Code and Cursor.

Grok discards SessionStart hook stdout, so the Grok adapter also writes a short home rule that tells Grok to run devctl context before touching a server. That rule is standing instruction, not a live snapshot of one project, because Grok home rules apply to every session on the machine.

Verification

  • make test
  • scripts/smoke.sh
  • Local notarized DMG (dist/devctl-1.4.1.dmg) built and stapled for a smoke of the installer

`devctl hook install --harness antigravity` merges a PreInvocation hook into
~/.gemini/config/hooks.json and emits injectSteps.ephemeralMessage, so an
Antigravity session sees live server status instead of spawning duplicates.
Grok discards SessionStart stdout, so the adapter also writes a home rule
that tells Grok to run `devctl context` before touching a server.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant