Skip to main content
Glama
README.md
# `agy-nexus-mcp` โ€” Connect Google Gemini to Your Antigravity IDE, Projects & Usage Dashboard

`agy-nexus-mcp` is a self-hosted Model Context Protocol (MCP) server that connects **Google Gemini** (on the web or mobile app) directly to your local **Google Antigravity IDE / CLI** workstation.

From your phone or browser, you can check on running coding sessions, see what a paused session is waiting for, search and read local repository files, send research plans straight into the right project chat, view **three-tier ASCII usage stats** in chat, or open the **installable Chromium Web App (`/web`)** for live charts and model quota tracking.

---

## Live `/web` Dashboard & Installable Chromium App

![AGY-NEXUS Overwatch Desktop Dashboard โ€” True Monโ€“Sun Calendar Heatmap, Sub-Daily Stacked Area Charts, Token Telemetry & Chromium Standalone App Launcher](docs/assets/dashboard-desktop.png)

<details>
<summary><strong>๐Ÿ“ฑ View Mobile Layout (Centered <code>This Month โ€” MTD</code> Calendar & Responsive Cards)</strong></summary>

<br/>

![AGY-NEXUS Overwatch Mobile Dashboard](docs/assets/dashboard-mobile.png)

</details>

---

## Best Features & Advantages

### 1. Control Your Coding Sessions from Anywhere
- **Browse All Sessions**: Lists your active, paused, and completed Antigravity chats with step counts, active branches, and task checklists.
- **See What Paused Sessions Need**: When an Antigravity chat pauses for confirmation (`STALLED_WAITING_APPROVAL`), you can see the exact tool, command, or file path waiting for your approval.
- **Smart Project Routing**: When you send research notes or instructions back to Antigravity (`send_handoff_and_resume`), the server automatically matches your target project name, workspace path, or repository keywords so your handoff always lands in the right chatโ€”never in an unrelated project tab.

### 2. Built for Reliability on Gemini Web & Mobile
- **One-Call Bundled Responses**: Google Gemini's web and mobile confirmation cards can hang if an MCP server forces back-to-back tool calls in the same turn. Every tool in `agy-nexus-mcp` bundles the context you need into a single turn.
- **Fast `< 20 KB` Payloads**: Large files and git diffs are automatically sliced by line range (`src/app.py:100-250`) or paged so responses never time out over mobile or cloud connections.
- **Voice-Friendly Passphrase Lock**: Protected by a randomized URL path plus an interactive passphrase lock (`unlock_sessions`). It automatically strips punctuation and voice filler (like *"The passphrase is ..."*) so you can unlock it hands-free using Gemini Live or Mobile Voice, and auto-locks after a configurable timeout.

### 3. Installable Chromium App (PWA) & Visual Usage Dashboard (`/web`)
- **One-Click Standalone App**: Open `/web` over HTTPS and click the top-bar **`App`** button to install the dashboard as a native-feeling **Chromium Standalone App** on desktop or mobile (or copy the `--app=` terminal launcher).
- **Consistent `Monโ€“Sun` Activity Heatmap**: Every day sits on its real `Monโ€“Sun` row with a global color scale across **`This Month (MTD)`**, **`Last Month`**, **`Rolling 90 Days`**, and **`Rolling 52 Weeks`**, so switching views never scrambles day positions or shades.
- **4-Hour & 8-Hour Stacked Usage Charts**: Breaks down activity, subagent runs, and project usage into sub-daily 4-hour and 8-hour intervals instead of flat daily averages.
- **4 Themes & 4 Spacing Modes**: Choose between `Obsidian`, `Dark Paper`, `Warm Paper`, and `Pure White` themes alongside 4 compactness levels (`D1`โ€“`D4`) in a single dropdownโ€”automatically remembered in your browser.

---

## How to Set It Up & Use It

### Step 1: Run the Setup Script
Clone the repository on your workstation and run the interactive setup script to generate your passphrase hash, secret URL path, and local service config:

```bash
# Linux / macOS / WSL
./scripts/setup.sh

# Windows PowerShell
.\scripts\setup.ps1
```

Or run the self-test and start the server directly with `uv` or Python:

```bash
python3 scripts/init_secrets.py --passphrase "your-secret-passphrase"
python3 ag_bridge.py --self-test
python3 ag_bridge.py
```

*(See [DEPLOYMENT.md](DEPLOYMENT.md) for Docker Compose, reverse proxy, and Cloudflare Tunnel setup.)*

### Step 2: Connect It in Google Gemini
1. Open **Google Gemini** on the web $\rightarrow$ **Settings** $\rightarrow$ **Connected Apps** $\rightarrow$ **Add custom MCP server**.
2. Paste your secret MCP endpoint URL:
   `https://<your-subdomain>.<your-domain>/{PATH_SECRET}/mcp`
3. Open your dashboard in any browser at:
   `https://<your-dashboard-host>/web`

### Step 3: Everyday Prompts You Can Use in Gemini
Once connected, just talk or type naturally in Gemini Web or Gemini Mobile:
- **Unlock & check status**: *"Unlock Antigravity with passphrase [your phrase] and show me my active sessions."*
- **Inspect a session**: *"Load session 1 and tell me what it's working on or waiting for."*
- **Search & read code**: *"Search my workspace for the authentication middleware and read lines 50 to 150."*
- **Audit uncommitted git changes**: *"Check git diff across all my repositories to see what hasn't been committed yet."*
- **Send a plan back to Antigravity**: *"Send this implementation plan to my `web-dashboard-ui` session and wake it up in plan mode."*
- **View ASCII stats in chat**: *"Show me my latest usage stats"* (or ask for `quick` mobile view or `rich` desktop view).

