agy-pane
The Google Antigravity (agy) side of a Bifrost plugin - what the pane does with its components, config, prompt effects and selection, linking into ~/.gemini/config, and debugging. Use when one plugin's Antigravity pane misbehaves or when linking plugins into Antigravity.
- License 许可
- MIT
- 最近更新
- 2026-10-22
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- agy-pane
- description
- The Google Antigravity (agy) side of a Bifrost plugin - what the pane does with its components, config, prompt effects and selection, linking into ~/.gemini/config, and debugging. Use when one plugin's Antigravity pane misbehaves or when linking plugins into Antigravity.
03 SKILL.md 正文
Antigravity (agy) pane
Plugins do not write a server or HTML: bifrost build emits dist/sidecars/<mod>/server.mjs (one
self-contained bundle: plugin + framework + CSS + page runtime) and sidecar.json (one aux-pane view per
pane). The UI is the plugin's own components, rendered on the server.
What a plugin controls
- The UI: the plugin's components, rendered to HTML on the server. Keep
keys onButton/Input/Selectstable: the page posts events back by key. host.selection()in a handler is the text selected in the pane when the button was pressed.- Config: env
<PLUGIN>_<KEY>(e.g.REF_PANE_PREFIXES), else theconfigdefault. host.prompt.*lands in the chat (insert, clipboard fallback),submitsends the message;toastworks;pane.*andscrollToare no-ops here.pnpm dev <mod>restarts the pane process on every build; the page re-renders.
Routes, token, preload, effects plumbing and CSS belong to the framework
(packages/bifrost/AGENTS.md, skill bifrost-agy-adapter). A pane
that misbehaves for every plugin is a framework task, not a plugin fix.
Linking
pnpm dev:link:agy [mod…] creates junctions ~/.gemini/config/plugins/<mod> → plugins/<mod>/dist
and ~/.gemini/config/sidecars/<mod> → plugins/<mod>/dist/sidecars/<mod> (building first if needed;
replacing this repo's stale links, never touching others). pnpm dev:unlink:agy removes them.
Debugging
- Run the built server by hand:
ANTIGRAVITY_SIDECAR_WEB_PORT=4700 node dist/sidecars/<mod>/server.mjs, openhttp://127.0.0.1:4700/. curl -X POST :4700/_bf/render -d '{"pane":"<id>","initial":true}'shows the HTML and effects.- Plugin tests:
mount(plugin, pane, { harness: 'agy' }).html().
04 同仓库更多 Skills
__MOD_NAME__
__MOD_DESCRIPTION__
cross-mod
Hub for building plugins that run in both Claude Code and Google Antigravity (agy) with the Bifrost framework. Use when starting any plugin work in this repository to find the right specialized skill and the end-to-end workflow.
ref-pane
Inspect and navigate project artifact references (such as RV-1, FB-2, T-3, ADR-4) in the Auxiliary Pane.
bifrost-dev
Use when changing @gidragir/bifrost itself (packages/bifrost) - adding or renaming an export, Host member, primitive or component, changing codegen or the adapters, bumping its version or releasing it - and not when building a plugin under plugins/<mod>.
bifrost-claude-adapter
Use when changing packages/bifrost/src/claude or src/cli codegen, or when a generated hooks module fails claude plugin validate/test for a reason the framework (not the plugin) causes - scanner errors, missing state contract keys, guard hooks, next(e) chaining.
bifrost-agy-adapter
Use when changing packages/bifrost/src/agy - the generated Antigravity aux-pane server, page runtime client.js, effects, token and preload contract, HTML renderer or bifrost.css - or when an agy pane misbehaves for every plugin rather than one.