26 NOV 2026

Moving Antigravity Back Into Obsidian: From Detached CLI to Integrated Command Center

Daryl Ducharme
@fabricatedtechnobabble.com


Moving Antigravity Back Into Obsidian: From Detached CLI to Integrated Command Center


A month and a half ago, I wrote about purging AI plugins from my Obsidian vault.

At the time, the decision was obvious. Trying to shoehorn local AI into Obsidian using plugins like Gemini Scribe had hit a wall. I couldn't get it running reliably with Gemma in Ollama even when it did work, and no mobile solution worked at all. On top of that, in-editor plugins kept bumping against Obsidian's internal sandbox limits.

Decoupling the AI was a breath of fresh air. Moving it out to the Google Antigravity CLI (agy)agy) in a separate terminal let it work directly with plain Markdown files on disk. Obsidian went back to being a fast, quiet notebook, and local models handled the heavy lifting.

But software workflows are never static. Over the past several weeks, a new friction crept in: the Alt-Tab tax.

Working in a detached terminal is great for big scripting tasks or deep planning. But when I was actively writing, researching, or organizing notes, constantly switching between Obsidian and a terminal felt disjointed. I had to copy-paste note titles, manually check file paths, and mentally bridge the gap between what I was looking at and what the agent was doing.

I found myself watching videos about treating Obsidian as a true personal command center. I missed the immediate, in-editor context that tools like Gemini Scribe hinted at, but I refused to give up the power, safety checks, and CLI tools that make Antigravity great.

So I decided to bring Antigravity back into Obsidian—not by repeating the old mistakes, but by building a dedicated desktop bridge: the obsidian-antigravity assistant.


1. The Architecture: Don't Recreate the Plugin Bloat Trap

When people try to bring AI into Obsidian, they usually make one of two mistakes:

  1. They run the model inside the app process, which hogs RAM and kills mobile performance.

  2. They treat the assistant as a toy chat window, with zero access to filesystem tools, CLI scripts, or safety review gates.

To avoid this, obsidian-antigravity keeps the AI completely decoupled:

┌────────────────────────────────────────────────────────┐
│                   Obsidian Desktop                     │
│  ┌───────────────────────┐  ┌───────────────────────┐  │
│  │ Active Note           │  │ Antigravity Side-Panel│  │
│  │ (Markdown Editor)     │  │ (CodeMirror 6 Stream) │  │
│  └───────────┬───────────┘  └───────────┬───────────┘  │
└──────────────┼──────────────────────────┼──────────────┘
               │ Context Snapshot (@notes)│ Local Stdio Bridge
               ▼                          ▼
┌────────────────────────────────────────────────────────┐
│               Local Antigravity CLI (agy)              │
│  • Scoped strictly to active vault root                │
│  • Runs independently on your machine                  │
│  • Runs tools, scripts, and talks to models            │
└──────────────────────────┬─────────────────────────────┘
                           │
                           ▼
              [Plain Markdown Vault on Disk]
              (Synced cleanly across all devices)

Solving the Mobile Wall with isDesktopOnly

The biggest reason I ditched in-vault AI earlier was mobile usability. When syncing a vault to a phone via Obsidian Sync, the last thing you want is desktop Node shims or terminal background processes bogging things down.

By declaring "isDesktopOnly": true in manifest.json, the plugin cleanly disables itself on mobile devices. Obsidian on my phone stays 100% lightweight and instant to launch.

When I am away from my desk, I can still connect to Antigravity via remote-control sessions. And because sessions are automatically saved as standard Markdown files under Conversations/, I can read full chats, review diffs, and inspect drafted notes directly from my phone while riding the bus or on a quick break at work.

Non-Blocking Input & Context Snapshotting

Most AI chat plugins lock the input box while the model streams. If you think of a follow-up or want to pivot, you're stuck waiting. That isn't how Antigravity works, so I didn't want it to be how this plugin works either.

Here, the input box is powered by an embedded CodeMirror 6 editor that stays active even while the model is responding:

  • EnterEnter queues your next thought without interrupting the current run.

  • Alt + EnterAlt + Enter steers and immediately interrupts the active run. (Obsidian hotkeys can sometimes swallow key combos, so there is also a dedicated button right in the UI).

  • Queue-Time Snapshotting: The plugin snapshots the exact active note and highlighted text the second you hit Enter. If you ask a question about Note A and switch tabs to read Note B, the agent doesn't get confused by whichever note happens to be active when its turn starts.


2. Stability by Design: The Elephant-Goldfish Model (EGM)