---

## Three-Tier ASCII Usage Reports in Chat

When you ask Gemini for your usage stats (`manage_background_run(action="stats", period="last_90d", style=...)`), `agy-nexus-mcp` formats your live quota pools, `Monโ€“Sun` calendar heatmap, 8-hour activity curve, and project/subagent token breakdowns into one of **three plain-text layouts**:

| Style | Width | Best For | What It Shows |
| :--- | :---: | :--- | :--- |
| **`style="default"`** | **72 cols** | Standard Desktop & Tablet Chat | Split summary header, 22-week `Monโ€“Sun` heatmap, 8-hour activity & project stack (`โ–‘โ–’โ–“โ–ˆ`), model quota bars (`โ”ผ`), and full project & subagent tables. |
| **`style="quick"`** | **`<= 40` cols** | Phone Screens (Portrait) | Fits strictly within 40 characters per line so it never wraps on mobile. Shows a 13-week heatmap, 8-hour pace curve, model quota bars, and top projects/subagents. |
| **`style="rich"`** | **76 cols** | Widescreen Desktop Chat | Full box-drawn dashboard with side-by-side quota and token panels, 13-week 3-character heatmap with a Peak Day card, 6-row 8-hour activity curve, and share gauges. |

### 1. `style="default"` (72-Column Standard Layout)

```text
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•คโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
AGY-NEXUS // 90d (Nov 03 โ—„โ”€โ”€ Aug 06)    โ”† EXTENDED TELEMETRY & AVERAGES 
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ชโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
GOOGLE 20x : 100.0% [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ”ผโ–ˆ] HEALTHYโ”† 0x 429s | Ultra-20x (T:>=90%) 
PARTNER 1x : 100.0% [โ–‘โ”ผโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘] ON PACEโ”† 71.4% Wk Left | Lim <=14.3%/d 
STEPS/TOOLS: 187,877s | 93,195t | 54c   โ”† 4,369 s/act-d | 2,020 s/cal-d 
TOKEN BURN : ~69.3M Total (227 sub runs)โ”† 1.61M tok/d   | 11.28M tok/wk 
MCP WIRE   : 100% <20KB (avg 3.0/17.5 KBโ”† 77 Reqs (62.5k tok) | Gemini W
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
DAILY HEATMAP (NOW: W01 โ”€โ”€โ–บ 22w AGO)   Peak: 10/31 (11,118s) | Act: 43d
Wk    01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22
Mon   โ–’โ–’ โ–ˆโ–ˆ โ–‘โ–‘ โ–’โ–’ โ–“โ–“ โ–’โ–’ ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท
Tue   โ–‘โ–‘ โ–“โ–“ โ–’โ–’ โ–’โ–’ โ–’โ–’ โ–‘โ–‘ โ–‘โ–‘ ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท
Wed   ยทยท โ–“โ–“ โ–‘โ–‘ โ–‘โ–‘ โ–’โ–’ โ–“โ–“ โ–‘โ–‘ ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท
Thu   ยทยท โ–ˆโ–ˆ โ–‘โ–‘ โ–’โ–’ โ–“โ–“ โ–ˆโ–ˆ โ–‘โ–‘ ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท
Fri   ยทยท โ–“โ–“ โ–ˆโ–ˆ โ–“โ–“ โ–’โ–’ โ–“โ–“ โ–“โ–“ ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท
Sat   ยทยท โ–ˆโ–ˆ โ–ˆโ–ˆ โ–‘โ–‘ โ–’โ–’ โ–ˆโ–ˆ โ–ˆโ–ˆ ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท
Sun   ยทยท โ–ˆโ–ˆ โ–ˆโ–ˆ โ–“โ–“ โ–“โ–“ โ–ˆโ–ˆ โ–’โ–’ ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท ยทยท
Vol   โ–โ– โ–ˆโ–ˆ โ–…โ–… โ–ƒโ–ƒ โ–„โ–„ โ–…โ–… โ–ƒโ–ƒ โ”€โ”€ โ”€โ”€ โ”€โ”€ โ”€โ”€ โ”€โ”€ โ”€โ”€ โ”€โ”€ โ”€โ”€ โ”€โ”€ โ”€โ”€ โ”€โ”€ โ”€โ”€ โ”€โ”€ โ”€โ”€ โ”€โ”€
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
8H SUB-DAILY PACE (NOW โ”€โ”€โ–บ SEP 21)   [Avg: 1.5k/8h | Peak: 3.7k | โ–‘โ–’โ–“โ–ˆ]
3.7k โ•ท     โ–ˆ        โ–„โ–„                                                 
1.9k โ”ค   โ–„โ–ˆโ–ˆ  โ–„โ–„  โ–„โ–ˆโ–ˆโ–ˆโ–ˆโ–„                     โ–„    โ–ˆโ–„  โ–„โ–„      โ–„        
1.5k โ”ผโ”€โ”€โ–„โ–ˆโ–ˆโ–ˆโ–ˆโ–„โ–ˆโ–ˆโ–„โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ”€โ”€โ”€โ–„โ”€โ”€โ–„โ”€โ”€โ–ˆโ”€โ”€โ”€โ”€โ”€โ”€โ–ˆโ–„โ”€โ”€โ–„โ–ˆโ”€โ”€โ”€โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ”€โ”€โ”€โ–„โ”€โ–ˆโ–ˆโ–ˆโ”€โ”€โ”€โ”€โ”€โ”€
   0 โ•ต โ–„โ–’โ–ˆโ–’โ–’โ–“โ–“โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–’โ–ˆโ–’โ–’โ–’โ–’โ–„โ–’โ–’โ–„โ–’โ–’โ–„โ–„โ–ˆโ–ˆโ–ˆโ–„โ–„โ–ˆโ–“โ–ˆโ–ˆโ–ˆโ–„โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–“โ–“โ–„โ–“โ–“โ–“โ–“โ–“โ–“โ–„โ–“โ–„   
     โ””โ”€โ–ฒโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ฒโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ฒโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ฒโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ฒโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ฒโ”€
      Nov 03       Oct 26       Oct 17       Oct 08       Sep 29     Sep
      Stack: [โ–ˆ] core-platform (42%)  [โ–“] web-dashboard (25%)  [โ–’] agent
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
MODEL QUOTA vs TARGET (โ”ผ = Target Pin)      CALLS   EST TOK  DELTA  STAT
Argon 4 Pro [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ”ผโ–ˆโ–“โ–‘โ–‘โ–‘โ–‘โ–‘]  70.4%   77,856    ~18.0M  +5.4%  OK
Flash 3.8   [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ”ผโ–“โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘]  29.6%   32,675  FastTier  +4.6%  OK
Claude 5.5  [โ–‘โ–‘โ”ผโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘]   0.0%       31         0  -8.0%  OK
GPT-OSS 120 [โ–โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘]   0.0%        0         0  -2.0%  OK
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
WORKSPACES (9)       CHATS   STEPS   TOTAL TOK  TOK/DAY   TOK/WK   SHARE
1. core-platform-ap  10c  65,811     ~29.2M     679k    4.75M   42.1%
2. web-dashboard-ui  19c  45,032     ~17.2M     400k    2.80M   24.8%
3. agent-orchestrat   5c  20,107     ~16.5M     384k    2.69M   23.8%
4. cloud-infra-gito   8c   5,991      ~2.2M      52k     362k    3.2%
5. mobile-sync-engi   1c   5,092      ~2.0M      46k     322k    2.9%
6. telemetry-pipeli   7c   2,878      ~897k      21k     146k    1.3%
7. auth-gateway       2c   2,691      ~1.0M      23k     164k    1.5%
8. docs-portal        1c   1,126      ~294k     6.8k      48k    0.4%
9. sdk-client-py      1c      21      ~4.5k      104      727    0.0%
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
SUBAGENTS (8)         RUNS   STEPS   TOTAL TOK  TOK/DAY   TOK/WK   SHARE
1. flash-surgeon    116r  21,704      ~8.9M     207k    1.45M   58.2%
2. flash-auditor     78r   8,170      ~2.7M      63k     441k   17.7%
3. argon-sentinel     3r   3,142      ~1.3M      30k     209k    8.4%
4. flash-scout       20r   2,801      ~1.1M      25k     173k    6.9%
5. argon-surgeon      2r   2,287      ~920k      21k     150k    6.0%
6. research           5r     862      ~333k     7.7k      54k    2.2%
7. argon-architect    2r     132     ~64.2k     1.5k      10k    0.4%
8. claude-specialis   1r      31     ~16.3k      380     2.7k    0.1%
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
```

