Operator Manual Google AI Ecosystem
1-Paste Antigravity Setup Install Once, Use on Every Project $0 GitHub / HF / Drive or Cloud Run

Set Up Your AI Workspace in One Paste

No wrestling with long terminal commands. Pick whether you are starting fresh or connecting an active project, review the plain-English Trust Summary, paste one prompt into Antigravity IDE, and let it walk you through every step safely.

Quick Decision Rule
Brand-new folder? Pick Category A below.
Already building or finished? Pick Category B (Zero-Touch) so active files and Master notes stay untouched.
Prerequisites: git, uv (Python 3.12), Antigravity IDE, and Obsidian (or any plain Markdown folder — VS Code, Logseq, or docs/). Source repo: https://github.com/guevae2/google-ecosystem

1. Pick Your Situation

Antigravity handles installation, vault collision checks, and verification interactively inside your project window—and asks before making changes.

Track A — Brand-New Project (Antigravity Guided)

Creates .ecosystem.json + Tagged Vault Folder
What You Are Pasting — Trust Summary
Will Do How Antigravity helps
  • Checks whether google-ecosystem skills and environments are installed locally (and runs scripts/install.py once if needed).
  • Scans your whole Obsidian vault for duplicate filenames, creates .ecosystem.json, and scaffolds your tagged project folder.
  • Runs ecosystem-check at the end to confirm links and safety rules pass.
Will Ask First Nothing guessed silently
  • Your project name and short 2–5 letter tag (for example, EX).
  • Your local Obsidian Vault folder path.
  • Whether you want GitHub (1A-github), Hugging Face (1A-hf), Cloud Run (1A-cloudrun), or the $0 Google Drive (1B) bridge (plus optional --hub-repo and Gemini Notebook ID).
Never Touches Strict guardrails
  • Never deletes Obsidian notes (uses non-destructive old/ archiving only).
  • Never writes secrets, API keys, or banned AI model words into notes or Git.
  • Never deploys Google Cloud resources without showing you a --dry-run first.
Ready? Copy & Paste Into Antigravity IDE
Open your new project folder in Antigravity IDE → start a chat → Paste (Ctrl+V / Cmd+V) → press Enter.
Inspect full instructions before copying (100% transparent)
Set up this brand-new repository with Google AI Ecosystem v2 step by step, asking me before making changes or deploying cloud resources:

1. Check if `~/.gemini/config/skills/ecosystem-loop` exists and find my local `google-ecosystem` clone. If missing, ask me for the clone folder (or ask before cloning `https://github.com/guevae2/google-ecosystem.git`) and guide me to run `python3 <ecosystem-repo>/scripts/install.py`.
2. Ask me to confirm:
   - Project Name (human title) and unique 2-5 uppercase letter `<TAG>`
   - Local Obsidian Vault (or plain Markdown folder) root path
   - Handoff bridge choice: `1A-github` (private GitHub hub repo `<you>/agy-handoff-hub`), `1A-hf` (private HF Dataset hub), `1A-cloudrun`, or `1B` ($0 Drive `AGY-Handoff` global fallback)
   - Optional Hub Repo (`--hub-repo <you>/agy-handoff-hub`) and Gemini Notebook URL or ID
3. Run `uv --directory <ecosystem-repo>/ecosystem-init run --python 3.12 ecosystem-init --repo "<OPEN_WORKSPACE>" --project "<PROJECT>" --tag "<TAG>" --vault "<VAULT>" --handoff-mode <1A-github|1A-hf|1A-cloudrun|1B> [--hub-repo "<OWNER/REPO>"]` (after confirming inputs) and verify zero vault collisions.
4. Run `ecosystem-check` to confirm `OK`, then tell me the 2 quick browser clicks in Chrome to connect `web-skills/ecosystem-planner/SKILL.md`.
5. Guardrails: if I later choose Cloud Run (`scripts/deploy-hub.sh`), show `--dry-run` first; never delete vault files; never put secrets or banned AI model words in Obsidian prose.
The Only 2 Quick Clicks You Do in Chrome
1 Upload Planner Skill (One-Time)

Open gemini.google.com/customize/skills and upload web-skills/ecosystem-planner/SKILL.md. Works across all projects.

