Skip to main content
Glama

Antigravity Token Heatmap Cockpit (token-heatmap)

Local-First AI Engineering Telemetry, Contribution Heatmap, FinOps Ledger & Collectible Almanac for Google Antigravity and Gemini CLI

面向 Google Antigravity 与 Gemini CLI 的本地 AI 研发战绩驾驶舱:GitHub 风格 Token 贡献热力图、分模型 FinOps 账单、上下文体检与高清年鉴海报

Antigravity Plugin Gemini CLI Extension MCP App Privacy License: MIT


One-Command Installation · 一行命令极速安装

Option 1: Antigravity CLI (agy)

agy plugin install https://github.com/LEFTX1/antigravity-token-heatmap

Option 2: Windows PowerShell (No agy CLI needed · 自动配置依赖)

irm https://raw.githubusercontent.com/LEFTX1/antigravity-token-heatmap/main/install.ps1 | iex

Option 3: macOS / Linux (curl)

curl -fsSL https://raw.githubusercontent.com/LEFTX1/antigravity-token-heatmap/main/install.sh | bash

Option 4: Google Gemini CLI Extension

gemini extensions install https://github.com/LEFTX1/antigravity-token-heatmap

Requirement / 运行要求:Python 3.10+ (mcp>=1.2.0). The installer scripts automatically check and install mcp, and the MCP server also auto-bootstraps mcp if missing on first launch.


Related MCP server: agent-prompt-capture

Visual Preview · 实机视觉一览


Why This Plugin? · 核心模块全景

Built by synthesizing telemetry best practices from ccusage, tokscale, CodexBar, agentlytics, Cursor Conversation Insights, WakaTime, Linear Insights, and Apple Fitness / Oura biotelemetry into a single zero-upload MCP App running inside Antigravity.

Module · 模块

Highlights · 核心亮点

Sticky Glassmorphic Cockpit Nav

Section jump pills, passive scroll-spy highlight, Ctrl+K / ⌘K Command Palette, and 1-click Markdown report export (导出战报).

8 KPI Tiles + 7D Rolling Momentum

Live ↗/↘ 7-day delta pills, micro wave charts, and cycling equivalents (《三体》 books, engineering LOC, manual dev-years, A4 height).

Today Activity Rings & 6-Axis Radar

Tri-ring daily goals (Fresh Tokens / Turns / Streak), Human-AI leverage ratio, flow endurance, self-healing error count, FinOps savings bill, and hoverable 6-axis radar with live exact math formulas.

Energy Contribution Heatmap

Interactive square grid (Auto / 3M / 6M / 1Y), metric switcher (净耗 / 输出 / 轮次), live gamma color-scale slider (γ) persisted across sessions, and clickable per-day drill-down strip.

Context Health & Heavy Sessions

Tracks max context window, P90 & average peaks, auto-compaction (CHECKPOINT) count, 4 context buckets (<64K to 500K+), Top-4 max-context clickable sessions, and honest error attribution separating upstream API stream disconnects from tool retries.

Tiered FinOps & 7D Momentum

Model-tiered public API pricing estimation showing exact $saved by Prompt Cache hits alongside a 7-day vs previous-7-day velocity comparison table.

Toolchain & Hot Files Arsenal

Normalized core tools breakdown, external MCP server & tool leaderboard, clean shell runtime stats, and Top-8 hot source files showing Read vs Write dual-tone bars.

54×10-Tier Collector Medal Hall

54 bespoke vector medals across 6 categories (创作工程 / 算力实战 / 毅力心流 / 工具掌控 / 智能协同 / 巅峰传奇), filterable by category or 待解锁 status, with full 10-tier progression ladder modals.

Single-Session Inspector (Ctrl+K)

Search any past conversation by title, workspace, date, or archetype; click any session anywhere to inspect token composition (Input/Cache/Output), per-model collaboration, and tool footprint.

Chronotype, Weekly Rhythm & Fleet

24-hour chronotype analysis (凌晨战神 / 夜航架构师 / etc.), Mon–Sun weekday vs weekend rhythm bars, Top-10 model fleet with cache hit rings, and weekly stacked evolution / 14-day smooth trend curves.

6-Slide Stories & 3-Theme Posters

Interactive Spotify-Wrapped-style recap (←/→ keys) + 1080×1920 Portrait & 1920×1080 Landscape PNG studio in Obsidian Aurora, Ivory Gallery, and Obsidian Gold, supporting Ctrl+C native system clipboard copy.


Usage · 使用方式

After installation, reload MCP servers (or restart Antigravity) and simply ask:

  • "打开我的 Token 热力图与战绩墙" / "Open my Token Heatmap"

  • "查看我的分模型 FinOps 缓存节省和 7 日动量"

  • "生成一张黑金风格的 AI 编程能量年鉴海报"


Architecture · 架构说明

~/.gemini/config/plugins/token-heatmap/
├── plugin.json                # Antigravity native plugin manifest
├── gemini-extension.json      # Gemini CLI extension manifest
├── mcp_config.json            # MCP stdio launcher (${PLUGIN_ROOT}, ${PLUGIN_DATA})
├── install.ps1 / install.sh   # 1-command cross-platform installers
├── assets/logo.svg            # Crisp square SVG plugin icon
├── skills/token-heatmap/SKILL.md
├── scripts/
│   ├── heatmap_stats.py       # Transcript JSONL + SQLite aggregator (stat-fingerprinted cache)
│   └── mcp_server.py          # FastMCP App server + native clipboard / PNG save tools
└── ui/app.html                # Self-contained single-file MCP App UI (dark + light themes)

Privacy & Security · 隐私与安全声明

  • 100% Local Read-Only: Only reads local session transcripts (~/.gemini/antigravity*/brain/*/.system_generated/logs/transcript.jsonl and local metadata DB).

  • Zero Telemetry / Zero Cloud Upload: No external network requests are ever made by the analytics backend or UI (no external fonts, CDNs, or analytics beacons).

  • Isolated Local Cache: Derived numeric caches and UI preferences live strictly inside your local plugin data directory (--data_dir=${PLUGIN_DATA}).


Keywords & Discovery Tags

google-antigravity · antigravity-plugin · antigravity-cli · antigravity-skills · gemini-cli · gemini-cli-extension · mcp · mcp-app · mcp-server · token-usage · token-heatmap · ai-coding-analytics · finops · ccusage · developer-wrapped

License

MIT License © 2026 LEFTX1

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables analyzing coding-agent session transcripts to measure tool efficiency, detect loops, track test outcomes, and report costs, with MCP tools for listing sessions, analyzing sessions, finding loops, and generating cost reports.
      4
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Provides a local MCP interface to query captured, PII-scrubbed prompt telemetry from coding agents and browser chats, enabling time summaries, prompt search, and activity analysis without data leaving the machine.
      9
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables users to inspect real-time prompt cache hit rate, task throughput, and per-model token usage for Antigravity sessions and 5h/1d/7d windows through an interactive local dashboard. It combines lifecycle hook timing with local transcript data, with zero outbound network telemetry.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables users to open an interactive local dashboard for analyzing Antigravity conversation token usage, cache hit rates, estimated API costs, session turn details, and exporting Markdown, CSV, or JSON reports without network access or modifying source databases.
      1
      MIT