RazvanBugoi/antigravity-context-monitor
关于
Calm, real-time context window, fast-memory warmth, and auto-compaction monitor sidecar plugin for Google Antigravity
人工智能与机器学习实测星标增长
- 24小时
- 正在收集历史
- 7天
- 正在收集历史
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Context Monitor for Antigravity
A calm, read-only side pane for Google Antigravity that tracks chat space, fast-memory warmth, why sudden jumps happened, and learned auto-compaction warnings in real time — automatically following whichever conversation you have open.
Features · In-App Updates · Quick Install · Privacy · How It Works
Dark Theme · Early Auto-Compact Heads-Up Gemini 4 Neon ( 512k) with learned guides, image jump note & Update pill
|
Light Theme · Auto-Compact Recovery & Helpers Clean post-compaction chart drop, plain-English recap & subagent totals |
Why Context Monitor?
Long agent sessions can fill up silently until an unexpected compaction or cold cache slows everything down. Context Monitor turns raw local transcripts into a quiet, plain-English dashboard that stays out of your way until you actually need it.
📊 Calm Chat Space at a GlanceLeads with plain-English fullness tiers ( |
⚠️ Early Auto-Compact Heads-UpLearns each model's real auto-compaction mark from your local history (pooling effort variants like |
💡 Quiet "Why it changed" NotesStays hidden on steady turns and surfaces a single clear note only when something notable happens — immediate post-checkpoint compaction confirmation, manual |
⚡ Model-Aware Fast MemoryShows prompt-cache reuse and cooldown timing tailored to each model family — Gemini ( |
📈 Growth Chart & Recent RepliesStacked Reused vs. New token bars let you spot spikes immediately and click any bar to jump straight to that reply. Collapsible Recent replies list plain-English deltas, compaction and model-switch badges, tool chips, and hover/keyboard tooltips. |
🎨 Native Feel, Zero BloatSyncs automatically with Antigravity's light and dark themes, adapts cleanly to narrow sidebars, and respects |
One-Click In-App Updates
Stay up to date without touching a terminal:
- Context Monitor quietly checks GitHub Releases every 12 hours using conditional
ETagrequests (and fails silently when offline). - When a newer stable release ships, a subtle Update pill appears beside Live — click it to preview the version bump and release notes.
- Click Update to vX.Y.Z to download the official
context-monitor.zip, verify itsSHA-256checksum and archive safety in pure Node.js, apply the update atomically with rollback protection, and restart automatically. - On a clean
mainGit checkout, it runsgit pull --ff-only; on dirty branches or read-only folders, it never writes files and gives you a copyable OS-tailored command instead.
Quick Install
Requirements: Google Antigravity (sidecar plugin support) and Node.js 18+ on PATH — no npm install needed.
Fast one-line install or update (no Git required)
Downloads the latest context-monitor.zip release and extracts it straight into your global Antigravity plugins folder:
- macOS / Linux:
mkdir -p ~/.gemini/config/plugins && curl -fsSL -L https://github.com/RazvanBugoi/antigravity-context-monitor/releases/latest/download/context-monitor.zip -o /tmp/cm.zip && unzip -o /tmp/cm.zip -d ~/.gemini/config/plugins/ && rm -f /tmp/cm.zip - Windows (PowerShell):
$p = "$env:USERPROFILE\.gemini\config\plugins"; New-Item -ItemType Directory -Force -Path $p | Out-Null; $z = "$env:TEMP\cm.zip"; Invoke-WebRequest -Uri "https://github.com/RazvanBugoi/antigravity-context-monitor/releases/latest/download/context-monitor.zip" -OutFile $z; Expand-Archive -Force -Path $z -DestinationPath $p; Remove-Item $z
More install & manual update options (ZIP download, Git clone, or project-only install)
Option A: Download the ZIP manually
- Download
context-monitor.zipfrom the latest release. - Extract it so
plugin.jsonlives at.../plugins/context-monitor/plugin.json:- macOS / Linux:
mkdir -p ~/.gemini/config/plugins unzip -o context-monitor.zip -d ~/.gemini/config/plugins/ - Windows (PowerShell):
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.gemini\config\plugins" Expand-Archive -Force -Path .\context-monitor.zip -DestinationPath "$env:USERPROFILE\.gemini\config\plugins\"
- macOS / Linux:
Option B: Clone & update with Git
- Install (macOS / Linux):
mkdir -p ~/.gemini/config/plugins git clone https://github.com/RazvanBugoi/antigravity-context-monitor.git ~/.gemini/config/plugins/context-monitor - Install (Windows PowerShell):
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.gemini\config\plugins" git clone https://github.com/RazvanBugoi/antigravity-context-monitor.git "$env:USERPROFILE\.gemini\config\plugins\context-monitor" - Update later:
git -C ~/.gemini/config/plugins/context-monitor pull
Option C: Project-only install (single workspace)
To enable Context Monitor for one repository only, clone or extract it into:
<your-repo>/.agents/plugins/context-monitor/
Activate & Verify
- Reload or restart Antigravity (or toggle Context Monitor in Customizations / Plugins) if the Context tab doesn't appear in the side pane right away.
- Confirm everything is healthy at any time with the Antigravity CLI:
(Your enabled/disabled setting is saved inagy plugin validate --strict ~/.gemini/config/plugins/context-monitor agy plugin list~/.gemini/config/config.jsonand preserved across updates.)
Privacy & Opt-Out
Your conversation transcripts never leave your machine.
Context Monitor is strictly read-only against local
transcript.jsonlfiles under~/.gemini/*/brain/and queries conversation titles locally viaagentapi. The only network traffic is checking public GitHub Releases forRazvanBugoi/antigravity-context-monitorevery 12 hours (plus downloading verified release assets when you explicitly click Update).To disable release checks completely, set:
CONTEXT_MONITOR_DISABLE_UPDATE_CHECK=1
How It Works
Architecture & module overview
The plugin registers a single sidecar exposed in Antigravity's auxiliary side pane (SIDECAR_UI_ENTRYPOINT_AUX_PANE):
sidecars/monitor/main.mjs— Sidecar entrypoint and HTTP server bootstrapsidecars/monitor/service.mjs— Route handlers, transcript discovery, ETag caching, unreadable-log handling, and helper aggregationsidecars/monitor/parser.mjs— Incremental byte-offset transcript parser, model metadata inference, and subagent/swarm rollupsidecars/monitor/compaction-learner.mjs— Capped, read-only startup scan and live median auto-compaction threshold learnersidecars/monitor/updater.mjs&sidecars/monitor/updater-ui.js— ETag release checker, pure-Node SHA-256 & ZIP verifier, atomic updater, and popover UI
Whenever you switch conversations, the UI polls /api/context with an ETag keyed on the transcript's mtime, size, inode, helper transcripts, learned compaction-guide state, and release-updater state — keeping idle polling near-zero overhead while keeping focus and hover tooltips steady in place.
License
探索相关项目
加载中…