2 Pick Your Handoff Bridge

GitHub (1A-github): Add https://api.githubcopilot.com/mcp/ in gemini.google.com/customize/connectors via a 30-sec GitHub OAuth App. HF (1A-hf): Add https://huggingface.co/mcp in 1 click. Drive (1B): Create Drive folder AGY-Handoff.

Advanced: Prefer running terminal commands manually?

Use these verified commands if you prefer running setup directly in a shell without Antigravity orchestration:

git clone https://github.com/guevae2/google-ecosystem.git ~/tools/google-ecosystem
python3 ~/tools/google-ecosystem/scripts/install.py
uv --directory ~/tools/google-ecosystem/ecosystem-init run --python 3.12 ecosystem-init \
  --repo ~/projects/example-app \
  --project "Example App" \
  --tag EX \
  --vault ~/Documents/"Obsidian Vault" \
  --handoff-mode 1A-github \
  --hub-repo <you>/agy-handoff-hub
# Pull approved plans (with -YYYYMMDD-HHMM suffix) into Obsidian _Handoff/:
uv --directory ~/tools/google-ecosystem/ecosystem-hub-mcp run --python 3.12 handoff-sync pull \
  --github-repo <you>/agy-handoff-hub \
  --dest ~/Documents/"Obsidian Vault"/_Handoff \
  --doc-check
# (Or swap --github-repo for --hf-repo <you>/agy-handoff-hub or --bucket agy-handoff-<gcp-project-id> --include-inbox)
# Optional Cloud Run Hub (1A-cloudrun, preview first with --dry-run):
PROJECT_ID=<gcp-project-id> ALLOWED_EMAIL=<you@example.com> \
OAUTH_CLIENT_ID=<web-oauth-client-id> \
OAUTH_CLIENT_SECRET_FILE=~/secret.txt \
  ~/tools/google-ecosystem/scripts/deploy-hub.sh --dry-run

Choose Your Handoff Bridge: GitHub · Hugging Face · GCP · Drive

Sorted from most readable & zero-server to managed GCP and worldwide Drive fallback. Private hub repos isolate each project under projects/<slug>/ with projects/INDEX.md and -YYYYMMDD-HHMM plan filenames—while keeping code repos 100% Zero-Touch. (Obsidian is optional: any plain Markdown folder works identically.)

All 4 paths share the exact same skills
1 · Private GitHub Hub Repo (1A-github) ★ $0 · Zero servers · Best readability

Best for: Clean Markdown UI, full git diff tracking, and isolated projects/<slug>/ folders without GCP setup.
Walkthrough: Create private <you>/agy-handoff-hub. In Chrome + Custom, enter https://api.githubcopilot.com/mcp/ → Copy redirect URI → register a 30-sec GitHub OAuth App at github.com/settings/applications/new (leave wildcard unchecked, keep Expire user access tokens checked), paste ID + Secret, and sync locally with handoff-sync pull --github-repo.

2 · Hugging Face Dataset Hub (1A-hf) ★ $0 · 1-Click OAuth · ML & Colab

Best for: Fastest 1-click OAuth connector + Colab ML runs stored cleanly under projects/<slug>/runs/.
Walkthrough: Create private Dataset repo <you>/agy-handoff-hub. In Chrome + Custom, enter https://huggingface.co/mcp and sign in once (grants create_repo, hf_fs, hf_fs_write). Sync locally with handoff-sync pull --hf-repo.

3 · GCP Cloud Run Hub MCP (1A-cloudrun) $0 Always-Free (~$0.12/mo secrets)

Best for: Strict write-time server linter before bytes touch storage + GCS OAuth DCR.
Walkthrough: Run scripts/deploy-hub.sh --dry-run then deploy (BASE_URL + Google OAuth Web Client), connect in Chrome via DCR, and sync with handoff-sync pull --bucket ... --include-inbox.

4 · Google Drive Bridge (1B) $0 · Works worldwide

Best for: Regions outside US Developer Mode or zero external setup.
Walkthrough: Upload web-skills/ecosystem-planner/SKILL.md, create Google Drive folder AGY-Handoff, save approved draft Docs, and tell Antigravity run handoff-sync.

2. Daily Use-Case Playbooks