### 2. `style="quick"` (40-Column Mobile Layout)

```text
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
AGY-NEXUS // 90d (Nov 03 โ—„โ”€โ”€ Aug 06)
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
G-20x: 100% [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ”ผโ–ˆ] OK | 0x 429s
P-1x : 100% [โ–‘โ”ผโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘] OK | 71% WkLft
Steps:187.9k | Tools:93.2k | Act:43d
Burns:~69.3M | 1.61M/d | 11.28M/wk
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
HEATMAP (NOW โ”€โ”€โ–บ 13w Ago)  โ”‚ PEAK & VOL
Mo โ–’โ–ˆโ–‘โ–’โ–“โ–’ยทยทยทยทยทยทยท           โ”‚ Pk: 10/31
Tu โ–‘โ–“โ–’โ–’โ–’โ–‘โ–‘ยทยทยทยทยทยท           โ”‚ 11,118 step
We ยทโ–“โ–‘โ–‘โ–’โ–“โ–‘ยทยทยทยทยทยท           โ”‚ Avg:4,369/d
Th ยทโ–ˆโ–‘โ–’โ–“โ–ˆโ–‘ยทยทยทยทยทยท           โ”‚ Chats: 54c
Fr ยทโ–“โ–ˆโ–“โ–’โ–“โ–“ยทยทยทยทยทยท           โ”‚ Subs : 227r
Sa ยทโ–ˆโ–ˆโ–‘โ–’โ–ˆโ–ˆยทยทยทยทยทยท           โ”‚ Tok/d:1.61M
Su ยทโ–ˆโ–ˆโ–“โ–“โ–ˆโ–’ยทยทยทยทยทยท           โ”‚ Tok/w:11.28
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
8H PACE & STACK (NOWโ”€โ”€โ–บOLD) Pk:3.2k
3.2kโ•ท  โ–„   โ–ˆโ–„โ–„                       
1.6kโ”ค  โ–ˆ โ–ˆ โ–ˆโ–ˆโ–ˆ             โ–„โ–„   โ–ˆโ–„   
1.4kโ”ผโ”€โ–„โ–ˆโ–ˆโ–ˆโ–„โ–ˆโ–ˆโ–ˆโ”€โ–„โ”€โ”€โ–„โ”€โ”€โ”€โ–ˆโ–„โ–„โ”€โ–ˆโ–ˆโ–ˆโ–„โ”€โ–„โ–ˆโ–ˆโ”€โ”€โ”€
   0โ•ต โ–’โ–’โ–“โ–ˆโ–ˆโ–ˆโ–ˆโ–’โ–„โ–’โ–’โ–’โ–ˆโ–ˆโ–“โ–“โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–“โ–„โ–“โ–“โ–“โ–“  
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
MODEL QUOTA (โ”ผ=Target)  PCT   TOK   DLT
Argon 4 [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ”ผโ–“โ–‘โ–‘]  70% 18.0M   +5%
Flash38 [โ–ˆโ–ˆโ”ผโ–“โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘]  30%  Fast   +5%
Claude5 [โ–‘โ”ผโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘]   0%     0   -8%
GPT-120 [โ–โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘]   0%     0   -2%
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
WORKSPACES & SUBS  TOK   TOK/D   TOK/WK
core-platform-ap 29.2M   679k   4.75M
web-dashboard-ui 17.2M   400k   2.80M
agent-orchestrat 16.5M   384k   2.69M
cloud-infra-gito  2.2M    52k    362k
mobile-sync-engi  2.0M    46k    322k
telemetry-pipeli  897k    21k    146k
*flash-surgeon    8.9M   207k   1.45M
*flash-auditor    2.7M    63k    441k
*argon-sentinel   1.3M    30k    209k
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
```

