---
title: "ContextRadar: see what is filling your context window"
description: "See which turns use up the window and why the prompt cache went cold, before a long session starts to drag."
url: "https://contextradar.eatingdream.dev/index.md"
canonical: "https://contextradar.eatingdream.dev/"
license: "MIT"
repository: "https://github.com/eatingDream-antigravity-plugins/ContextRadar"
updated: "2026-11-26"
lang: ["en", "zh-CN"]
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://contextradar.eatingdream.dev/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# ContextRadar (`context-radar-mcp`)

> See which turns use up the window and why the prompt cache went cold, before a long session starts to drag.

A local native Rust MCP server, live Antigravity side panel, and pure-protocol ACP thin client that tracks context headroom, diagnoses prompt-cache breaks, and distills bloated turns without disturbing your active KV prefix. Not a cloud proxy, history mutator, or analytics service. It reads local ledgers strictly read-only and never rewrites live conversation logs.

*中文简介*：在长会话变慢之前，看清哪些轮次占满了窗口、提示缓存为什么凉了。 面向 Antigravity 的原生 Rust 本地 MCP 服务、实时侧边栏与纯协议 ACP 客户端：监控上下文余量、归因提示词缓存失效，并在不打断 KV 前缀的前提下把冗长轮次蒸馏到独立笔记。

## Agent Resources

