antigravity-hangar
v1.6.0
Published
Hangar — Chrome-style project-aware tab multiplexer, split-pane telemetry host, and extension marketplace for Google Antigravity Auxiliary Pane sidecars.
Maintainers
Readme
Antigravity Hangar (antigravity-hangar)
Hangar is a project-aware Chrome-style tab multiplexer, split-pane telemetry host, local package linker, and extension marketplace for Google Antigravity Auxiliary Pane sidecars.
Mounts natively in Antigravity's Auxiliary (right-hand) Pane (SIDECAR_UI_ENTRYPOINT_AUX_PANE) and syncs automatically with your active workspace and editor theme (dark, light, high-contrast, and custom theme seeds).
1. The Problem Hangar Solves
- No Project Awareness: Antigravity loads every enabled sidecar globally across all workspaces. A database or container sidecar clutters the UI and burns RAM when working on an unrelated frontend repo, and vice versa.
- Single-Panel Limitation: Antigravity's Auxiliary Pane can only display one sidecar iframe at a time—forcing you to choose between live context/quota telemetry and project-specific tools.
- High Installation Friction: Installing or linking a sidecar manually requires cloning a repo, creating OS-specific symlinks/junctions in
~/.gemini/config/sidecars/, editing~/.gemini/config/config.json, and invoking internal Language Server RPCs.
2. Requirements
- Google Antigravity
2.0–2.33.0(Desktop / IDE withSidecarManagersupport) - Node.js
>= 20.0.0(zero third-party npm dependencies; powered byantigravity-sidecar-kitand Antigravity's built-insidecar_sdk)
3. Installation
# Option A: 1-command install via npx
npx antigravity-hangar
# Option B: Clone and link locally
git clone https://github.com/arthurcavallari/antigravity-hangar.git
cd antigravity-hangar
npm run setupThen select Hangar from the Antigravity Auxiliary Pane dropdown.
What setup does:
- Validates all required sidecar manifest, backend, and UI assets.
- Migrates any legacy
sidecar-hubconfiguration or junctions automatically. - Initializes
~/.gemini/config/hangar.jsonwith default split-pane and workspace rules if not present. - Links
~/.gemini/config/sidecars/hangarto your package checkout (using an NTFS directory junction on Windows or directory symlink on macOS/Linux, copying out of ephemeral_npxcaches into~/.gemini/hangar/packages/automatically). - Enables
sidecars["hangar"]in~/.gemini/config/config.json(writing UTF-8 without BOM). - Hot-reloads the sidecar via the Language Server
ManageSidecarRPC when invoked inside an active Antigravity session.
Uninstallation
npm run uninstallRemoves the ~/.gemini/config/sidecars/hangar link, sets sidecars["hangar"].enabled = false in ~/.gemini/config/config.json, and disables the sidecar via RPC.
4. Core Capabilities
- Chrome-Style Project-Aware Tab Multiplexer & Split-Pane Host:
- Hosts multiple child sidecars inside a single Auxiliary Pane with
0mstab switching (display: block/nonepersistent iframes) and pointer-captured drag-and-drop tab reordering. - Native Tab Overflow & Navigation: Handles narrow Auxiliary Panes with
38pxdynamic edge-fade masks, horizontal mouse-wheel scrolling, drag-to-edge auto-scrolling, and a⋯overflow popover for instant switching across all open tabs. - Split-Pane View: Pin global telemetry (such as
antigravity-context-monitor) in the top pane while switching between project-specific sidecars in the bottom pane, separated by a draggable resize sash. - Automatic Workspace Resolution: Detects the active workspace (
window.sidecar.onWorkspaceChange+GetAllCascadeTrajectorieslastUserViewTimeresolution) and displays only the tabs mapped to that project (or pinned globally with*). - Idle Process Hibernation: Automatically hibernates (
SIDECAR_ACTION_DISABLE) background Node.js processes after a configurable idle TTL (hibernateAfterIdleMinutes) when a project is inactive.
- Hosts multiple child sidecars inside a single Auxiliary Pane with
- Built-In Extension Manager & 1-Click Store (
🧩 ExtensionsTab):- Installed: Enable/disable processes, configure workspace path/glob rules, restart, update, or uninstall sidecars. A Plugins section lists Antigravity plugins (skills, agents, rules, hooks, MCP servers) and updates or uninstalls the ones Hangar installed.
- Discover: Browse the online registry with capability tier badges (
Tier 1 Telemetry,Tier 2 Local CLI,Tier 3 Agent Control), workspace file trigger suggestions, and 1-click installation. Plugins ported from Claude Code, Gemini CLI, Cursor, Roo/Kilo or Codex are ported on your machine byagy-plugin-porter, and the port report (what will and won't port, plus audit findings) is shown before you confirm. Restart Antigravity to load a new plugin. - Sideload: Link any local development directory (
source: "local") via NTFS junction / symlink or install directly from a GitHub repository URL (owner/repoorhttps://github.com/...).
5. Authoring Sidecars for Hangar (hub-manifest.json)
Any Antigravity sidecar repository (sidecar.json) works with Hangar out of the box. To provide rich metadata, capability tier badges, and automatic workspace trigger suggestions in Hangar's Marketplace and Sideload inspector, add an optional hub-manifest.json to your sidecar's root directory:
{
"id": "my-sidecar",
"name": "My Sidecar",
"tagline": "Short description shown in Hangar's Discover and Installed cards.",
"version": "1.0.0",
"author": {
"name": "Your Name",
"github": "your-github-handle"
},
"funding": "https://github.com/sponsors/your-github-handle",
"license": "MIT",
"pricing": "free",
"categories": ["productivity"],
"capabilityTier": "TIER_1_TELEMETRY",
"workspaceTriggers": {
"files": ["docker-compose.yml", "Dockerfile"]
},
"minAntigravityVersion": "2.0.0"
}Listing a plugin in the registry
A registry.json entry without kind is a sidecar. A plugin entry sets "kind": "plugin". A plugin from another tool also sets port.from (claude, gemini, cursor, roo, codex or auto) and pins the upstream repository with release.ref, a tag or a full commit SHA. Hangar never redistributes the upstream code: it clones the pinned commit, ports and audits it locally, then installs it with agy plugin install. release.path picks a subfolder, for monorepos.
Any entry can set license, an SPDX id or expression, and homepage, an https URL. Discover shows the license next to the author, and links to the homepage as Source. For a port, point homepage at the upstream folder at the pinned commit, so it shows the code Hangar ports.
Keeping ports up to date
The pin is the review point: it ties the listed tier and audit to code someone checked, and installed copies are offered an update only when it moves. The repin-ports workflow (weekly, or from the Actions tab) does the legwork. For each port pinned to a commit, it looks for a newer upstream commit that changes the plugin's folder. It ports that commit and the current pin with Hangar's own previewPluginPort, then opens a PR from bot/repin-ports that moves the pins. The PR shows, for each plugin, a link to the upstream diff and what changed in the tier, the audit findings, the items not ported and the warnings. Nothing merges on its own; read the upstream diff before you merge, since merging offers the update to every Hangar.
To open the PR, the workflow needs Allow GitHub Actions to create and approve pull requests (Settings > Actions > General). Without it, the run pushes the branch and links a ready-made PR in its summary. Because the workflow's own pushes can't trigger pull_request runs, it starts the test workflow on the branch itself.
To try it locally without changing anything, run node scripts/repin-ports.mjs --report report.md. Add --write to move the pins in registry.json, --only <id,id> to check some entries, or --registry <file> to use another copy of the registry.
{
"id": "core-workflows",
"kind": "plugin",
"name": "Core Workflows",
"latestVersion": "1.0.0",
"capabilityTier": "TIER_2_LOCAL_TOOLING",
"license": "Apache-2.0",
"homepage": "https://github.com/owner/repo/tree/0123456789abcdef0123456789abcdef01234567/plugins/core-workflows",
"port": { "from": "claude" },
"release": {
"gitRepo": "https://github.com/owner/repo",
"ref": "0123456789abcdef0123456789abcdef01234567",
"path": "plugins/core-workflows"
}
}6. Development & Testing
Run the automated test suite:
npm testRepository Layout
antigravity-hangar/
├── package.json
├── server.mjs # Thin SidecarApp routing entrypoint
├── setup.mjs # Cross-machine junction linker & LS RPC installer
├── sidecar.json # Antigravity sidecar manifest
├── registry.json # Public marketplace package catalog
├── lib/
│ ├── constants.mjs # Paths, REPO_ROOT (realpathSync), default config
│ ├── config-store.mjs # BOM-safe hangar.json store, rules & child URLs
│ ├── hibernation-manager.mjs # Debounced idle-TTL process hibernation manager
│ ├── ls-rpc.mjs # Shared, briefly cached Language Server state reads
│ ├── package-installer.mjs # Local junction linker, GitHub/tarball installer & inspector
│ ├── plugin-installer.mjs # Plugin port, audit, install, list & uninstall
│ ├── registry-catalog.mjs # Marketplace registry fetcher & workspace trigger advisor
│ ├── remote-source.mjs # Tarball / git download & atomic folder swap
│ └── state-orchestrator.mjs # GetSidecars + GetAllPlugins + trajectory state coordinator
├── ui/
│ ├── index.html # Semantic markup shell
│ ├── styles.css # Theme variables, chrome bar, tabs, popover & split sash
│ ├── components.css # Extension cards, switches, badges & rule inputs
│ ├── core.js # Authenticated fetch wrapper, Material SVG icons & formatters
│ ├── app.js # Main UI state & event wiring
│ └── components/
│ ├── tab-bar.js # Chrome tab strips, edge-fade overflow & 150ms drag physics
│ ├── iframe-deck.js # Persistent child iframe deck & postMessage relay bridge
│ ├── extensions-tab.js # Extensions shell & Installed sidecars manager
│ ├── marketplace-panes.js # Discover catalog & Sideload (Local / GitHub) panes
│ └── plugin-panes.js # Plugin badges, port report consent & Installed plugins
└── test/
├── config-store.test.mjs
├── hibernation-manager.test.mjs
├── package-installer.test.mjs
└── registry-catalog.test.mjs7. Privacy & Anonymous Telemetry Opt-Out
When fetching the online Marketplace catalog from https://hangar.arthurcavallari.dev/registry.json, Hangar includes anonymous, non-PII headers (X-Hangar-Install-Id, a random ID generated on your machine, plus X-Hangar-Version, X-Hangar-OS, and X-Hangar-Sidecars, the number of configured sidecars) to measure active installs and OS/version compatibility. No workspace paths, repository names, or sidecar identifiers are sent in telemetry.
To opt out completely, set any of the following. Hangar then sends no telemetry headers, and nothing about your install is recorded:
"telemetry": falsein~/.gemini/config/hangar.jsonDO_NOT_TRACK=1orHANGAR_TELEMETRY=0in your environment
Separately, update checks look up Hangar and the sidecars it installed on npm and GitHub by package name, like any update check. These aren't affected by the opt-out.
8. Support
Built and maintained in my spare time (with constant keyboard supervision from my three cats, Snow 🤍, Eevee 🦊, and Merlin 🧙♂️).
If Antigravity Hangar saves you time across workspaces, consider ❤️ sponsoring me on GitHub Sponsors to help fund ongoing maintenance, new Antigravity sidecar extensions, and the household Churu treat budget!