### 3. `style="rich"` (76-Column Widescreen Layout)

```text
โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
โ•‘ โ–„โ–€โ–ˆ โ–ˆโ–€โ–€ โ–ˆโ–„โ–ˆ โ–„โ–„ โ–ˆโ–„โ–‘โ–ˆ โ–ˆโ–€โ–€ โ–€โ–„โ–€ โ–ˆโ–‘โ–ˆ โ–ˆโ–€   v3.8 // RICH TELEMETRY RIG          โ•‘
โ•‘ โ–ˆโ–€โ–ˆ โ–ˆโ–„โ–ˆ โ–‘โ–ˆโ–‘ โ–‘โ–‘ โ–ˆโ–‘โ–€โ–ˆ โ–ˆโ–ˆโ–„ โ–ˆโ–‘โ–ˆ โ–ˆโ–„โ–ˆ โ–„โ–ˆ   WINDOW: 90d (Nov 03 โ—„โ”€โ”€ Aug 06)     โ•‘
โ• โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฆโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฃ
โ•‘ QUOTA POOLS & 429 COOLDOWNS        โ”‚ STEP & TOOL VELOCITY                โ•‘
โ•‘ G-20x: 100.0% [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ”ผโ–ˆ] OK      โ”‚ Total : 187,877 steps | 93,195 tool โ•‘
โ•‘ P-1x : 100.0% [โ–‘โ”ผโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘] OK      โ”‚ Active: 4,369 s/act-d (43d active)  โ•‘
โ•‘ 429s : 0 events | 71.4% Wk Left    โ”‚ Calend: 2,020 s/cal-d (54c, 227r)   โ•‘
โ• โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฌโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฃ
โ•‘ TOKEN BURN & ROLLING AVERAGES      โ”‚ MCP WIRE & CLIENT SURFACES          โ•‘
โ•‘ Total : ~69.3M (~63.0M direct)     โ”‚ Wire  : 100% <20KB (avg 3.0/17.5KB) โ•‘
โ•‘ Daily : 1.61M tok/act-d            โ”‚ Calls : 77 MCP reqs (62.5k tok)     โ•‘
โ•‘ Weekly: 11.28M tok/wk              โ”‚ Client: Gemini Web (100% / 0 Mob)   โ•‘
โ• โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฉโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฃ
โ•‘ DAILY ACTIVITY MATRIX (NOW: W01 โ”€โ”€โ–บ W13)     [ยทยท 0  โ–‘โ–‘ <1k  โ–’โ–’ <4k  โ–ˆโ–ˆ]  โ•‘
โ•‘ Wk   W01 W02 W03 W04 W05 W06 W07 W08 W09 W10 W11 W12 W13  โ”Œโ”€ PEAK DAY โ”€โ” โ•‘
โ•‘ Mon  โ–’โ–’โ–’ โ–ˆโ–ˆโ–ˆ โ–‘โ–‘โ–‘ โ–’โ–’โ–’ โ–“โ–“โ–“ โ–’โ–’โ–’ ยทยทยท ยทยทยท ยทยทยท ยทยทยท ยทยทยท ยทยทยท ยทยทยท  โ”‚ Oct 31     โ”‚ โ•‘
โ•‘ Tue  โ–‘โ–‘โ–‘ โ–“โ–“โ–“ โ–’โ–’โ–’ โ–’โ–’โ–’ โ–’โ–’โ–’ โ–‘โ–‘โ–‘ โ–‘โ–‘โ–‘ ยทยทยท ยทยทยท ยทยทยท ยทยทยท ยทยทยท ยทยทยท  โ”‚ 11,118 stp โ”‚ โ•‘
โ•‘ Wed  ยทยทยท โ–“โ–“โ–“ โ–‘โ–‘โ–‘ โ–‘โ–‘โ–‘ โ–’โ–’โ–’ โ–“โ–“โ–“ โ–‘โ–‘โ–‘ ยทยทยท ยทยทยท ยทยทยท ยทยทยท ยทยทยท ยทยทยท  โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ•‘
โ•‘ Thu  ยทยทยท โ–ˆโ–ˆโ–ˆ โ–‘โ–‘โ–‘ โ–’โ–’โ–’ โ–“โ–“โ–“ โ–ˆโ–ˆโ–ˆ โ–‘โ–‘โ–‘ ยทยทยท ยทยทยท ยทยทยท ยทยทยท ยทยทยท ยทยทยท  โ”‚ Act: 43d   โ”‚ โ•‘
โ•‘ Fri  ยทยทยท โ–“โ–“โ–“ โ–ˆโ–ˆโ–ˆ โ–“โ–“โ–“ โ–’โ–’โ–’ โ–“โ–“โ–“ โ–“โ–“โ–“ ยทยทยท ยทยทยท ยทยทยท ยทยทยท ยทยทยท ยทยทยท  โ”‚ Avg:  4.4k โ”‚ โ•‘
โ•‘ Sat  ยทยทยท โ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆ โ–‘โ–‘โ–‘ โ–’โ–’โ–’ โ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆ ยทยทยท ยทยทยท ยทยทยท ยทยทยท ยทยทยท ยทยทยท  โ”‚ Sub: 227r  โ”‚ โ•‘
โ•‘ Sun  ยทยทยท โ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆ โ–“โ–“โ–“ โ–“โ–“โ–“ โ–ˆโ–ˆโ–ˆ โ–’โ–’โ–’ ยทยทยท ยทยทยท ยทยทยท ยทยทยท ยทยทยท ยทยทยท  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ•‘
โ•‘ Vol  โ–โ–โ– โ–ˆโ–ˆโ–ˆ โ–…โ–…โ–… โ–ƒโ–ƒโ–ƒ โ–„โ–„โ–„ โ–…โ–…โ–… โ–ƒโ–ƒโ–ƒ โ”€โ”€โ”€ โ”€โ”€โ”€ โ”€โ”€โ”€ โ”€โ”€โ”€ โ”€โ”€โ”€ โ”€โ”€โ”€  PeakWk:46.8k   โ•‘
โ•‘ Steps2.9 46. 35. 20. 27. 36. 19.  ยท   ยท   ยท   ยท   ยท   ยท                  โ•‘
โ• โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฃ
โ•‘ 8H SUB-DAILY HORIZON CURVE & PROJECT STACK (NOW โ”€โ”€โ–บ SEP 21)              โ•‘
โ•‘ 3.7k โ•ท     โ–ˆ       โ–„ โ–„                                                   โ•‘
โ•‘ 2.9k โ”ค    โ–„โ–ˆ       โ–ˆโ–„โ–ˆโ–„                               โ–ˆ                  โ•‘
โ•‘ 2.0k โ”ค   โ–„โ–ˆโ–ˆ  โ–„โ–„  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ                     โ–„    โ–ˆโ–ˆโ–„ โ–„โ–ˆ      โ–„โ–„          โ•‘
โ•‘ 1.5k โ”ผโ”€โ”€โ”€โ–ˆโ–ˆโ–ˆโ–ˆโ”€โ–ˆโ–ˆโ–„โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–„โ”€โ”€โ”€โ”€โ”€โ”€โ–ˆโ”€โ”€โ”€โ–ˆโ”€โ”€โ”€โ”€โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–„โ–ˆโ”€โ”€โ”€โ”€โ–ˆโ–ˆโ–ˆโ”€โ”€โ”€โ”€โ”€โ”€   โ•‘
โ•‘  662 โ”ค  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–„ โ–ˆโ–„ โ–ˆโ–ˆ โ–„โ–ˆโ–„ โ–„โ–„โ–„โ–ˆโ–ˆโ–ˆ โ–„โ–ˆ โ–ˆโ–„โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ โ–„โ–ˆโ–„โ–ˆโ–ˆโ–ˆ         โ•‘
โ•‘    0 โ•ต โ–„โ–’โ–ˆโ–’โ–’โ–“โ–“โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–’โ–ˆโ–’โ–’โ–’โ–’โ–’โ–’โ–’โ–„โ–’โ–’โ–’โ–ˆโ–ˆโ–“โ–„โ–ˆโ–“โ–ˆโ–ˆโ–ˆโ–ˆโ–„โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–“โ–“โ–„โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–„     โ•‘
โ•‘      โ””โ”€โ–ฒโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ฒโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ฒโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ฒโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ฒโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ฒโ”€โ”€โ”€  โ•‘
โ•‘       Nov 03      Oct 25      Oct 16      Oct 07      Sep 28      Sep 21 โ•‘
โ•‘       Stack: [โ–ˆ]core-platfor(42%)  [โ–“]web-dashboar(25%)  [โ–’]agent-orches โ•‘
โ• โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฃ
โ•‘ MODEL QUOTA vs TARGET (โ”ผ = Target Pin)       CALLS   EST TOK  DELTA STAT โ•‘
โ•‘ Argon 4 Pro [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ”ผโ–ˆโ–“โ–‘โ–‘โ–‘โ–‘โ–‘]  70.4%  77,856    ~18.0M  +5.4%  OK  โ•‘
โ•‘ Flash 3.8   [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ”ผโ–“โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘]  29.6%  32,675  FastTier  +4.6%  OK  โ•‘
โ•‘ Claude 5.5  [โ–‘โ–‘โ”ผโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘]   0.0%      31         0  -8.0%  OK  โ•‘
โ•‘ GPT-OSS 120 [โ–โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘]   0.0%       0         0  -2.0%  OK  โ•‘
โ• โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฃ
โ•‘ WORKSPACES (9)     CHATS   STEPS  TOTAL TOK  TOK/DAY  TOK/WK SHARE GAUGE โ•‘
โ•‘ 1. core-platform-  10c  65,811     ~29.2M     679k   4.75M โ–ˆโ–ˆโ–โ–‘โ–‘โ–‘ 42.1%  โ•‘
โ•‘ 2. web-dashboard-  19c  45,032     ~17.2M     400k   2.80M โ–ˆโ–โ–‘โ–‘โ–‘โ–‘ 24.8%  โ•‘
โ•‘ 3. agent-orchestr   5c  20,107     ~16.5M     384k   2.69M โ–ˆโ–โ–‘โ–‘โ–‘โ–‘ 23.8%  โ•‘
โ•‘ 4. cloud-infra-gi   8c   5,991      ~2.2M      52k    362k โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘  3.2%  โ•‘
โ•‘ 5. mobile-sync-en   1c   5,092      ~2.0M      46k    322k โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘  2.9%  โ•‘
โ•‘ 6. telemetry-pipe   7c   2,878      ~897k      21k    146k โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘  1.3%  โ•‘
โ•‘ 7. auth-gateway     2c   2,691      ~1.0M      23k    164k โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘  1.5%  โ•‘
โ•‘ 8. docs-portal      1c   1,126      ~294k     6.8k     48k โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘  0.4%  โ•‘
โ•‘ 9. sdk-client-py    1c      21      ~4.5k      104     727 โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘  0.0%  โ•‘
โ•Ÿโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ข
โ•‘ SUBAGENTS (8)       RUNS   STEPS  TOTAL TOK  TOK/DAY  TOK/WK SHARE GAUGE โ•‘
โ•‘ 1. flash-surgeon  116r  21,704      ~8.9M     207k   1.45M โ–ˆโ–ˆโ–ˆโ–โ–‘โ–‘ 58.2%  โ•‘
โ•‘ 2. flash-auditor   78r   8,170      ~2.7M      63k    441k โ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘ 17.7%  โ•‘
โ•‘ 3. argon-sentinel   3r   3,142      ~1.3M      30k    209k โ–โ–‘โ–‘โ–‘โ–‘โ–‘  8.4%  โ•‘
โ•‘ 4. flash-scout     20r   2,801      ~1.1M      25k    173k โ–โ–‘โ–‘โ–‘โ–‘โ–‘  6.9%  โ•‘
โ•‘ 5. argon-surgeon    2r   2,287      ~920k      21k    150k โ–โ–‘โ–‘โ–‘โ–‘โ–‘  6.0%  โ•‘
โ•‘ 6. research         5r     862      ~333k     7.7k     54k โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘  2.2%  โ•‘
โ•‘ 7. argon-architec   2r     132     ~64.2k     1.5k     10k โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘  0.4%  โ•‘
โ•‘ 8. claude-special   1r      31     ~16.3k      380    2.7k โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘  0.1%  โ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
```