- [llms.txt](https://contextradar.eatingdream.dev/llms.txt): Concise agent directory
- [llms-full.txt](https://contextradar.eatingdream.dev/llms-full.txt): Full bilingual technical specification
- [Search for Agents](https://contextradar.eatingdream.dev/.well-known/search?q={query}): Site-wide Markdown search (`GET` and `QUERY`)
- [Agent Skills Discovery](https://contextradar.eatingdream.dev/.well-known/agent-skills/index.json): Machine-readable skill manifest (v0.2.0)
- [Atom Feed](https://contextradar.eatingdream.dev/feed.xml) | [XML Sitemap](https://contextradar.eatingdream.dev/sitemap.xml) | [GitHub](https://github.com/eatingDream-antigravity-plugins/ContextRadar) | [AI Guide](https://github.com/eatingDream-antigravity-plugins/ContextRadar/blob/main/docs/ai-guide.md)

## Install

Install plugin and native binary:

```sh
curl -fsSL https://raw.githubusercontent.com/eatingDream-antigravity-plugins/ContextRadar/main/scripts/install.sh | sh
```

Add portable Agent Skill:

```sh
npx skills add eatingDream-antigravity-plugins/ContextRadar
```

## MCP Tools

- `context_radar_overview`: Live status (ready/running/waiting/error), headroom, thinking share, Stream/E2E speed, loop rollup, and subagents.
- `context_radar_turns`: Per-turn tokens, cache hit rate, 3-way cold-cache attribution, TTFT, speed, and cost.
- `context_radar_hotspots`: Locate context spikes (hotspots) or distill a step range into scratch/ (distill, save_note: true).
- `context_radar_prepare_handoff`: Evaluate budget tier, cooldown, subagent drain, and break-even economics.
- `context_radar_commit_handoff`: Issue a scoped single-use grant for /compact or fresh-chat handoff.

## How It Works

### Spot the turn that ate the window

Some turns are huge without looking it. One log dump or file read can take a fifth of the window. ContextRadar ranks turns by size, so you know what to trim.

*中文*：有些轮次看着不起眼，一次日志或文件读取就能占掉五分之一的窗口。ContextRadar 按大小给每一轮排序，该删什么一眼就知道。

### Find out why replies got slow

When the prompt cache goes cold, every turn pays for the whole prompt again. ContextRadar marks the turn where it happened and names the likely cause in plain words.

*中文*：提示缓存一旦失效，每一轮都要把整段提示重新算一遍。ContextRadar 会标出失效发生在哪一轮，并用大白话说明最可能的原因。

### Keep the chats that matter, then hand off

Pin the conversations you keep coming back to, so they stay apart from today's noise. When a session is done, save a short handoff note and pick up cleanly in a new one.

*中文*：把常回来看的会话置顶，和今天的零碎对话分开放。一段会话做完时，存一份简短的交接笔记，换个新会话也能顺顺当当接着干。

## 3-Way Cache Attribution and Compaction Gate

| Signal Class | Root Cause Pattern | Recommended Action |
| --- | --- | --- |
| New-Turn Miss | Fresh prompt suffix after stable cached prefix | Keep session hot; do not compact |
| Mid-Loop Break | Slow-turn TTL expiry, tool spillover, or model switch | Distill noisy slice to scratch/ or inspect hotspot |
| Post-Compact Rebuild | Expected single-turn cold write right after /compact | Verify break-even turns before next compaction |
| Cross-Model Warning | Compacting across incompatible tokenizer or prefix cache | Prefer clean handoff into a fresh conversation |

## Safety and Privacy

1. 100% local and read-only: opens Antigravity SQLite ledgers with SQLITE_OPEN_READ_ONLY plus incremental WAL/JSONL tailing.
2. Atomic symlink-safe writes: scratch/ digests traverse directories with O_NOFOLLOW checks and atomic 0600 temp-file renames.
3. Fail-closed grants and ACP auth: headless acp-run cancels allow-only prompts unless --auto-approve is explicitly set.
4. Strict panel CSP: single self-contained HTML bundle (default-src 'none'), zero external assets, and zero innerHTML writes.

## Suite Navigation

- [eatingDream Hub](https://eatingdream.dev/) (`eatingdream.dev`)
- [ClamGuard](https://clamguard.eatingdream.dev/) (`clamguard.eatingdream.dev`)
- [RemoteCast](https://remotecast.eatingdream.dev/) (`remotecast.eatingdream.dev`)
- [ColabDeck](https://colabdeck.eatingdream.dev/) (`colabdeck.eatingdream.dev`)

```json
{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"https://contextradar.eatingdream.dev/#website","name":"ContextRadar | eatingDream","url":"https://contextradar.eatingdream.dev/","description":"See which turns use up the window and why the prompt cache went cold, before a long session starts to drag.","inLanguage":["en","zh-CN"],"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://contextradar.eatingdream.dev/.well-known/search?q={search_term_string}"},"query-input":"required name=search_term_string"}},{"@type":"SoftwareApplication","@id":"https://contextradar.eatingdream.dev/#software","name":"ContextRadar","alternateName":"context-radar-mcp","url":"https://contextradar.eatingdream.dev/","description":"See which turns use up the window and why the prompt cache went cold, before a long session starts to drag. A local native Rust MCP server, live Antigravity side panel, and pure-protocol ACP thin client that tracks context headroom, diagnoses prompt-cache breaks, and distills bloated turns without disturbing your active KV prefix.","applicationCategory":"DeveloperApplication","operatingSystem":"macOS and Linux","license":"https://github.com/eatingDream-antigravity-plugins/ContextRadar/blob/main/LICENSE","codeRepository":"https://github.com/eatingDream-antigravity-plugins/ContextRadar","author":{"@type":"Organization","name":"eatingDream","url":"https://eatingdream.dev/"},"offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"featureList":["Spot the turn that ate the window","Find out why replies got slow","Keep the chats that matter, then hand off"]},{"@type":"TechArticle","@id":"https://contextradar.eatingdream.dev/#guide","headline":"ContextRadar (context-radar-mcp): Context budget and prompt cache diagnostics","description":"See which turns use up the window and why the prompt cache went cold, before a long session starts to drag.","url":"https://contextradar.eatingdream.dev/","mainEntityOfPage":"https://contextradar.eatingdream.dev/","dateModified":"2026-11-26","inLanguage":["en","zh-CN"],"author":{"@type":"Organization","name":"eatingDream","url":"https://eatingdream.dev/"},"about":{"@id":"https://contextradar.eatingdream.dev/#software"},"isPartOf":{"@id":"https://contextradar.eatingdream.dev/#website"}}]}
```