Pick what you are doing right now. Every workflow starts with a plain-English Trust Summary and a 1-Paste Prompt—no manual flag guessing required.

UC-1 · Feature Plan via @GitHub, @Hugging Face, or @CloudRun

1. Paste in Gemini Web App → 2. Say run handoff-sync in Antigravity
DoesGrounded web planning
  • Reads projects/INDEX.md + projects/<slug>/snapshot.md & runs/ (or Cloud Run read_project_context).
  • Writes approved -YYYYMMDD-HHMM.md plans into inbox/ so Antigravity auto-tags cleanly into _Handoff/.
Asks FirstDraft before approval
  • Always saves status: draft first and awaits your explicit confirmation before marking status: approved.
Never TouchesClean boundaries
  • Never touches your active code repos or Obsidian Master / Diary notes directly.
  • Never invents <TAG> prefixes remotely (handoff-sync resolves your local tag).
Step 1: Paste in Gemini Web App (with Notebook attached)
Type @ to select GitHub MCP Server, Hugging Face, or Cloud Run Hub, replace bracketed names, then send. After approving, tell Antigravity: run handoff-sync.
Inspect prompt text
@<GitHub MCP Server or Hugging Face> read projects/INDEX.md and projects/<project-slug>/snapshot.md in <you>/agy-handoff-hub, draft "<Plan Title>" to projects/<project-slug>/inbox/<title-slug>-YYYYMMDD-HHMM.md as status="draft" first, and wait for my approval before marking status="approved".
Advanced: Manual pull command after web approval
uv --directory ~/tools/google-ecosystem/ecosystem-hub-mcp run --python 3.12 handoff-sync pull \
  --github-repo <you>/agy-handoff-hub \
  --dest ~/Documents/"Obsidian Vault"/_Handoff \
  --doc-check
# Or use --hf-repo <you>/agy-handoff-hub | --bucket agy-handoff-<gcp-project-id> --include-inbox
Visual Walkthrough

Watch the Closed Loop in Action — Enter Anywhere

Pick where your work starts today. Read what happens step by step above, and watch the live closed loop connect below.

Step 1 of 6
Step 1 >
Attach in chat INDEX.md & plans -YYYYMMDD-HHMM Syncs both ways Push finished docs & error notes Update training scripts & datasets Posts Run Card Gemini Notebook Research & Study Library Grounded Q&A · Audio Overviews Google Colab + Drive Cloud GPUs · ML-Hub Warehouse Heavy weights stay in Drive Gemini Web App Plan & Decide Anywhere Reads snapshots before planning Handoff Hub (GitHub · HF) projects/<slug>/ + INDEX.md ($0) Or Cloud Run / $0 Drive Starter Antigravity (Local Workshop) Obsidian / Antigravity IDE · GitHub · Sheets / Docs / Slides Auto-tags plans · ships code · archives old/ weekly
Built-In Safety Checks:
0 secrets / model words ✓ Zero-touch Master 🔒 <= 16 KiB Snapshot/Run cap ✓ _Handoff/old/ · 0 deletes ✓

3. Troubleshooting & FAQ

Real fixes from live testing. Type any symptom or filter by area—clicking a direct #faq-... link opens that answer automatically.

Showing 11 of 11 answers
Web App Why didn’t Gemini Web App use my Unified Hub connector?

Custom MCP connectors only attach to turns where you explicitly bind them with @. Simply adding a connector in Settings does not inject it into every chat automatically.

Fix: Start your message by typing @, pick your Hub connector chip from the dropdown, and send. If you leave it unbound (or outside US Developer Mode), ecosystem-planner cleanly falls back to saving drafts in your Google Drive AGY-Handoff folder.

Web App Clicking “Reconnect” on an old connector stalls or fails — how do I fix it?

When a connector upgrades or its refresh token rotates, Gemini’s Reconnect button can stall after /auth/callback while reusing an old revoked OAuth client (401 invalid_grant).

Fix: Open gemini.google.com/customize/connectors, delete the old connector entry, and add it fresh with your Hub URL. Dynamic Client Registration creates clean state persisted in GCS _oauth/.

Web App I don’t see Developer Mode connectors in my region — can I still use this?