---

## Advanced & Future Workflows: Pairing with Gemini Notebook & Gemini Tasks

When you combine `agy-nexus-mcp` with **Gemini Notebook** (formerly NotebookLM) and **Gemini Tasks** (formerly Spark), Gemini becomes a scheduled, citation-backed control center for your local Antigravity projects:

### 1. Zero-Token Reference Lookup with Gemini Notebook
Normally, if a local coding agent needs to check hardware manuals, API specs, RFCs, or large architecture docs, it spends local steps and model quota reading files.
- **Pre-Flight Context Compression**: Store large reference manuals and specs in **Gemini Notebook**. Ask Gemini to pull the exact cited excerpts from your Notebook first, then send a concise `<= 4,500`-character brief into Antigravity via `send_handoff_and_resume`.
- **Fast Handoffs**: Local agents skip broad file discovery and start coding immediately, while large Notebook briefs automatically write to `scratch/gemini_research_handoff.md` with a compact wakeup prompt so CLI handoffs never time out.

### 2. Scheduled Automation with Gemini Tasks (Spark)
Because Gemini Tasks supports recurring schedules, event triggers, Gemini Notebook, and custom MCP connectors, it can run unattended checks for your local projects:
- **Morning Usage & Audio Briefings**: Schedule a morning Gemini Task to call `manage_background_run(action="stats")`, combine your quota pacing with open tasks, and prepare a morning summary or Notebook Audio Overview.
- **Single-Turn Multi-Repo Drift Audits**: A nightly Gemini Task can call `inspect_git_diff(workspace_override="ALL")` to scan all of your local Git repositories in one turnโ€”flagging uncommitted changes, active branches, or paused sessions without hitting Gemini's single-tool-per-turn limit.
- **Event-Driven Plan Staging**: When an important release note or alert arrives, a triggered Gemini Task can check impact against your Gemini Notebook docs and stage a `plan`-mode handoff (`resume_headless=False`) for you to review.