Giving an AI agent free rein to read and edit your personal notes is nerve-wracking. If it hallucinates or goes off the rails, it can easily mess up your files.

To design and build obsidian-antigravity, I leaned on the Elephant-Goldfish Model (EGM).

In normal AI coding, it's easy to fall into the trap of asking the model to write code right away, watching it generate hundreds of lines, and then struggling when the code breaks under its own weight. EGM avoids this by splitting the work into two clear roles:

  1. The Elephant: Writing the plan first. In Elephant mode, not a single line of implementation code is written. The agent's only job is drafting clear, detailed Markdown design specs.

  2. The Goldfish Swarm: A set of focused AI reviewers that evaluate the spec with fresh eyes. They act as tough critics—spotting design flaws, confusing explanations, and edge cases before anything gets built.

Using this process helped catch problems that would have caused crashes or accidental data loss:

  • The Step Deliberation Gate: Read-only actions (read_file, search) run smoothly without nagging popups. But whenever the agent proposes editing or writing files (write_file, edit_file), the changes are held in a batched Diff Approval Card where you can review and approve them with a single keypress (1, 2, or 3).

  • Protected Paths: Sensitive directories—like .obsidian/ configurations, .git/, and .env files—are locked down so the agent can never touch them without explicit permission.


3. Real-World Battle Scars: Testing Highlights

Building and daily-driving your own software always uncovers quirks that never appear on a whiteboard. Three practical hurdles stood out during daily testing:

1. The Note-Switching Race Condition

In early prototypes, if I typed "Summarize this note," pressed Enter, and immediately clicked over to another tab to keep reading, the assistant would summarize the new tab instead of the one I was actually looking at.

Because turn processing is asynchronous, asking Obsidian for the active file at execution time created an obvious race condition.

The fix was decoupling context capture from turn execution. The exact moment you press Enter, the plugin freezes a snapshot of the active note path, selection range, and context envelope. When the agent gets around to running, it evaluates the exact state you were looking at when you asked the question—no matter where your cursor has wandered since.

2. Taming "Confirmation Fatigue"

AI agents need guardrails, but safety can quickly turn into annoyance. In early tests, requiring manual approval for every single tool call (read_file, search, find-tasks) ground everything to a halt. Nobody wants to click "Approve" twelve times just to answer a simple question.

On the other hand, letting an agent rewrite your notes without permission is reckless.

The compromise was grouping operations by risk. Safe, read-only queries and temporary agent scratchpad files (scratch/) run automatically. Real vault edits (write_file, edit_file) are bundled into a single Diff Approval Card at the end of the turn. You review the complete changeset at once and decide with a single keystroke: 1 to commit, 2 to test more, or 3 to request revisions.

3. Stream Render Jitter & Directional Scroll Pinning

Streaming Markdown into an Obsidian side panel sounds simple until you actually try it. As text, code blocks, and collapsible thinking cards stream across the screen, the layout constantly recalculates its height.

A naive auto-scroll implementation that repeatedly calls scrollToBottom() makes the screen jittery and traps you at the bottom. If you try to scroll up to re-read an earlier message while the model is typing, the viewport violently jerks you back down.

The solution was building a directional scroll-pinning engine. It continuously tracks whether you are near the bottom of the chat. If you're docked at the bottom, it smoothly pins to incoming text. But if you scroll up even a few pixels to read history, auto-scroll gracefully disengages, holding your reading position steady until you decide to scroll back down.


4. Vault Skills vs. Global Skills: Where Does Knowledge Belong?

One of the best features in Antigravity is its Skill system—folders of instructions and scripts that teach the AI how to handle specialized tasks.

Bringing Antigravity into Obsidian highlighted a clean distinction between two kinds of skills:

  • Global Skills

    • Location: ~/.gemini/antigravity-cli/skills/

    • Scope & Purpose: General tools you want across every workspace—web research, audio generation, or system tools.

  • Vault Skills

    • Location: <vault>/.agents/skills/

    • Scope & Purpose: Vault-specific rules tailored to your personal note templates, folder structures, and review routines.

I also loved how Antigravity visually displays selected skills in its interface, so I brought that polish into the Obsidian side panel.

In the input editor, typing / brings up an autocomplete popup for both global and vault-specific skills, turning them into styled interactive pills. It pairs naturally with @ mentions for vault notes, letting you combine specialized skills with specific notes in a single prompt without breaking your typing flow.

Sharing Skills on Tangled

I'll eventually get some of the core architectural skills and starter templates packaged and published over on Tangled.

If there are specific workflows or vault automations you're curious about, let me know. If people are interested, that will definitely push them to the front of the line!


5. Visual Tour: The Side-Panel in Action