Yes. Custom remote MCP connectors are rolling out US-first, but the Google Drive bridge (--handoff-mode 1B) works worldwide at $0 with zero GCP project or Cloud Run setup.

Fix: Upload web-skills/ecosystem-planner/SKILL.md under Customize → Skills, create a Google Drive folder named AGY-Handoff, and tell Antigravity run handoff-sync to pull plans via Workspace tools.

Sync & Vault Will connecting a live or mid-build project modify my codebase or Obsidian Master notes?

No—as long as you use Category B (--register-only). It writes only to your workstation registry at ~/.config/google-ecosystem/projects.json.

Safety guarantee: 0 .ecosystem.json or config files are added to your live repository, 0 existing Master, Start here, or Diary notes are edited, and pulled web plans land strictly inside _Handoff/.

Safety & Linter Why was my plan or Snapshot rejected by the write-time linter?

The server linter rejects writes that violate any of four safety rules before touching storage:

1) Secrets: Token patterns like sk-..., AIza..., ghp_..., AKIA..., or hf_... are blocked.
2) Size limits: Handoff plans cap at 204,800 bytes; Snapshots and Colab Run Cards cap at 16,384 bytes.
3) Banned vendor/model words in prose: AI model/vendor names are blocked outside https:// or file:// links (write “web planner” or “research notebook” instead).
4) Filenames & path traversal: Missing/invalid <TAG> format or .. path segments are rejected.

Cost, Ports & Ops Why does local Google ADC login fail with missing_code on localhost?

Local port-monitoring daemons (sweeping localhost ports such as 8085–8184) can hit the ephemeral OAuth callback socket before Google completes the browser redirect, causing missing_code.

Fix: Exempt gcloud OAuth callback listeners via process inspection or run ADC login with --no-launch-browser. Also verify NOTEBOOK_MCP_ENDPOINT and NOTEBOOK_GCP_PROJECT are exported cleanly in your Notebook MCP config.

Cost, Ports & Ops What does this actually cost per month on Google Cloud?

Path 1B (Google Drive): $0/mo always.

Path 1A (Cloud Run Hub): Cloud Run in us-central1 with min-instances=0 and standard GCS storage sit inside Google Cloud’s Always-Free tier ($0 at personal solo traffic). Only Secret Manager versions (oauth-client-secret for OAUTH_CLIENT_SECRET + jwt-signing-key for JWT_SIGNING_KEY) cost ~$0.12/mo if your account’s 6 free secret versions are already used—covered by Developer Program credits.

Safety & Linter Can an AI agent or cleanup job accidentally delete my Obsidian notes?

No. The Unified Hub exposes strictly 9 scoped tools—archive_handoff_note and archive_project_plan move files into old/ with collision-safe timestamps rather than deleting.

Likewise, weekly ecosystem-hygiene only archives notes whose frontmatter is explicitly status: implemented and older than --max-age-days 14 into _Handoff/old/—never active draft or approved plans.

Sync & Vault How do multiple projects, separate Obsidian vaults, and project nicknames stay organized?

Every project maps in ~/.config/google-ecosystem/projects.json with its own canonical tag, vault path, and folder. When you run handoff-sync pull --include-inbox, each incoming Cloud _Inbox/ plan routes into the right vault’s _Handoff/ with the right <TAG>.

Use repeatable --alias flags during ecosystem-init --register-only so short nicknames map back to the same canonical project (markers with alias_of prevent duplicate snapshots).

Cost, Ports & Ops Why does GET /healthz return 404 on Cloud Run while GET /health returns 200?

Google Cloud Run’s Front End (GFE) reserves /healthz at the load-balancer edge and returns 404 before requests reach the Python server.

Fix: Always probe GET <BASE_URL>/health for liveness checks; unauthenticated requests to /mcp should return 401 (fail-closed OAuth).

Cost, Ports & Ops How do I disconnect a project or roll everything back cleanly?

Because existing repos are registered externally, disconnection is non-destructive:

1) Remove the project entry from ~/.config/google-ecosystem/projects.json (and .ecosystem.json only if Track A created it).
2) Archive any unwanted notes inside _Handoff/ into _Handoff/old/.
3) Optionally delete the connector in Chrome (or delete the Cloud Run service) and remove skill symlinks in ~/.gemini/config/skills/.