### 3. Searchable Project Memory (`walkthrough.md` $\rightarrow$ Gemini Notebook Sync)
Every completed Antigravity session produces an `implementation_plan.md` and `walkthrough.md` that normally sit isolated inside individual session UUID folders.
- **Clean Notebook Exports**: Calling `manage_background_run(action="export_notebook")` exports completed session plans and walkthroughs into human-named, dated Markdown files (`YYYY-MM-DD_<repo>_<title>_<id>.md`) inside `sidecar_data/ag-bridge-bg/notebook_exports/` (configurable via `AGY_NOTEBOOK_EXPORT_DIR`).
- **SHA-256 Deduplication (Zero Re-Sync Loops)**: Before writing each file, `export_notebook` checks a SHA-256 hash of the content and skips unchanged sessions (`sync_state="unchanged"`), so syncing that folder to Google Drive and Gemini Notebook never causes duplicate uploads or sync loops.

### 4. Split-Trust Lock Options for Unattended Scheduled Runs
Because `agy-nexus-mcp` requires your interactive passphrase to unlock, a scheduled 6:00 AM Gemini Task would normally hit the lock screen unless you include the passphrase in the task prompt. If you want unattended scheduled tasks without storing your passphrase in a cloud prompt, you can enable two optional split-trust settings in `secrets.env`:
- **`AG_BRIDGE_ALLOW_LOCKED_STATS=true`**: Allows `manage_background_run(action="stats")` to return usage and quota summaries while lockedโ€”without exposing any code, file paths, or chat messages.
- **`AG_BRIDGE_ALLOW_LOCKED_STAGING=true`**: Allows `send_handoff_and_resume(..., resume_headless=False)` while locked to save incoming research notes into a quarantine folder (`sidecar_data/ag-bridge-bg/quarantine_handoffs/`), keeping file reads and live execution strictly behind your passphrase.