Here is what the workflow actually looks like inside Obsidian today.

Step 1: A Fresh Side Panel & Context Awareness

Opening the assistant reveals a clean workspace that immediately detects your active note context and provides one-click action prompts for routine vault maintenance.

The Antigravity Assistant side panel in Obsidian showing a fresh, empty conversation view. An active note badge at the top links to the blog post draft. Three quick-action prompt buttons appear in the center for synthesizing notes, ingesting article URLs, and auditing note frontmatter. At the bottom, the CodeMirror 6 input bar contains a prompt asking to draft the blog post, accompanied by submission instructions, a Send button, and the Gemini 3.8 Flash model selector.
Fresh Side Panel: Clean start with active note context, quick-action prompts, and non-blocking input controls

Step 2: Watching the Thinking Process

When a prompt is submitted, the assistant streams its reasoning and tool calls into a collapsible accordion card. You can observe exactly what files it plans to read or what shell commands it executes, complete with a live stopwatch.

While it works, dedicated Steer and Stop buttons appear beneath the input bar to pivot or halt execution mid-stream.

The Antigravity Assistant side panel actively streaming an agent response. Above, the user prompt requests a blog post draft. Below, an expanded thinking card shows live reasoning text and tool execution status with an active timer (2m10s). At the bottom, the input bar remains active for typing subsequent thoughts, flanked by dedicated 'Steer' (lightning bolt) and 'Stop' (square) control buttons next to Send.
Live Thinking Card: Streaming reasoning and tool execution with elapsed timing, plus dedicated Steer and Stop controls

Step 3: Formatted Results and Fluid Context

Once the run completes, the thinking card collapses into a subtle checkmark badge, and the formatted response appears—complete with native wikilinks and completed task breakdowns. The CodeMirror 6 input bar at the bottom remains ready for subsequent queries.

The completed assistant response in the Obsidian side panel displaying structured Markdown output. The message outlines the newly generated blog post draft with stylized headings, bulleted architectural pillars, and clickable wikilinks to referenced vault notes. The bottom input editor is immediately ready for follow-up questions.
Formatted Results: Structured Markdown with native wikilinks and completed task summaries

Step 4: Iterative Multi-Turn Conversations

Because all sessions are persistent and saved directly to the vault as Markdown under Conversations/, you can have ongoing, multi-turn dialogues to refine sections, steer draft copy, and debate architectural decisions.

A multi-turn ongoing conversation in the Obsidian Antigravity side panel. The chat history displays successive user steering prompts, collapsed thinking badges with elapsed durations (e.g. 'Thought for 25.3s'), formatted code blocks with copy buttons, and an active input box where the user is typing their next revision.
Ongoing Conversation: Seamless multi-turn steering and iterative refinement saved directly into the vault

Step 5: Granular Settings & Directory Scoping

In the settings tab, you can customize everything: point to custom CLI paths, select active models (like Gemini 3.8 Flash), adjust default reasoning effort, configure whether Enter queues or steers, and set secondary scoped directories (e.g. allowing the agent to read shared global skills while keeping system folders guarded).

The Antigravity Assistant configuration panel within Obsidian Settings. Configurable options include the CLI executable path with a connection tester, AGY Model selection dropdown (Gemini 3.8 Flash), session history vault folder, reasoning effort level, submission behavior (Queue vs. Steer), thinking accordion display mode, maximum queued turns slider, and secondary scoped external directories.
Granular Settings: Custom CLI paths, model selection, queue behaviors, and scoped directories

6. Decentralized Staging on Tangled

You won't find obsidian-antigravity in the official Obsidian Community Plugins directory (yet), nor is it hosted on GitHub.

Instead, this project is tracked and staged on Tangled—a decentralized code hosting platform built on the AT Protocol:

Because Antigravity can execute terminal commands and manage local files, you don't even need to download release zips manually. If you have Antigravity running on your machine, you can install the plugin directly into your vault by pasting this prompt into Antigravity:

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 installed, reload Community Plugins in Obsidian settings, toggle on Antigravity Assistant, and click the sparkles icon in your ribbon.


The Takeaway

Moving AI out of Obsidian two months ago was the right move for that moment. It freed me from clunky plugins and taught me the value of keeping heavy compute separate from my writing space.

Bringing it back as a lightweight, desktop-only side panel proved that you don't have to choose between a clean editor and an integrated assistant. By keeping the AI process external, disabling it on mobile, planning with specs first, and reviewing changes before they touch your files, Obsidian can truly function as your personal command center.

Enjoyed this article?

Join our free newsletter and never miss an update.


Related Articles