Repository navigation
feat: subagents, write checks and a rule for the Antigravity plugin - #1147
Merged
Merged
Conversation
An Antigravity plugin can hold skills, MCP servers, subagents, rules and lifecycle hooks. ArcKit's shipped the first two. This adds the other three, in the formats on antigravity.google/docs/build-plugins and /docs/hooks. Subagents: twelve research commands hand their work to agents/arckit-<command>-agent.md and keep the full prompt beside the skill as instructions.md for a session that cannot start a subagent. evaluate and score stay in the main conversation. Hooks: hooks.json runs the file-name, protected-file and secret gates before a write and the manifest update after. One adapter, scripts/antigravity/agy-hook.mjs, translates Antigravity's stdin and stdout to the Claude Code shapes, so the gates are copied unchanged. Antigravity ignores a hook that exits non-zero, so the adapter always exits 0 and reports a gate that could not run as a deny when the file is an ARC artefact. Rule: one glob-triggered rule with the artefact conventions. The plugin passes agy plugin validate --strict (12 agents, 1 rule, 2 hook groups). None of the three has been run in a live Antigravity session: the account's Antigravity quota ran out during testing. The README says so. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hfsx56kefipenQbkB64qZ1
From an independent review of the pull request: - A workspace given as /tmp/x with a file given as /private/tmp/x/..., or either reached through a link, skipped the file-name gate, because the gates compare paths as text. The adapter now resolves both to real paths. - A workspace folder that does not exist made every gate fail to start, so a write to a protected file went ahead. The adapter now falls back to the nearest folder that exists. - Run through a linked plugin folder the adapter printed nothing, which Antigravity reads as no objection. The main-module check compares real paths. - Three gates at 20 seconds each could outlast Antigravity's 30-second hook timeout. The gates now share a budget below it. - The agent description is read as YAML, and a subagent's prompt no longer carries a placeholder nothing fills. - The test of the hook after a write had no manifest to update, so it proved nothing. It now checks the manifest gains the document, and there are tests for linked paths, a relative target, a missing workspace and a linked plugin folder. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hfsx56kefipenQbkB64qZ1
tractorjuice
marked this pull request as ready for review
November 22, 2026 16:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the three parts of an Antigravity plugin that ArcKit's did not yet carry: subagents, lifecycle hooks and a rule.
What changes for someone using it
/arckit-evaluateand/arckit-scorestay in the conversation.ARC-document is stopped and told the right path; a write to.env, a lock file or a private key is stopped; so is text that looks like a credential. After a write the project manifest is updated.ARC-document is in context.How
scripts/converter.py:generate_antigravity_agents,generate_antigravity_hooks,generate_antigravity_rules.scripts/antigravity/agy-hook.mjs: one adapter that turns Antigravity's hook input and output into the Claude Code shapes, so the four gates are copied unchanged. It always exits 0, because Antigravity ignores a hook that exits non-zero; a gate that cannot run is reported as a deny when the file is anARC-artefact.Tested
agy plugin validate --strictpasses: 194 skills, 12 agents, 1 rule, 2 hook groups, 5 MCP servers.Not tested — why this is a draft
None of this has been run in a live Antigravity session. The account's Antigravity quota ran out during testing (resets in about a week). Unknown until then: whether the main agent starts the subagent from the skill's wording, whether the hook payload matches the documented shape exactly, and whether a deny reads well to the agent.
Compared with
agy plugin importAntigravity can import the Claude Code plugin directly. Tried on 22 November 2026 (agy 1.5.13), it brought 81 skills, 38 agents and 7 MCP servers, but: every hook command came out as bare
nodewith no script, so no hook works; 22 skills are over the 24,000-byte limit and would be cut short; agents keep Claude Code's tool names; skills keep${CLAUDE_PLUGIN_ROOT}paths and/arckit:command names; the two keyed MCP servers are included. So the generated plugin is still needed.🤖 Generated with Claude Code
https://claude.ai/code/session_01Hfsx56kefipenQbkB64qZ1