---

## Available MCP Tools (9 Tools)

| Tool | What It Does |
| :--- | :--- |
| `unlock_sessions(spoken_passphrase, search_query="")` | Verifies your passphrase, unlocks the server, and returns your numbered list of recent Antigravity chats (`1..N`) plus a live usage summary. |
| `lock_bridge()` | Immediately locks the server and clears the active session selection. |
| `list_saved_sessions(limit, status_filter, include_subagents)` | Lists recent Antigravity chats with live status (`RUNNING`, `STALLED_WAITING_APPROVAL`, `COMPLETED`, `IDLE`), waiting approval details, project path, and task summary. |
| `load_session_into_gemini(session_identifier, include_files)` | Opens a chat by number (`"1"`), `#2`, ID prefix, or title keyword and returns its `task.md`, `implementation_plan.md`, `walkthrough.md`, git status, and recent messages. |
| `ask_workspace_readonly(question, search_query, file_subpath, start_line, end_line)` | Searches code or reads files across the active project (with line-range support like `src/app.py:100-250` or `skill:agy-nexus-stats`). |
| `inspect_git_diff(target_branch, include_untracked, workspace_override, file_path, offset_chars, start_line, end_line)` | Shows the current branch, modified/untracked files, and git diff for a repoโ€”or pass `workspace_override="ALL"` (or `"repo1,repo2"`) to audit all repositories in one turn. |
| `send_handoff_and_resume(research_markdown, resume_headless, session_identifier, workspace_path, project_name, activate_skills, target_agent_role, ...)` | Routes your research notes or implementation plan to the right project session (`scratch/gemini_research_handoff.md`), and optionally wakes up Antigravity to continue working. |
| `manage_background_run(action, job_id, tail_lines, period, style)` | Checks background session progress (`status`, `tail`, `stop`), renders three-tier ASCII stats (`action="stats"`), or exports completed session plans/walkthroughs for Gemini Notebook (`action="export_notebook"`). |
| `list_models_and_agents(include_skills, include_rules, skill_scope_filter, inspect_name)` | Lists your configured Agent Roles, Skills, Rules, and pool quota settings, or reads a specific skill/rule file via `inspect_name`. |

---

## Comparison with Typical Antigravity Bridges

| Feature | Typical Community Bridges (`agy-bridge`, `gemini-antigravity-bridge`, `meridian`, `ag-local-bridge`) | `agy-nexus-mcp` |
| :--- | :--- | :--- |
| **Connection Type** | Local `stdio` pipe, localhost proxy, or single-chat Telegram/WhatsApp bot | **Streamable HTTP MCP** reachable directly from Google Gemini Web, Mobile & Scheduled Gemini Tasks |
| **Security** | None or static chat-ID allowlist | **Secret URL Path + Voice/Text Passphrase Lock** with optional split-trust staging |
| **Multi-Chat History & Routing** | Single active chat only | Browse all chats and subagents with full-text search and **automatic multi-project handoff routing** |
| **Web Dashboard & Chromium App** | None | **Installable Chromium Standalone App (`/web`)** with `Monโ€“Sun` Calendar Heatmap, 4 Themes ร— 4 Densities, and 4h/8h Stacked Area Charts |
| **Chat ASCII Usage Reports** | None | **Three-Tier Monospace ASCII Reports** (`default` 72-col, `quick` 40-col mobile, `rich` 76-col desktop) |
| **Gemini Notebook & Tasks Ready** | None | **One-turn multi-repo drift audits (`workspace_override="ALL"`)** & SHA-256 deduplicated `walkthrough.md` exports (`action="export_notebook"`) |
| **Large File & Diff Handling** | Raw dumps that can hang cloud proxies | **Automatic `< 20 KB` Responses** with line-range file reads and paged git diffs |

---

## Optional: Starter Subagents Prompt

If you haven't set up custom subagents in Antigravity yet and want a ready-made set of helper agents (`flash-scout`, `flash-surgeon`, `flash-auditor`, `argon-sentinel`), paste this prompt into an Antigravity chat:

> *"Create four global subagent definitions in `~/.gemini/config/agents/`: `flash-scout.md` (read-only codebase search on `flash`), `flash-surgeon.md` (focused code edits and refactors on `flash`), `flash-auditor.md` (test and linter runner on `flash`), and `argon-sentinel.md` (read-only architecture and bug reviewer on `pro`)."*

As soon as Antigravity runs those subagents, their activity and token usage will automatically appear in the `/web` dashboard and ASCII reports.

---

## Repository Layout

