Skip to content
Back to skills

Context

ASecurity

Inspect Antigravity Context Window usage, remaining compaction capacity, 10-category breakdown & cache-drop forensics (`/context`, or when asked about context remaining / bloat / cache drops).

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 29, 2026
ai-agentsgobashnode

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add xzha0637-design/token-tracker --skill context --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Context?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Context
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/xzha0637-design-context/badge)](https://www.skillsdirectory.com/skills/xzha0637-design-context)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: context
description: Inspect Antigravity Context Window usage, remaining compaction capacity, 10-category breakdown & cache-drop forensics (`/context`, or when asked about context remaining / bloat / cache drops).
---

# Conversation Context Window & Forensics Inspector (`/context`)

Inspects local Antigravity transcripts (`transcript_full.jsonl` / `transcript.jsonl`) and local customization metadata in read-only mode to show exact context window usage, remaining capacity before auto-compaction, 10-category context proportions, active tool-result bloat, and step-by-step cache-drop diagnostics.

## Instant Mode vs. Interactive Card Mode

- **Instant Zero-LLM Modes (0 LLM calls, 0 thinking, ~40–65 ms)**: Handled automatically by `hooks.json` (`PreInvocation`):
  - **`/context` or `/ctx`** (`[zh|en]` `[convPrefix]`): prints the progress bar, remaining tokens, 10-category breakdown, top tool bloat, and anomaly summary right inside Chat.
  - **`/context audit`** (`[zh|en]`): prints the Turn-0 startup context bloat audit (per-skill index + full size, per-MCP-server tool catalog, and user rules).
  - **`/context handoff`** (`[zh|en]` `[convPrefix]`): packs a secret-masked, paste-ready Session Handoff Brief locally with 0 LLM calls.
- **Interactive HTML/SVG Card Mode (`/context card`, `/context ui`, or natural-language questions)**: Call the MCP tool **immediately without reading any schema file first**:

  ```json
  call_mcp_tool(
    ServerName="token-tracker_dashboard",
    ToolName="show_context_window",
    Arguments={}
  )
  ```
  (Optionally pass `{"conversationId": "<uuid-or-prefix>"}` to inspect another conversation.)

- **Always-On Side Panel (`aux_pane`)**: To pin a live auto-refreshing monitor beside Chat (0 LLM latency, refreshes every 4s), tell the user to click **`+` → `Context Monitor`** in the right-hand side panel (or call `open_context_monitor`).

## CLI Fallback

For Antigravity CLI or plain-text environments:

```bash
# Latest active conversation context window & forensics
node ~/.gemini/config/plugins/token-tracker/scripts/token_stats.mjs --context

# Specific conversation by full UUID or prefix
node ~/.gemini/config/plugins/token-tracker/scripts/token_stats.mjs --context 0679ceba

# Structured JSON output
node ~/.gemini/config/plugins/token-tracker/scripts/token_stats.mjs --context --json
```

## Presenting Results (Keep It Fast!)

1. **Skip reading the MCP schema file** — the exact arguments for `show_context_window` are `{}` or `{"conversationId": "..."}`. Call `call_mcp_tool` directly on your very first step!
2. After `show_context_window` renders the interactive inline card, reply in **1–2 concise sentences only** (do NOT repeat the full breakdown table in prose).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.