Skip to main content
Glama
README.md
# AGY Pulse (`agy-pulse`)

<p align="left">
  <img src="assets/logo.svg" alt="AGY Pulse Logo" width="72" height="72" />
</p>

[![CI](https://github.com/medeirus/agy-pulse/actions/workflows/ci.yml/badge.svg)](https://github.com/medeirus/agy-pulse/actions/workflows/ci.yml)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
[![Node.js >= 20](https://img.shields.io/badge/node-%3E%3D20.0.0-brightgreen.svg)](package.json)
[![100% Local](https://img.shields.io/badge/telemetry-100%25%20local-0f766e.svg)](SECURITY.md)

> **Save turns and see what's happening to your context & cache in Google Antigravity — 100% local, zero config, official APIs only.**

---

## Screenshots

### Global Dashboard

![AGY Pulse Global Dashboard](assets/dashboard-preview.png)

### Live Session Sidecar

<p align="left">
  <img src="assets/sidecar-preview.png" alt="AGY Pulse Live Session Sidecar" width="460" />
</p>

---

## Quick Install

```bash
git clone https://github.com/medeirus/agy-pulse.git
cd agy-pulse
agy plugin install .
```

All modules are enabled out of the box — no setup required, and every tool or module can be toggled on/off in **Settings**.

<details>
<summary>Alternative install options (manual global clone or workspace-only)</summary>

**macOS / Linux (global):**
```bash
mkdir -p ~/.gemini/config/plugins
git clone https://github.com/medeirus/agy-pulse.git ~/.gemini/config/plugins/agy-pulse
```

**Windows PowerShell (global):**
```powershell
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.gemini\config\plugins"
git clone https://github.com/medeirus/agy-pulse.git "$env:USERPROFILE\.gemini\config\plugins\agy-pulse"
```

**Workspace-only:** clone into `<your-repo>/.agents/plugins/agy-pulse/`.

</details>

---

## What It Does

### Fewer wasted turns (Batch Workspace Tools)
Instead of spending 8–10 separate turns grepping files, reading snippets, editing, and running checks one by one, AGY Pulse gives the agent batched tools that fit cleanly inside a single turn:
- **Search & read in batch** (`batch_search`, `quick_outline`, `read_slices`) — combine multiple searches or targeted file slices into one call.
- **Safer multi-file edits** (`apply_edits`) — pre-validated edits with automatic **Restore Points** and inline Myers diff so you can inspect or roll back any batch edit.
- **Parallel checks with concise failure output** (`run_checks`) — run typecheck, lint, build, and tests together; silent on pass, deduplicated error summary on failure.
- **Lean session start** — lightweight workspace snapshot (Git status + project scripts) injected automatically on session start.

### Real-time local visibility (Sidecar & Global Dashboard)
- **Live Session Sidecar:** follows your active Antigravity conversation with a context ring, context-growth sparkline, live cache hit rate, AFK cache freshness timer, `tok/s`, session health alerts, Restore Points, and one-click `/handoff`.
- **Global Dashboard:** inspect cache hit rate, estimated turns saved, rolling 5h / 7d / 30d usage, model and project breakdowns, cache-drop autopsy, and a clean Markdown session viewer.
- **Built-in Chat Skills:** `/quota-report` (inline summary card right in chat) and `/handoff` (compact session handoff snapshot).
- **10 Built-in Languages & Host-Synced Theme:** English, Português (BR), Español, Français, Deutsch, Italiano, 中文, 日本語, 한국어, and Русский — with automatic OS locale detection and Light/Dark theme sync.

> **Note:** Rolling 5h / 7d / 30d windows and estimated turns saved are computed **100% locally** from transcripts recorded on your machine.

---

## Privacy & Security

- **100% local & offline:** zero external network requests, zero analytics uploads, zero background updaters.
- **Official Antigravity APIs only:** no credential/OAuth access, no binary patching, no CDP/UI injection.
- **Zero production runtime dependencies:** built strictly on Node.js `>= 20` built-ins.
- **Auditable builds:** shipped bundles are intentionally non-minified ESM.

---

<details>
<summary>Technical details & architecture</summary>

| Tool / Component | Summary |
| --- | --- |
| `batch_search` | Up to 20 queries (`text`, `regex`, `glob`, `fuzzy`, strict read-only `git` allowlist) in 1 turn, capped at `<= 8.8 KB UTF-8`. |
| `quick_outline` | Multi-language symbol map (15+ languages) for up to 40 files (navigation map only; full slices are read before editing). |
| `read_slices` | Targeted line slices and/or outlines across up to 25 files in one call under `<= 8.8 KB`. |
| `apply_edits` | Pre-validated edits preserving CRLF/LF/BOM/permissions, strict atomic rollback (1–2 files) or per-file `bestEffort` (`>= 3` files), content-addressed Restore Points (skipping `.env*`), and optional `verify`. |
| `run_checks` | Up to 12 concurrent commands, silent 2-line pass output, deduplicated error truncation on failure (`<= 8.8 KB`), conservative `scope: "impacted"` escalation, and rotated full-log pointers. |
| `SessionStart` hook | Lean `<= 1.5 KB` snapshot with a `250 ms` circuit-breaker and fail-open `{}` behavior. |
| UI & CLI compatibility | Inspects MCP `initialize` capabilities so Antigravity Desktop gets full MCP App UI tools while non-UI clients like `agy` CLI receive only the 6 model-visible tools. |
| Strict CSP & Sandbox | `default-src 'none'` on MCP App iframes, `default-src 'self'` on the `AUX_PANE` sidecar, zero `localStorage` reliance, and zero `agents/` folder (standard 1× quota rate preserved). |

</details>

---

## Development

```bash
npm install
npm run check
agy plugin validate --strict .
```

## Documentation & License

- [Changelog](CHANGELOG.md) · [Contributing](CONTRIBUTING.md) · [Security Policy](SECURITY.md)
- MIT — see [LICENSE](LICENSE).