rulesync icon indicating copy to clipboard operation
rulesync copied to clipboard

Follow up Google Antigravity IDE upstream updates: Plugins and Sidecars (scheduled tasks) surfaces

Open dyoshikawa opened this issue 5 months ago • 8 comments

Summary

Antigravity 2.0 introduced two new IDE config surfaces that rulesync's antigravity-ide target does not emit: Plugins (namespaced plugin.json bundles grouping skills/rules/MCP/hooks) and Sidecars (background processes incl. cron-style scheduled tasks). This is distinct from the already-resolved global MCP/skills relocation to ~/.gemini/config (#1747). All per-feature dimensions rulesync already supports (rules, mcp, commands, skills, hooks) were verified in parity against the live official docs.

Recent Releases

  • Antigravity 2.0 (split into desktop antigravity-ide + antigravity-cli), official docs (SPA; rendered live 2026-06-08).
  • Plugins: https://antigravity.google/docs/plugins
  • Sidecars: https://antigravity.google/docs/sidecars

Gaps

  • plugins — new surface, unsupported. Antigravity 2.0 Plugins are namespaced bundles grouping skills, rules, MCP servers, and hooks via a plugin.json manifest. Workspace: .agents/plugins/<name>/ (or _agents/plugins/); global: ~/.gemini/config/plugins/<name>/. Structure: plugin.json + optional mcp_config.json, hooks.json, skills/, rules/. rulesync emits none of this (the only .agents/plugins/ code is Goose-specific).
  • sidecars / scheduled tasks — new surface, unsupported. Sidecars are background processes including cron-style scheduled tasks: sidecar.json per directory under ~/.gemini/config/sidecars/<id>/ (or a plugin's sidecars/), schema command/builtin (builtin: "schedule" with cron args), args, restart_policy, description, env, display_name; enabled via ~/.gemini/config/config.json. rulesync has no representation for Antigravity sidecars/scheduled tasks.

Proposed Follow-up

  • Consider an antigravity-ide plugin-packaging mode that bundles rulesync's generated rules/skills/MCP/hooks into a namespaced plugins/rulesync/ directory (plugin.json + mcp_config.json + hooks.json + skills/ + rules/), in project .agents/plugins/ and global ~/.gemini/config/plugins/ (analogous to how Goose hooks are plugin-packaged).
  • Evaluate a sidecars surface emitting sidecar.json (+ optional config.json enablement) under ~/.gemini/config/sidecars/ for recurring/scheduled background agents.
  • Both surfaces live under the shared ~/.gemini/config/ tree rulesync already targets, so global plumbing largely exists.

References

  • https://antigravity.google/docs/plugins — plugin.json bundle structure and locations.
  • https://antigravity.google/docs/sidecars — sidecar.json schema and scheduled-task builtin.

dyoshikawa avatar Jun 09 '26 06:06 dyoshikawa

Upstream update (re-check on 2026-06-09)

This issue covers the Plugins (plugin.json) and Sidecars (sidecar.json) surfaces. A re-check found a separate, mappable permissions surface not tracked here.

Additional or changed gaps

  • permissions — IDE file-based allow/ask/deny (unsupported). Antigravity IDE exposes a documented file-based permissions surface: Allow/Ask/Deny lists with Deny > Ask > Allow precedence and action(target) entries over the action types read_file, write_file, read_url, execute_url, command, unsandboxed, mcp. These lists are stored in the workspace .antigravity/settings.json (git-checkable) and the User-scope settings.json. rulesync has no antigravity-ide permissions adapter — the IDE permissions matrix cell is blank (README.md:97) and the dry-run logs Target 'antigravity-ide' does not support the feature 'permissions'. Skipping. (project and global). Crucially, the CLI already implements the same allow/ask/deny + action(target) shape (src/features/permissions/antigravity-cli-permissions.ts, convertRulesyncToAntigravityCliPermissions); the IDE differs mainly by adding a project-scope file (.antigravity/settings.json). Proposed: add an AntigravityIdePermissions adapter writing {"permissions":{"allow":[],"ask":[],"deny":[]}} to project .antigravity/settings.json (and User-scope settings.json for global), reusing the CLI's entry parse/build + category-to-tool mapping, then flip the IDE permissions column to ✅ and register it in permissions-processor.ts.

References

  • https://antigravity.google/docs/permissions — Allow/Ask/Deny, precedence, action(target) types (Antigravity 2.0, live 2026-06-09).
  • src/features/permissions/antigravity-cli-permissions.ts — existing CLI implementation of the same shape to reuse.

dyoshikawa avatar Jun 09 '26 07:06 dyoshikawa

I looked into this and I think it's best to leave it open pending a couple of design decisions rather than implement it autonomously. The gaps are all real, but they're sizable new surfaces, not bug fixes.

For Plugins, adding an antigravity-ide plugin-packaging mode (namespaced plugin.json bundles) is an undecided product direction — it needs a call on what to bundle, project .agents/plugins/ vs global ~/.gemini/config/plugins/, and the manifest shape. The issue itself frames it as "Consider", so I don't want to lock in a design here.

For Sidecars / scheduled tasks, rulesync currently has no generic way to model recurring background agents, so representing sidecar.json (command/builtin: schedule + cron args, restart_policy, config.json enablement) is a modelling decision that should be made deliberately.

The IDE permissions surface from the re-check comment is the most actionable of the three: the allow/ask/deny + action(target) shape with Deny > Ask > Allow, and the project-scope .antigravity/settings.json file, are clear, and the CLI already implements the same format. Two things still need confirming before a safe adapter, though. First, the mapping from rulesync's canonical categories (read/edit/write/bash/webfetch/mcp) onto the IDE action vocabulary (read_file/write_file/read_url/execute_url/command/unsandboxed/mcp) — the CLI only maps bash -> command and passes everything else through, which wouldn't produce idiomatic IDE action names, so a deliberate per-category mapping is probably wanted. Second, the global/User-scope settings.json path (the project-scope file is well-specified, but the User-scope location isn't).

One transparency note: the official docs are a client-rendered SPA, so the fetch tooling only returns the page title and I couldn't independently re-verify the schema beyond the research already captured here.

My suggestion is to split these into separate scoped issues. The IDE permissions project-scope adapter is the readiest to land once the category-to-action mapping is settled; Plugins and Sidecars each deserve their own design pass.

dyoshikawa avatar Jun 10 '26 06:06 dyoshikawa

The IDE permissions adapter — the most actionable slice — has landed on main via #1843. After re-verifying the schema against multiple authoritative sources (the official docs render as a SPA, so the earlier research couldn't be auto-verified), AntigravityIdePermissions writes permissions.allow/ask/deny action(target) entries to the committable workspace .antigravity/settings.json, with the deliberate category→action mapping (read→read_file, edit/write→write_file, bash→command, webfetch/websearch→read_url, mcp→mcp; execute_url/unsandboxed pass through).

Scope: project-only. The User-scope settings file is a platform-dependent VS-Code-style path (~/Library/Application Support/Antigravity/User/settings.json, etc.) that doesn't fit rulesync's home-relative global model, so global mode was intentionally not implemented.

Leaving this issue open for the remaining surfaces, which need dedicated design passes: Plugins (plugin.json packaging) and Sidecars / scheduled tasks (sidecar.json — rulesync has no model for recurring background agents yet). The User-scope permissions path could also be revisited if a cross-platform resolution is wanted.

dyoshikawa avatar Jun 11 '26 02:06 dyoshikawa

Status update after re-checking against the current codebase:

Both gaps are confirmed still unsupported, and both are large net-new surfaces that need a design decision before implementation rather than a mechanical adapter addition:

  • Plugins (plugin.json bundles). This is a new packaging mode — bundling rulesync's generated rules/skills/MCP/hooks into a namespaced plugins/<name>/ manifest tree (project .agents/plugins/, global ~/.gemini/config/plugins/). rulesync has no plugin-bundling concept today (the only .agents/plugins/ code is Goose-specific), so this needs a scoped design: how a single rulesync source set maps onto a plugin.json + mcp_config.json + hooks.json + skills/ + rules/ bundle, and whether it is opt-in per target.
  • Sidecars / scheduled tasks. rulesync currently models only rules, commands, mcp, skills, subagents, hooks, ignore, and permissions — it has no representation for background/cron-style scheduled processes. Supporting sidecar.json (+ config.json enablement) would mean introducing an entirely new feature dimension, which is a product-level decision.

The previously-tracked global MCP/skills relocation (#1747) is already resolved, and the per-feature dimensions rulesync supports are in parity. Leaving this open as the tracking issue for the Plugins and Sidecars surfaces, which need maintainer scoping (new packaging mode / new feature dimension) before they can be implemented.

dyoshikawa avatar Jun 15 '26 09:06 dyoshikawa

Re-validated; leaving open as a maintainer design decision tracking issue.

Status of the slices:

  • IDE permissions — already landed via #1843 (antigravity-ide-permissions.ts, .antigravity/settings.json), so the most actionable slice flagged earlier is done.
  • Plugins (plugin.json bundles grouping skills/rules/MCP/hooks; the Gemini CLI Extensions rebrand) — still unsupported.
  • Sidecars / Scheduled Tasks (cron-style background agents) — still unsupported.

Why these two need decisions, not a mechanical adapter:

  • Plugins would be a new packaging mode: whether to bundle rulesync's generated rules/skills/MCP/hooks into a namespaced plugins/rulesync/ manifest tree, the plugin.json shape, project (.agents/plugins/) vs global scope, and opt-in semantics.
  • Sidecars would introduce an entirely new feature dimension (recurring/cron background agents) that rulesync has never modeled — a product-level decision on whether to model scheduled tasks at all.

Caveat: the official antigravity.google/docs/{plugins,sidecars} pages render client-side; plain WebFetch returned only the page title with no schema. The exact plugin.json / sidecar.json field schemas still need verifying against the primary source (e.g. via a headless browser) before any adapter could be built.

dyoshikawa avatar Jun 16 '26 09:06 dyoshikawa

Triaged — leaving open pending maintainer design decisions (two distinct new surfaces).

Verified (real gaps). Antigravity 2.0 introduced two IDE config surfaces antigravity-ide does not emit (https://antigravity.google/docs/plugins, https://antigravity.google/docs/sidecars):

  1. Plugins — namespaced plugin.json bundles grouping skills/rules/MCP/hooks. Workspace .agents/plugins/<name>/ (or _agents/plugins/); global ~/.gemini/config/plugins/<name>/. Structure: plugin.json + optional mcp_config.json, hooks.json, skills/, rules/.
  2. Sidecars / scheduled tasks — background processes incl. cron-style scheduled tasks via per-directory sidecar.json.

Why these are not auto-implementable — design decisions needed.

  • Plugins is the same cross-tool plugin-packaging concern already tracked for Copilot CLI (#1936), Amp (#1938), Devin, and Kilo (#329 / #382). rulesync has no plugins packaging feature; the right move is a shared manifest abstraction, not an Antigravity-only emitter. This should be designed alongside those.
  • Sidecars / scheduled tasks is a genuinely new capability class (background/cron processes) that rulesync does not model at all and that has no analog in any current feature (rules/mcp/commands/skills/hooks/permissions/ignore/subagents). Modeling "scheduled background tasks" as a rulesync feature is a substantial new-surface decision of its own.

Decision needed from a maintainer: (1) fold Antigravity Plugins into the cross-tool plugin-packaging design (#329 / #382) rather than implementing here; (2) decide whether scheduled-task/sidecar orchestration is in scope for rulesync as a new feature at all. Leaving open and labeled for those discussions. (Note: all per-feature dimensions rulesync already supports — rules, mcp, commands, skills, hooks — were verified in parity against the live docs; this issue is only about the two new surfaces.)

dyoshikawa avatar Jun 20 '26 00:06 dyoshikawa

Closing after maintainer review of the two surfaces.

Plugins (plugin.json bundles grouping skills/rules/MCP/hooks) - this is the same cross-tool plugin-packaging concern tracked in #329 / #382 (shared with Copilot CLI #1936, Amp #1938, Devin, Kilo). It should be designed there as a single shared manifest abstraction rather than an Antigravity-only emitter, so it is tracked under #329 / #382 instead.

Sidecars / scheduled tasks (cron-style background agents via sidecar.json) - a genuinely new capability class that rulesync does not model at all and that has no analog in any current feature (rules/mcp/commands/skills/hooks/permissions/ignore/subagents). Orchestrating recurring background tasks is out of scope for rulesync's config-generation model; closing as out-of-scope rather than keeping an indefinite tracker.

(All per-feature dimensions rulesync already supports were verified in parity against the live Antigravity docs; this issue only concerned the two new surfaces above.) Reopen if scheduled-task modeling becomes in scope.

dyoshikawa avatar Jun 25 '26 01:06 dyoshikawa

Upstream update (re-check on 2026-07-30)

Not reopening — the out-of-scope decision on sidecars stands. Recording two facts from a fresh sweep of antigravity-ide and antigravity-plugin (product v2.4.3) so they are not re-researched:

  • Sidecars are now a first-class plugin component, not only a global surface: sidecars doc documents discovery at ~/.gemini/config/sidecars/<name>/sidecar.json and inside plugin bundles at ~/.gemini/config/plugins/<pluginName>/sidecars/<name>/sidecar.json (IDs <pluginName>/<sidecarName>, must be explicitly enabled in the user's config.json). Schema: command xor builtin (e.g. builtin: "schedule" with cron-style args), plus args, restart_policy (always/on-failure/never), env, description, display_name. Sidecars are listed as a customization category alongside MCP/Skills/Rules/Plugins/Hooks in the docs nav. If scheduled-task modeling ever comes in scope, the model must be emittable relative to a plugin output root (<pluginRoot>/sidecars/<name>/sidecar.json), not only under ~/.gemini/config/sidecars/.
  • Everything else is at parity for both targets (fresh dry-run + docs sweep): rules/mcp/workflows/subagents/skills/hooks/permissions all match, including the July 2026 CLI agent-frontmatter additions (mainAgent, subagent, hidden, inheritMcp, model). Two notes: IDE 2.1.1 (2026-06-22) made mcp_config.json accept url alongside serverUrl — rulesync's url→serverUrl rename remains valid, no change needed; and the IDE-specific skills page (/docs/ide/skills, stamped v2.1.1) still lists the stale ~/.gemini/antigravity/skills/ global root — the current skills doc and hands-on testing confirm ~/.gemini/config/skills/ is the only global location, so rulesync's output is correct; do not "fix" it back.

Internal docs drift found during the sweep (will handle separately if needed): docs/guide/plugin-packaging.md shows — in the Subagents column for antigravity-plugin and omits subagents from its example feature lists, but antigravity-plugin-subagent.ts emits agents/*.md and the generated matrix marks it ✅.

dyoshikawa avatar Jul 30 '26 16:07 dyoshikawa