Cache Pulse
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Cache Pulse Antigravity
English | 简体中文
Real-time prompt cache hit rate, task throughput, per-model usage breakdown, and 5h / 1d / 7d multi-session telemetry plugin for Antigravity.
Cache Pulse Antigravity provides an interactive dashboard (MCP Apps sidecar/inline UI + Lifecycle Hooks) so you can inspect how well prompt caching works on every turn, compare models side-by-side, and monitor total token consumption across time windows — 100% locally with zero network telemetry.
Screenshots
Multi-Session Overview (5h / 24h / 7d, Model Breakdown & Efficiency Scatter)

Single-Session Live Monitor (Per-Turn Cache Curve & Hook Timing)


Related MCP server: agent-prompt-capture
Features
Bilingual UI (
EN / 中): Automatically follows your Antigravity / OS locale (English by default, Simplified Chinese forzh*locales) with an instantEN / 中toggle button in the top bar.Single-Session Live Monitor:
Real-time Cache Hit Rate, cached vs. uncached input vs. output composition bar, and per-turn dual-axis chart.
Human-readable session / task titles (resolved from conversation annotations and first user prompt) next to project names so multiple sessions in the same workspace are easy to tell apart.
Per-turn call table with model tag, cached/new split, output tokens, and speed (
tok/s).Detailvs.Compactheader mode and light/dark theme integration with Antigravity.
5h / 1d / 7d Multi-Session Overview:
Aggregates all sessions touched within
Last 5h,Last 24h, orLast 7d(including each touched session's full token history).Visualizes Total Tokens, Overall Cache Hit Rate, Avg Task Speed (
tok/s), period comparison (5hvs24hvs7d), donut breakdown (By Model/By Token), bucketed timeline chart, model/project benchmark bars, efficiency scatter plot (Hit Rate × Speed), and a sortable session list with click-to-inspect.
Per-Model Breakdown & Filtering:
Supports Merged grouping (merges thinking/effort tiers of the same model) and Exact raw model variants.
Filter any session view or time-window overview down to a single model with one click.
Millisecond Hook Timing:
Lifecycle Hooks (
SessionStart,PreInvocation,PostInvocation,Stop) record per-turn latency locally and combine with transcript timestamp estimation for accurate throughput (tok/s).
Privacy & Local-Only Design
Reads only local Antigravity conversation transcripts (
~/.gemini/antigravity/conversations) and conversation metadata (~/.gemini/antigravity/annotations), plus local Hook timing files stored in Antigravity's${PLUGIN_DATA}directory.Makes zero outbound network requests and never collects or transmits user prompts or credentials.
Installation
Option 1: Install via Antigravity CLI
agy plugin install https://github.com/mqy2333/cache-pulse-AntigravityPre-built bundles (dist/server.cjs, dist/app.html, scripts/hook-capture.cjs) are committed at the repository root, so installing directly from GitHub requires no extra build step.
Option 2: Manual / Git Clone Install
macOS / Linux:
git clone https://github.com/mqy2333/cache-pulse-Antigravity.git ~/.gemini/config/plugins/cache-pulseWindows (PowerShell):
git clone https://github.com/mqy2333/cache-pulse-Antigravity.git "$env:USERPROFILE\.gemini\config\plugins\cache-pulse"Then reload MCP plugins in Antigravity Desktop (or restart Antigravity) to activate cache-pulse.
Requirement: Node.js 20+ on your system
PATH(used to rundist/server.cjsandscripts/hook-capture.cjs).
Usage
Once installed, open the Cache Pulse Antigravity UI by asking Antigravity any of the built-in prompts:
"Open the Cache Pulse monitor for the current session"
"Show my Cache Pulse 24h usage summary and per-model breakdown"
"Check my 7-day prompt cache hit rate and task speed"
You can switch anytime inside the UI between:
Session / Overview (
5h,24h,7d)Merged / Exact model grouping + interactive model filter pills
Detail / Compact layout
EN/中language toggle
Metric Formulas
Prompt Cache Hit Rate:
cache_read_tokens / (cache_read_tokens + uncached_input_tokens)(when denominator > 0).Task Speed (
tok/s): weighted output tokens divided by measured turn duration (prioritizing millisecond Hook timingPostInvocation - PreInvocation, falling back to adjacent transcript step intervals).Window Summary Scope (
5h/1d/7d): any session whose activity overlaps the selected window has its full session metrics summed into the window total; timeline buckets group individual turns chronologically (turns from before the window are bucketed underEarlier).
Development
npm install
npm run typecheck
npm run build
npm testTo build and hot-deploy to your local ~/.gemini/config/plugins/cache-pulse directory:
npm run deployLicense
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Privacy-first product analytics. Your agent sets up tracking and answers questions about traffic.
Data + AI observability — monitor and troubleshoot production-grade agents and the context they use.
Open-source agent that observes and fixes your application. Query logs, traces, metrics, incidents.
MCP observability. Query live traffic, errors, duration, and alerts from your AI agent.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA terminal live-tail and a browser dashboard — one process, one event stream, served from localhost. Unified timeline across Claude Code, Codex, Gemini CLI, Cursor, Hermes, and OpenClaw. Token + cost accounting, compaction + anomaly detection, hybrid search, SVG call graphs, monaco-style diff attribution, agent-aware replay ("what would the agent say if I edited the prompt?"), policy editor, MCP s15 npm18MIT
- AlicenseAqualityBmaintenanceProvides 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.9MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to self-report every tool call, token usage, decision, and session grade into a local SQLite store, so users can trace execution, audit reasoning, and see per-session costs in a local dashboard. Also supports proxy mode to intercept and trace MCP tool invocations for agents that cannot self-report.79 npm2MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents such as Claude Code, Cursor, Codex, and OpenCode to query local token usage, costs, quotas, projects, and models through six strictly read-only tools. All data stays on the local machine, drawn from passively parsed session logs rather than uploaded telemetry.MIT