```text
agy-nexus-mcp/
โ”œโ”€โ”€ ag_bridge.py                      # Main FastMCP HTTP server (9 tools + /web & PWA routes)
โ”œโ”€โ”€ ag_bridge_workflows.py            # Gemini Notebook export, multi-repo drift audit & quarantine staging
โ”œโ”€โ”€ ag_bridge_hygiene.py              # File line-range slicer, diff paginator & code modularity helper
โ”œโ”€โ”€ ag_bridge_inventory.py            # Skills, Agent Roles & Rules discovery helper
โ”œโ”€โ”€ ag_bridge_stats.py                # Usage stats, Monโ€“Sun heatmap, sub-daily series & ASCII router
โ”œโ”€โ”€ ag_bridge_telemetry_scanner.py    # Transcript & SQLite step/token/subagent/workspace scanner
โ”œโ”€โ”€ ag_bridge_ascii_default.py        # Tier 1 (72-col Default) & Tier 2 (40-col Quick) ASCII renderers
โ”œโ”€โ”€ ag_bridge_ascii_rich.py           # Tier 3 (76-col Rich Widescreen) ASCII renderer
โ”œโ”€โ”€ web/
โ”‚   โ”œโ”€โ”€ index.html                    # Responsive /web Dashboard (4 Themes ร— 4 Densities + PWA client)
โ”‚   โ”œโ”€โ”€ manifest.webmanifest          # Chromium Standalone Web App Manifest
โ”‚   โ”œโ”€โ”€ sw.js                         # Root-scoped network-first Service Worker
โ”‚   โ”œโ”€โ”€ icon.svg                      # Vector radar & heatmap app icon
โ”‚   โ”œโ”€โ”€ icon-192.png                  # 192ร—192 RGBA PWA icon
โ”‚   โ””โ”€โ”€ icon-512.png                  # 512ร—512 RGBA PWA icon
โ”œโ”€โ”€ docs/
โ”‚   โ””โ”€โ”€ assets/
โ”‚       โ”œโ”€โ”€ dashboard-desktop.png     # Depersonalized desktop dashboard & App popover screenshot
โ”‚       โ””โ”€โ”€ dashboard-mobile.png      # Depersonalized mobile dashboard screenshot
โ”œโ”€โ”€ skills/
โ”‚   โ””โ”€โ”€ agy-nexus-stats/
โ”‚       โ””โ”€โ”€ SKILL.md                  # Bundled skill for rendering 3-tier ASCII & web stats in Gemini
โ”œโ”€โ”€ host_bridge/
โ”‚   โ””โ”€โ”€ agy_host_bridge.py            # Lightweight host daemon (:8098) for waking sessions & git inspection
โ”œโ”€โ”€ scripts/
โ”‚   โ”œโ”€โ”€ setup.sh                      # Interactive setup script (Linux / macOS / WSL)
โ”‚   โ”œโ”€โ”€ setup.ps1                     # Interactive setup script (Windows PowerShell)
โ”‚   โ”œโ”€โ”€ init_secrets.py               # Passphrase & secret URL generator
โ”‚   โ””โ”€โ”€ sync_repo.sh                  # Repo sync utility
โ”œโ”€โ”€ systemd/
โ”‚   โ”œโ”€โ”€ ag-bridge.service             # Systemd user service for running ag_bridge.py on the host
โ”‚   โ””โ”€โ”€ agy-host-bridge.service       # Systemd user service for the host companion daemon
โ”œโ”€โ”€ tests/
โ”‚   โ””โ”€โ”€ run_permutation_suite.py      # End-to-end automated test suite
โ”œโ”€โ”€ docker-compose.yml                # Docker Compose manifest
โ”œโ”€โ”€ DEPLOYMENT.md                     # Step-by-step setup, reverse proxy & HTTPS PWA guide
โ”œโ”€โ”€ LICENSE                           # GNU Affero General Public License v3.0 (AGPL-3.0-or-later)
โ”œโ”€โ”€ NOTICE                            # AGPLv3 Section 7 Attribution, Brand & Security-Integrity Terms
โ”œโ”€โ”€ pyproject.toml                    # Python package metadata (v2.3.0)
โ””โ”€โ”€ requirements.txt                  # Python dependencies
```

---

## License, Attribution & Security Integrity (`GNU AGPLv3`)

`agy-nexus-mcp` is free and open-source software licensed under the **GNU Affero General Public License v3.0 or later (`AGPL-3.0-or-later`)** โ€” see [`LICENSE`](LICENSE) and [`NOTICE`](NOTICE) for full terms.

### What This Means in Plain Language
1. **Always Open & Share-Alike (Including Network / Hosted Use โ€” AGPLv3 ยง13)**:
   - You are free to use, study, modify, and self-host `agy-nexus-mcp`.
   - If you distribute modified versionsโ€”or run a modified version as a hosted service or network-accessible MCP / `/web` server for othersโ€”you **must** make the complete corresponding source code publicly available under `AGPLv3`. Nobody can take this project private or wrap it into a proprietary commercial offering.
2. **Required Attribution & Brand Protection (AGPLv3 ยง7(b), ยง7(c) & ยง7(e))**:
   - All copies, forks, and derivative works must preserve the copyright notices, license notices, and upstream attribution in [`NOTICE`](NOTICE) and in the `/web` and ASCII telemetry interfaces.
   - Modified versions must be clearly marked as modified and **may not** be advertised or misrepresented as the official original `agy-nexus-mcp` release.
3. **Security-Integrity Disclosure (AGPLv3 ยง7(c) & ยง5(a))**:
   - The voice-passphrase deadbolt (`PASS_HASH`), unguessable `PATH_SECRET` routing, path-traversal sandboxing, and read-only SQLite isolation are core security guarantees of `agy-nexus-mcp`.
   - Any fork or derivative work that weakens, bypasses, or strips these security controls **must** prominently disclose that its security boundary has been removed or altered and may not present itself under the unmodified `agy-nexus-mcp` / `AGY-NEXUS` identity.

Maintenance

ActivityMaintained
ResponsivenessNo issues