A plugin for Obsidian that gives you access to your Google Antigravity CLI instance so you don't need to leave your vault to use it.
README.md

Obsidian Antigravity Assistant (obsidian-antigravity) #

A desktop side-panel plugin connecting Obsidian directly to a local Google Antigravity CLI (agy) instance scoped to your active vault root.


Prerequisites #

Both applications must be installed on the same desktop computer (Windows, macOS, or Linux):

  • Obsidian Desktop (v1.5.0 or newer)
  • Google Antigravity CLI (agy) authenticated and runnable on your machine

Installation #

Because Obsidian and Antigravity are already on your computer, you can have Antigravity install the plugin into your vault directly from Tangled.

Paste the following prompt into Antigravity (replacing <PATH_TO_YOUR_VAULT> with your Obsidian vault path, or run Antigravity directly inside your vault folder):

Install the obsidian-antigravity plugin into my Obsidian vault at <PATH_TO_YOUR_VAULT>:
1. Clone https://tangled.org/fabricatedtechnobabble.com/obsidian-antigravity into a temporary directory outside the vault.
2. If Node.js and npm are installed, run `npm ci && npm test && npm run build` inside the cloned directory to verify and build fresh artifacts from source; otherwise verify that the pre-bundled `main.js`, `manifest.json`, and `styles.css` files are present.
3. Create `<PATH_TO_YOUR_VAULT>/.obsidian/plugins/obsidian-antigravity/` if it does not exist, and copy ONLY `manifest.json`, `main.js`, and `styles.css` into that folder (do not copy `.git` or `node_modules` into the vault).
4. Clean up the temporary clone directory and confirm when ready so I can enable the plugin in Obsidian.

Once the files are copied:

  1. In Obsidian, open Settings → Community Plugins (enable Community Plugins if prompted), click the Reload plugins button, and toggle on Antigravity Assistant.
  2. Click the sparkles icon in the left ribbon (or run Antigravity Assistant: Open Antigravity Side Panel from the Command Palette).

Method 2: Manual Installation #

  1. Clone the repository outside your vault:
    git clone https://tangled.org/fabricatedtechnobabble.com/obsidian-antigravity
    cd obsidian-antigravity
    
  2. (Optional) Install dependencies, run tests, and build from source:
    npm ci
    npm test
    npm run build
    
  3. Create <Your-Vault>/.obsidian/plugins/obsidian-antigravity/ and copy these three files into it:
    • manifest.json
    • main.js
    • styles.css
  4. In Obsidian, go to Settings → Community Plugins, reload installed plugins, and enable Antigravity Assistant.

Key Capabilities #

  1. Step-Batched Deliberation Gate & Safety Containment:
    • Read-only vault tools are auto-approved over stdio without interrupting agent progress.
    • File mutations (write_file, edit_file, create_file, patch_file, append_file, delete_file) are checked for vault-root path containment, flagged when targeting protected paths (.obsidian/, .git/, .env, .trash/), and batched per step into a single Diff Approval Card (Execute Now, Save for Later, or Do Nothing) with keyboard shortcuts (1, 2, 3, Esc) and collapsible receipts.
  2. Interactive Choice & Collapsible Thinking Cards:
    • Agent ask_question prompts render as native clickable Choice Cards inside the panel.
    • Model reasoning and active tool steps stream into a collapsible Thinking Card with a live elapsed timer.
  3. Embedded CodeMirror 6 Input & Non-Blocking Queue / Steering:
    • Uses a native CodeMirror 6 EditorView with Markdown syntax highlighting and @ vault-note mention autocomplete.
    • Never disables input during generation: Enter submits using your configured default action (Queue or Steer), Alt + Enter (Option + Enter on macOS) triggers the inverse action, and Shift + Enter inserts a newline.
  4. Queue-Time Context Snapshotting:
    • Active note paths and editor selections are snapshotted at submission time so switching notes mid-response never corrupts queued turn context.
  5. Vault-Persisted Markdown Sessions:
    • Automatically serializes conversations into standard Markdown notes under <vault>/Conversations/ and restores the latest session on startup.
  6. Desktop-Scoped & Sync-Safe:
    • Configured with "isDesktopOnly": true in manifest.json. Obsidian Mobile cleanly skips loading the plugin over Obsidian Sync while keeping saved conversation notes readable across all devices.

Configuration #

In Settings → Antigravity Assistant:

  • Antigravity CLI Executable Path: Leave empty for automatic discovery (searches common binary locations, Scoop shims, and PATH), or set an explicit path to agy / agy.exe / agy.cmd. Click Test Connection to verify.
  • AGY Model: Choose which model agy uses for sessions, or click Refresh Models to query available models from your local CLI.
  • Session History Folder: Vault folder where Markdown session transcripts are saved (default: Conversations).
  • Reasoning Effort: Default reasoning effort level (low, medium, high, max).
  • Default Submission Behavior: Choose whether Enter defaults to Queue / Wait or Steer / Interrupt (Alt + Enter / Option + Enter performs the opposite; Shift + Enter inserts a newline).
  • Default Thinking Display: Start reasoning cards Collapsed or Expanded.
  • Maximum Queued Turns: Maximum number of turns (1–5) that can be queued while a response is streaming (default: 3).

Development & Testing #

# Run Vitest unit suite (safety gate, tool batching, IPC framing, UI components)
npm test

# Development build with live file watcher
npm run dev

# Production bundle
npm run build

Contributing & License #