context-doctor 0.38.0 → 0.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -19
- package/dist/antigravity.d.ts +44 -0
- package/dist/antigravity.js +80 -0
- package/dist/autoclear.d.ts +15 -0
- package/dist/autoclear.js +17 -0
- package/dist/autopilot.js +3 -2
- package/dist/cachemisses.d.ts +56 -2
- package/dist/cachemisses.js +252 -42
- package/dist/cachettl.d.ts +127 -0
- package/dist/cachettl.js +357 -0
- package/dist/claudedir.d.ts +17 -0
- package/dist/claudedir.js +32 -0
- package/dist/cli.js +303 -26
- package/dist/coldresume.d.ts +15 -0
- package/dist/coldresume.js +60 -11
- package/dist/compactquality.d.ts +5 -0
- package/dist/compactquality.js +108 -61
- package/dist/compactwindow.d.ts +14 -5
- package/dist/compactwindow.js +36 -43
- package/dist/doctor.d.ts +14 -0
- package/dist/doctor.js +94 -8
- package/dist/effective.d.ts +55 -0
- package/dist/effective.js +163 -0
- package/dist/experiment.js +2 -2
- package/dist/extract.js +4 -1
- package/dist/fanout.js +2 -2
- package/dist/fix.d.ts +176 -0
- package/dist/fix.js +574 -0
- package/dist/hook.js +2 -2
- package/dist/install.d.ts +27 -1
- package/dist/install.js +248 -37
- package/dist/ledger.js +2 -2
- package/dist/lens.d.ts +2 -0
- package/dist/lens.js +50 -24
- package/dist/limits.d.ts +10 -0
- package/dist/limits.js +36 -12
- package/dist/mcp.js +61 -61
- package/dist/mcpclient.js +28 -28
- package/dist/mcpschema.d.ts +18 -0
- package/dist/mcpschema.js +74 -31
- package/dist/missledger.d.ts +61 -0
- package/dist/missledger.js +198 -0
- package/dist/overhead.js +22 -25
- package/dist/profile.js +8 -8
- package/dist/proxy.d.ts +1 -1
- package/dist/proxy.js +2 -1
- package/dist/prune.d.ts +4 -0
- package/dist/prune.js +89 -49
- package/dist/reads.js +2 -2
- package/dist/recall.js +2 -1
- package/dist/savings.d.ts +5 -9
- package/dist/savings.js +217 -115
- package/dist/scan.d.ts +96 -0
- package/dist/scan.js +482 -0
- package/dist/session.d.ts +6 -0
- package/dist/session.js +16 -3
- package/dist/settingsedit.d.ts +72 -0
- package/dist/settingsedit.js +493 -0
- package/dist/statusline.d.ts +38 -2
- package/dist/statusline.js +66 -4
- package/dist/subagentpay.js +2 -2
- package/dist/tasks.js +2 -2
- package/dist/tokens.d.ts +5 -0
- package/dist/tokens.js +11 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
**See where your AI agent's tokens go, and stop paying for the ones that do nothing.**
|
|
6
6
|
|
|
7
|
-
AI agents re-send their whole context on every message: old tool output, pasted files, long instructions. A 500k-token session pays for all of it again each time, and at full price after a coffee break, when the prompt cache has expired. context-doctor measures that waste on your own sessions, in dollars, and removes it at the moments it pays: before it enters the context, while it sits there, and on every request. It runs on your machine, needs no API key, sends no telemetry, and works with **Claude Code, Claude Desktop,
|
|
7
|
+
AI agents re-send their whole context on every message: old tool output, pasted files, long instructions. A 500k-token session pays for all of it again each time, and at full price after a coffee break, when the prompt cache has expired. context-doctor measures that waste on your own sessions, in dollars, and removes it at the moments it pays: before it enters the context, while it sits there, and on every request. It runs on your machine, needs no API key, sends no telemetry, and works with **Claude Code** (terminal, IDE, desktop app), **Claude Desktop, ChatGPT, Codex, Cursor, Gemini CLI, GitHub Copilot**, any app on the **Anthropic, OpenAI or Gemini API**, and **CI**. MIT licensed, Node 20+, macOS, Linux and Windows.
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
npx context-doctor savings # what your recent sessions cost, and what each fix would have saved
|
|
11
|
+
npx context-doctor fix # the fixes ranked by dollars; applies only the ones you say yes to
|
|
11
12
|
```
|
|
12
13
|
|
|
13
14
|
<img src="https://raw.githubusercontent.com/KushalP1/context-doctor/main/assets/savings.svg" alt="npx context-doctor savings: input billed, what /compact at cold resumes, autopilot and an earlier auto-compact window would have saved" width="640">
|
|
@@ -20,13 +21,13 @@ Pick where you work. Each takes about a minute and is fully reversible.
|
|
|
20
21
|
|
|
21
22
|
| You use | Do this |
|
|
22
23
|
|---|---|
|
|
23
|
-
| **Claude Code** (terminal, IDE, desktop app) | Inside Claude Code: `/plugin marketplace add KushalP1/context-doctor`, then `/plugin install context-doctor@context-doctor`. You get the every-prompt check, the compaction hook, the MCP tools and `/context-doctor:savings`, `:checkup`, `:overhead`, `:pack`, `:autopilot`, `:compact-window` |
|
|
24
|
-
| **Everything on this machine at once** | `npm install -g context-doctor && context-doctor install` wires Claude Code, Claude Desktop, Cursor, Codex, Gemini CLI and GitHub Copilot: MCP server, skill and hooks ([what it writes](./docs/install.md)). `context-doctor doctor` checks it; `context-doctor uninstall` removes it. Then, for Claude Code in a terminal or IDE, `context-doctor autopilot on` |
|
|
24
|
+
| **Claude Code** (terminal, IDE, desktop app) | Inside Claude Code: `/plugin marketplace add KushalP1/context-doctor`, then `/plugin install context-doctor@context-doctor`. You get the every-prompt check, the compaction hook, the MCP tools and `/context-doctor:fix`, `:savings`, `:checkup`, `:overhead`, `:pack`, `:autopilot`, `:compact-window` |
|
|
25
|
+
| **Everything on this machine at once** | `npm install -g context-doctor && context-doctor install` wires Claude Code, Claude Desktop, Cursor, Codex, Gemini CLI, Google Antigravity and GitHub Copilot: MCP server, skill and hooks ([what it writes](./docs/install.md)). `context-doctor doctor` checks it; `context-doctor uninstall` removes it. Then, for Claude Code in a terminal or IDE, `context-doctor autopilot on` |
|
|
25
26
|
| **Claude Desktop, Cursor or any MCP client** | Add the server to the client's MCP config (or install the one-click `.mcpb` from the [latest release](https://github.com/KushalP1/context-doctor/releases/latest) in Claude Desktop):<br>`{"mcpServers": {"context-doctor": {"command": "npx", "args": ["-y", "context-doctor", "mcp"]}}}` |
|
|
26
27
|
| **claude.ai, ChatGPT, phone apps** | `npx context-doctor instructions --copy`, then paste into the app's personal preferences (it tells you where). ChatGPT can also reach the MCP server at a URL ([how](./docs/chat-apps.md#chatgpt)) |
|
|
27
|
-
| **Your own app on an LLM API** | Run `npx context-doctor proxy --autopilot` and point `ANTHROPIC_BASE_URL`, `OPENAI_BASE_URL` (add `/v1`) or `GOOGLE_GEMINI_BASE_URL` at `
|
|
28
|
+
| **Your own app on an LLM API** | Run `npx context-doctor proxy --autopilot` and point `ANTHROPIC_BASE_URL`, `OPENAI_BASE_URL` (add `/v1`) or `GOOGLE_GEMINI_BASE_URL` at the proxy on `127.0.0.1:8787`, plain HTTP ([exact values](./docs/proxy.md)). No proxy possible? Wrap the SDK client: `withContextDoctor(new Anthropic())` ([library](./docs/library.md)) |
|
|
28
29
|
| **Python / RAG pipelines** | `pip install "git+https://github.com/KushalP1/context-doctor#subdirectory=python"` (PyPI release coming), then `pack_documents(retrieved_docs, question, budget=4000)` trims LangChain or LlamaIndex results to the chunks that matter. [Python README](./python/README.md) |
|
|
29
|
-
| **GitHub pull requests** | `uses: KushalP1/context-doctor@v0.
|
|
30
|
+
| **GitHub pull requests** | `uses: KushalP1/context-doctor@v0.40.0` comments how much a PR grows CLAUDE.md, AGENTS.md and rules, and can fail over a budget ([setup](./docs/ci.md)) |
|
|
30
31
|
|
|
31
32
|
## What it does
|
|
32
33
|
|
|
@@ -51,6 +52,7 @@ Pick where you work. Each takes about a minute and is fully reversible.
|
|
|
51
52
|
- A compaction hook (`PreCompact`) tells each Claude Code compaction what the session cannot lose (files changed, open tasks, your instructions, failing tests), so compacting saves tokens without losing the thread.
|
|
52
53
|
- An every-prompt hook (Claude Code, Codex, Gemini CLI; Cursor after each tool call) tells the model its real context size and the largest waste, and offers `/compact` when you return to a big session after the cache expired.
|
|
53
54
|
- `compact-window`: sets Claude Code's own auto-compact window, measured on your history first. Works in the desktop app too.
|
|
55
|
+
- `cache-ttl`: replays your own pauses at a 5-minute and a 1-hour prompt cache and sets Claude Code's `promptCacheTtl` to the cheaper one (the author's: 7% less main-conversation input at 1 hour; 22% less than the 5-minute default an API key gets). Same content either way, so no quality cost ([fixes](./docs/fix.md)).
|
|
54
56
|
- [Autopilot](./docs/autopilot.md): a local proxy (or SDK wrapper) that clears stale tool output only when the prompt cache is cold, so a request never costs more.
|
|
55
57
|
|
|
56
58
|
## What it saves
|
|
@@ -102,11 +104,11 @@ On a Claude subscription you do not pay list price; the same tokens come out of
|
|
|
102
104
|
| **Claude Code** in the desktop app's Code tab | **Hooks**, as above, the cold-resume `/compact` offer shown to you as well as the model. **`compact-window`**, if you set one: Claude Code compacts earlier by itself. Not autopilot: the app sets its own API address and ignores the one in settings | Same as above |
|
|
103
105
|
| **Cursor** (agent) | A native **after-tool-call hook** (`~/.cursor/hooks.json`): in a heavy chat the agent gets the same hygiene guidance and the largest waste, once per 40% of growth. (Cursor's prompt hook can only allow or block a prompt, so this is the event where guidance reaches the model) | MCP tools, editor status bar extension, `cursor` profiler. With your own OpenAI key, autopilot too via a tokened tunnel ([how](./docs/proxy.md#putting-the-proxy-on-a-public-url-cursor-with-your-own-openai-key-remote-apps)) |
|
|
104
106
|
| **Codex** (ChatGPT app's Codex tab, IDE extension, CLI) | Every-prompt hook with the API's own token counts | MCP tools, skill, `session` reads Codex rollouts. On an API key, autopilot too (`autopilot on` sets `openai_base_url` in `~/.codex/config.toml`; Codex no longer reads `OPENAI_BASE_URL`) |
|
|
105
|
-
| **Gemini CLI** | Every-prompt hook (`BeforeAgent`) with the API's own token counts. On an API key, autopilot too: `GOOGLE_GEMINI_BASE_URL
|
|
107
|
+
| **Gemini CLI** | Every-prompt hook (`BeforeAgent`) with the API's own token counts. On an API key, autopilot too: `GOOGLE_GEMINI_BASE_URL` set to the proxy on `127.0.0.1:8787`, plain HTTP (Google sign-in traffic goes elsewhere) | MCP tools, `session` and `watch` read its chats, `overhead` sizes GEMINI.md |
|
|
106
108
|
| **GitHub Copilot** (Copilot CLI, the Copilot app, VS Code agent sessions) | A **session-start hook** (`~/.copilot/hooks/context-doctor.json`) gives every new or resumed session the standing rules. No size check: Copilot passes a transcript only to hooks that cannot add context | MCP tools (`~/.copilot/mcp-config.json`, which VS Code's Copilot sessions read too) |
|
|
107
109
|
| **Your own apps on the Anthropic, OpenAI or Gemini API** | Autopilot on `/v1/messages`, `/v1/chat/completions`, `/v1/responses` and Gemini's `generateContent` (`ANTHROPIC_BASE_URL` / `OPENAI_BASE_URL` / `GOOGLE_GEMINI_BASE_URL`), or the optimizing proxy (which can cost more on cached traffic); no proxy possible (serverless, edge)? `withContextDoctor(client)` runs autopilot inside the SDK client | Exact usage and cache hit rates in `/stats`, prompt-cache placement advice ([proxy](./docs/proxy.md)) |
|
|
108
110
|
| **Claude Desktop chat** | The six standing rules below, sent to every chat (whether classic Chat shows them to the model is unverified, [why](./docs/chat-apps.md)); one cheap `profile_context` call the model makes once at ~30 turns and on any cost question; `pack_context` instead of reading a big local file whole; a handoff offered once a chat is long, since a chat's history cannot be cut and a new chat can | One-click `.mcpb` install, `context_checkup`, `handoff` and `ask_file` prompts, `handoff://latest` to attach in the next chat ([handoff](./docs/handoff.md)) |
|
|
109
|
-
| **claude.ai, ChatGPT, the phone apps** | Your account's standing preferences, pasted once ([Quick start](#quick-start)) | Profile an exported chat with `analyze` or `session` |
|
|
111
|
+
| **claude.ai, ChatGPT, the phone apps** | Your account's standing preferences, pasted once ([Quick start](#quick-start)) | Profile an exported chat with `analyze` or `session`. ChatGPT developer mode: the MCP tools at a URL, uploads into `pack_context` ([how](./docs/chat-apps.md#chatgpt)) |
|
|
110
112
|
| **CI** | `analyze --fail-over-budget` fails a build whose prompts outgrow a budget; the GitHub Action gates memory-file growth | `.contextdoctorrc` budgets and presets ([CI](./docs/ci.md)) |
|
|
111
113
|
|
|
112
114
|
Not claimed, because no process on your machine sends those requests: trimming inside Claude Desktop chat, claude.ai, ChatGPT, Cursor's own subscription models, or Codex signed in with ChatGPT. Those get the rules and the measurements above, not autopilot.
|
|
@@ -126,16 +128,18 @@ Rules 1-4 end exactly at character 512, the part ChatGPT's guide says must stand
|
|
|
126
128
|
|
|
127
129
|
| Command | What it does |
|
|
128
130
|
|---|---|
|
|
129
|
-
| `context-doctor install` / `uninstall` | Wire (or remove) everything it finds: the MCP server for Claude Desktop, Claude Code, Cursor, Codex, Gemini CLI and GitHub Copilot; the Agent Skill (Claude Code, Codex); the every-prompt hook (Claude Code, Codex, Gemini CLI's `BeforeAgent`, Cursor's `postToolUse`, `postToolUseFailure` and `sessionStart`); Claude Code's `PreCompact` and `
|
|
130
|
-
| `context-doctor
|
|
131
|
+
| `context-doctor install` / `uninstall` | Wire (or remove) everything it finds: the MCP server for Claude Desktop, Claude Code, Cursor, Codex, Gemini CLI, Google Antigravity and GitHub Copilot; the Agent Skill (Claude Code, Codex, Antigravity); the every-prompt hook (Claude Code, Codex, Gemini CLI's `BeforeAgent`, Cursor's `postToolUse`, `postToolUseFailure` and `sessionStart`); Claude Code's `PreCompact`, `SessionStart`, `PreToolUse` (the subagent price) and, on 2.1.251+, `PreModelSwitch` hooks; Copilot's `sessionStart` (the standing rules). `--statusline` adds the status bar line ([details](./docs/install.md)) |
|
|
132
|
+
| `context-doctor fix [--apply ids\|all] [--share]` / `fix undo` | Every lever ranked by what it would have saved on your last 30 days (compact earlier, the cache lifetime, autopilot, MCP tool search, unused servers), with what each costs in quality; applies one only on a yes, `fix undo` reverts exactly what it changed, later runs show what each saved since ([details](./docs/fix.md)) |
|
|
133
|
+
| `context-doctor doctor` | Self-check the whole installation — one pasteable ✓/✗ diagnosis with fixes, including which surfaces autopilot can reach and any other program on its port |
|
|
131
134
|
| `context-doctor savings [--days n] [--share [--copy]]` | What your recent Claude Code sessions cost, and what `/compact` at cold resumes, autopilot and an earlier auto-compact window would save, replayed through the shipped code against your actual billed usage. `--share` prints totals only (no project names or paths) to post. A bare `context-doctor` in a terminal shows the same |
|
|
132
135
|
| `context-doctor autopilot on\|off\|pause\|resume\|status` | Every new Claude Code session started in a terminal or IDE goes through the local proxy, which clears stale tool output only when the prompt cache is cold: measured 12.7% less input cost, no session worse ([details](./docs/autopilot.md)) |
|
|
133
136
|
| `context-doctor proxy --autopilot` | Local proxy for your own Anthropic, OpenAI and Gemini API apps: clears stale tool output only when the prompt cache is cold, so it never costs more. Plain `proxy` runs the optimizing strategies (dedupe, trim, strip base64), which can cost more on cached traffic. `--token` for a public URL; `/stats` for cumulative savings ([details](./docs/proxy.md)) |
|
|
134
137
|
| `context-doctor compact-window [status\|off\|<size>]` | Replay your last 30 days at auto-compact windows from 200k to 800k: input cost, saving, and how many more compactions each means. `400k` (or `250000`, `0.4m`) sets Claude Code's `autoCompactWindow`, with a backup; `off` removes it. Works in every Claude Code surface, the desktop app included |
|
|
138
|
+
| `context-doctor cache-ttl [status\|1h\|5m\|off] [--subagents]` | The main conversation's (or subagents') prompt cache lifetime: what 5 minutes and 1 hour would each have cost on your last 30 days, then set or remove `promptCacheTtl` / `subagentPromptCacheTtl` (Claude Code 2.1.243+, every surface). Price only: the same content is sent ([details](./docs/fix.md)) |
|
|
135
139
|
| `context-doctor instructions [--copy]` | The ~190-token standing rules (~130 on GPT) for claude.ai / ChatGPT preferences, for web and phones where no server runs |
|
|
136
140
|
| `context-doctor handoff [list\|show <id>\|latest] [--copy]` | Handoffs saved from chat apps (the `handoff` prompt or `save_handoff`): list them, print one, or copy it to paste as a new chat's first message ([handoff](./docs/handoff.md)) |
|
|
137
141
|
| `context-doctor mcp [--http]` | The MCP server as a subcommand, for clients and registries that launch `npx -y context-doctor mcp` |
|
|
138
|
-
| `context-doctor-mcp` | The MCP server itself — stdio by default (what the installer wires); `--http [--port 8808] [--host H] [--allowed-hosts names] [--store-handoffs]` serves streamable HTTP at `/mcp` for URL-based clients like ChatGPT developer-mode connectors (only for the host names it knows: behind a tunnel, pass its name to `--allowed-hosts`) |
|
|
142
|
+
| `context-doctor-mcp` | The MCP server itself — stdio by default (what the installer wires); `--http [--port 8808] [--host H] [--allowed-hosts names] [--allowed-origins list] [--store-handoffs]` serves streamable HTTP at `/mcp` for URL-based clients like ChatGPT developer-mode connectors (only for the host names it knows: behind a tunnel, pass its name to `--allowed-hosts`) |
|
|
139
143
|
| `context-doctor session [file]` | Profile a Claude Code session: live context, findings, **measured tokens and prompt-cache economics**, **where the wall clock went** per tool, output's and reasoning's share of the cost, repeated identical (polling) tool calls priced, and **what its subagents cost** (their own windows, your bill; never in the parent's profile). Also reads Codex rollouts, Gemini CLI chats and ChatGPT data exports (`conversations.json`); `--list` to browse |
|
|
140
144
|
| `context-doctor watch [file]` | Live monitor of a growing session transcript or agent trace (Claude Code / Codex JSONL, or a plain OpenAI/Anthropic conversation JSON file): token/cost line per change, findings as they appear |
|
|
141
145
|
| `context-doctor cursor [--list]` | Profile a chat from Cursor's local history (both storage formats) |
|
|
@@ -161,35 +165,40 @@ Rules 1-4 end exactly at character 512, the part ChatGPT's guide says must stand
|
|
|
161
165
|
| `context-doctor init [preset]` | Write a `.contextdoctorrc` from a preset (`chat`, `agent`, `batch`) — a budget you can adopt in one command and tune later |
|
|
162
166
|
| `context-doctor experiment --task "…"` | Run one task twice from the same commit, in a fresh session and forked from an `--existing` one, same model and tools; compare bill, cache split, wall clock, and whether `--check` passed. The only command here that spends money, so it caps spend per arm and refuses a dirty tree ([details](./docs/experiment.md)) |
|
|
163
167
|
| `context-doctor ab [--lever …] [--yes]` | Does a lever cost quality? Eight small coding tasks, each a tiny repository scored by a hidden check, run with and without the standing rules, autopilot's clearing, `pack_context` or the PreCompact instructions through the Messages API; pass counts, tokens and cost side by side. Bills `ANTHROPIC_API_KEY`: prints the estimate, sends nothing without `--yes`, stops at `--budget` ([details](./docs/ab.md)) |
|
|
164
|
-
| `context-doctor statusline` | Claude Code status bar: live context vs window, cache share, cost. Wired by `install --statusline`; never overwrites a statusLine you already have ([details](./docs/editor-and-statusline.md)) |
|
|
168
|
+
| `context-doctor statusline` | Claude Code status bar: live context vs window, cache share, cost, and (Claude Code 2.1.251+) until when the cache is warm and what the next turn costs once it is cold. Wired by `install --statusline`; never overwrites a statusLine you already have ([details](./docs/editor-and-statusline.md)) |
|
|
165
169
|
| `context-doctor hook` | The every-prompt hook (Claude Code, Codex, Gemini CLI, Cursor) and Claude Code's compaction hook, registered by `install`; `hook copilot` is GitHub Copilot's session-start hook; you never run these yourself. Warning threshold tunable via `CONTEXT_DOCTOR_WARN_TOKENS` (default 80000) |
|
|
166
170
|
| `context-doctor --version` | Print the installed version. `--help` lists every flag |
|
|
167
171
|
|
|
168
172
|
**Privacy:** everything runs on your machine. No API key is needed for anything core, nothing is sent anywhere, and no telemetry is collected; the proxy forwards your app's own credentials untouched and holds none of its own.
|
|
169
173
|
|
|
174
|
+
**Speed:** the history reports read each transcript once per run and keep what they took from it (token counts, times, ids, no message text) in `~/.cache/context-doctor`, so a second `fix` or `savings` answers in under a second and later runs read only what was appended. `CONTEXT_DOCTOR_NO_CACHE=1` keeps nothing; `uninstall` removes it ([details](./docs/performance.md#the-transcript-cache)).
|
|
175
|
+
|
|
170
176
|
## What's new
|
|
171
177
|
|
|
172
|
-
- **0.
|
|
178
|
+
- **0.40 Reports in under a second**: `fix`, `savings`, `compact-window`, `cache-ttl`, `cache-misses` and `overhead` read each transcript once and keep what they took from it in `~/.cache/context-doctor`, so a second run reads only what was appended: `fix` 23.5 s → 0.4 s, `savings` 41 s → 0.6 s on the author's 2.7 GB history, every figure unchanged ([details](./docs/performance.md#the-transcript-cache)). Also from a QA pass on 0.39: `install` then `uninstall` gives every config back byte for byte, and `doctor` warns about an out-of-date skill.
|
|
179
|
+
- **0.39 `fix`, the cache lifetime, the cache clock, and Antigravity**: `context-doctor fix` turns the measurements into changes: every lever ranked by what it would have saved on your own sessions, with what each costs in quality, applied only on a yes, undone with `fix undo`, and re-measured afterwards (`/context-doctor:fix` in the plugin). `cache-ttl` replays your pauses at a 5-minute and a 1-hour prompt cache and sets Claude Code's `promptCacheTtl` to the cheaper one, a price-only change. On Claude Code 2.1.251+ the status line says until when the cache is warm and what going cold costs, `cache-misses` explains misses in Claude Code's own words, and `install` wires Google Antigravity.
|
|
180
|
+
- **0.38 Your limits in their own unit, regressions after upgrades, recall, and a subagent price**: `context-doctor limits` shows each plan window's %, pace and run-out time (Claude Pro/Max through the status line, Codex from its rollouts) and what 1M tokens cost in % of it, fitted on your readings with the error; `savings` then speaks in your limit too. `cache-misses` flags step changes after a Claude Code upgrade, `recall` searches the session's own transcript (compacted turns included), a hook prices a subagent before it starts (never blocking), and `overhead prune` switches off unused MCP servers and skills per project, reversibly. OpenAI caches count as warm for up to 24 hours. An independent QA pass's findings were fixed before the release.
|
|
173
181
|
- **0.37 Desktop chat apps: a handoff, uploads, compact results, and a security pass**: a chat app's history cannot be edited, so the `handoff` prompt (Claude Desktop's **+** menu) has the model write a ≤400-token brief and save it with `save_handoff` (secrets masked, `handoff://latest` to attach in the next chat, the per-turn saving reported: a 52k-token chat drops to ~600). `ask_file` answers from a big file through `pack_context`, which over `--http` also takes ChatGPT uploads; ChatGPT gets compact results. An independent QA pass's eleven findings were fixed with tests; **behind a tunnel, `--http` now needs `--allowed-hosts <tunnel host>`** ([handoff](./docs/handoff.md)).
|
|
174
182
|
|
|
175
|
-
Every release: [docs/whats-new.md](./docs/whats-new.md).
|
|
183
|
+
Every release, with the details: [docs/whats-new.md](./docs/whats-new.md).
|
|
176
184
|
|
|
177
185
|
## Documentation
|
|
178
186
|
|
|
179
187
|
- [What `install` does](./docs/install.md): every file it writes, what runs in each session after, and when you need MCP
|
|
180
188
|
- [Autopilot](./docs/autopilot.md): how it clears stale tool output, and why it never costs more
|
|
189
|
+
- [Fixes](./docs/fix.md): `fix` (one plan, applied with consent, undone in one step, re-measured) and `cache-ttl`
|
|
181
190
|
- [The proxy](./docs/proxy.md): autopilot and the optimizing mode for your API apps, `/stats`, cache advice, a public URL for Cursor
|
|
182
|
-
- [Chat apps](./docs/chat-apps.md): Claude Desktop, ChatGPT, claude.ai and the phone apps; what acts by itself and what only nudges; the MCP tools
|
|
183
|
-
- [
|
|
184
|
-
- [
|
|
191
|
+
- [Chat apps](./docs/chat-apps.md): Claude Desktop, ChatGPT, claude.ai and the phone apps; what acts by itself and what only nudges; the MCP tools, prompts and resources
|
|
192
|
+
- [Handoff](./docs/handoff.md): continue a long chat in a new one from a ≤400-token brief
|
|
193
|
+
- [Profiling](./docs/profiling.md): sessions, prompt-cache economics, subagents, `tasks`, `reads`, `compactions`, `cache-misses`, `limits`, `report`
|
|
194
|
+
- [Pack and overhead](./docs/pack-and-overhead.md): `pack`, `recall`, `overhead`, `overhead split` and `overhead prune`
|
|
185
195
|
- [Detectors and fixes](./docs/detectors.md): what the profiler finds and what each optimizer strategy changes
|
|
186
196
|
- [Library](./docs/library.md): `profileConversation`, `optimizeConversation`, `packContext`, `withContextDoctor`
|
|
187
197
|
- [Budgets and CI](./docs/ci.md): the GitHub Action and `.contextdoctorrc`
|
|
188
198
|
- [Editor and status line](./docs/editor-and-statusline.md): the VS Code / Cursor extension and Claude Code's status bar
|
|
189
199
|
- [Token counts](./docs/tokenizer.md): why counts are "~", how the Claude ratios were measured, exact counts
|
|
190
|
-
- [Performance](./docs/performance.md): what context-doctor itself costs
|
|
191
|
-
- [Experiment](./docs/experiment.md): does a smaller context
|
|
192
|
-
- [A/B suite](./docs/ab.md): does a lever cost quality? Eight small coding tasks, each run with and without it and scored by a hidden check
|
|
200
|
+
- [Performance](./docs/performance.md): what context-doctor itself costs (its six MCP tool definitions: at most ~2,344 tokens)
|
|
201
|
+
- [Experiment](./docs/experiment.md) and [A/B suite](./docs/ab.md): does a smaller context help, and does a lever cost quality? Measured on real tasks
|
|
193
202
|
- [What's new](./docs/whats-new.md), [Roadmap](./ROADMAP.md), [Python package](./python/README.md)
|
|
194
203
|
|
|
195
204
|
## Contributing
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google Antigravity: the app, the IDE and the CLI. Checked 2026-10-27
|
|
3
|
+
* against antigravity.google/docs (mcp, skills, hooks) and the 2.12.0 app on
|
|
4
|
+
* the author's machine:
|
|
5
|
+
*
|
|
6
|
+
* - MCP: `~/.gemini/config/mcp_config.json` for the IDE and the CLI, the
|
|
7
|
+
* same `{"mcpServers": {name: {command, args, env, disabled, ...}}}` shape
|
|
8
|
+
* as Claude Desktop's. The app manages it in its settings; on the author's
|
|
9
|
+
* machine its own `~/.gemini/antigravity/mcp_config.json` is a symlink to
|
|
10
|
+
* that file, with a `.migrated` marker beside it. An install from before
|
|
11
|
+
* that move has only the app's file, so that one is used when the shared
|
|
12
|
+
* folder does not exist yet.
|
|
13
|
+
* - Skills: `~/.gemini/config/skills/<name>/SKILL.md` for the app and the
|
|
14
|
+
* IDE, `~/.gemini/antigravity-cli/skills/<name>/` for the CLI; the same
|
|
15
|
+
* SKILL.md format as Claude Code (`description` required).
|
|
16
|
+
* - Hooks (`~/.gemini/config/hooks.json`, `injectSteps`) are not installed.
|
|
17
|
+
* They pass a `transcriptPath`, but its format is undocumented and no
|
|
18
|
+
* transcript exists on the author's machine (the 13 `brain/` folders have
|
|
19
|
+
* empty `logs/`), so the every-prompt size check has nothing it can read;
|
|
20
|
+
* and the standing rules already arrive with the MCP server.
|
|
21
|
+
*
|
|
22
|
+
* `~/.gemini` alone is not Antigravity: Gemini CLI creates it too. Its own
|
|
23
|
+
* folders are what count.
|
|
24
|
+
*/
|
|
25
|
+
/** The folders Antigravity creates: the shared config, and the app's, the IDE's and the CLI's data. */
|
|
26
|
+
export declare function antigravityDirs(): string[];
|
|
27
|
+
export declare function antigravityPresent(): boolean;
|
|
28
|
+
/** The app's own MCP file: before the shared config folder, the only one. */
|
|
29
|
+
export declare function antigravityLegacyMcpConfigPath(): string;
|
|
30
|
+
/**
|
|
31
|
+
* The MCP file to write: the shared one, unless this install predates it
|
|
32
|
+
* (no config folder, and the app's file is a real file, not the symlink the
|
|
33
|
+
* migration leaves).
|
|
34
|
+
*/
|
|
35
|
+
export declare function antigravityMcpConfigPath(): string;
|
|
36
|
+
/**
|
|
37
|
+
* Where our skill goes: the shared skills folder (app and IDE) when the
|
|
38
|
+
* shared config folder exists, else the IDE's legacy one, which it still
|
|
39
|
+
* reads; and the CLI's own when the CLI is here. No folder of Antigravity's
|
|
40
|
+
* is created that it did not have.
|
|
41
|
+
*/
|
|
42
|
+
export declare function antigravitySkillDirs(): string[];
|
|
43
|
+
/** Every place a skill of ours may be, for uninstall and doctor. */
|
|
44
|
+
export declare function antigravityAllSkillDirs(): string[];
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google Antigravity: the app, the IDE and the CLI. Checked 2026-10-27
|
|
3
|
+
* against antigravity.google/docs (mcp, skills, hooks) and the 2.12.0 app on
|
|
4
|
+
* the author's machine:
|
|
5
|
+
*
|
|
6
|
+
* - MCP: `~/.gemini/config/mcp_config.json` for the IDE and the CLI, the
|
|
7
|
+
* same `{"mcpServers": {name: {command, args, env, disabled, ...}}}` shape
|
|
8
|
+
* as Claude Desktop's. The app manages it in its settings; on the author's
|
|
9
|
+
* machine its own `~/.gemini/antigravity/mcp_config.json` is a symlink to
|
|
10
|
+
* that file, with a `.migrated` marker beside it. An install from before
|
|
11
|
+
* that move has only the app's file, so that one is used when the shared
|
|
12
|
+
* folder does not exist yet.
|
|
13
|
+
* - Skills: `~/.gemini/config/skills/<name>/SKILL.md` for the app and the
|
|
14
|
+
* IDE, `~/.gemini/antigravity-cli/skills/<name>/` for the CLI; the same
|
|
15
|
+
* SKILL.md format as Claude Code (`description` required).
|
|
16
|
+
* - Hooks (`~/.gemini/config/hooks.json`, `injectSteps`) are not installed.
|
|
17
|
+
* They pass a `transcriptPath`, but its format is undocumented and no
|
|
18
|
+
* transcript exists on the author's machine (the 13 `brain/` folders have
|
|
19
|
+
* empty `logs/`), so the every-prompt size check has nothing it can read;
|
|
20
|
+
* and the standing rules already arrive with the MCP server.
|
|
21
|
+
*
|
|
22
|
+
* `~/.gemini` alone is not Antigravity: Gemini CLI creates it too. Its own
|
|
23
|
+
* folders are what count.
|
|
24
|
+
*/
|
|
25
|
+
import { existsSync, lstatSync } from "node:fs";
|
|
26
|
+
import { homedir } from "node:os";
|
|
27
|
+
import { join } from "node:path";
|
|
28
|
+
function gemini() {
|
|
29
|
+
return join(homedir(), ".gemini");
|
|
30
|
+
}
|
|
31
|
+
/** The folders Antigravity creates: the shared config, and the app's, the IDE's and the CLI's data. */
|
|
32
|
+
export function antigravityDirs() {
|
|
33
|
+
return ["config", "antigravity", "antigravity-ide", "antigravity-cli"].map((d) => join(gemini(), d));
|
|
34
|
+
}
|
|
35
|
+
export function antigravityPresent() {
|
|
36
|
+
return antigravityDirs().some((d) => existsSync(d));
|
|
37
|
+
}
|
|
38
|
+
/** The app's own MCP file: before the shared config folder, the only one. */
|
|
39
|
+
export function antigravityLegacyMcpConfigPath() {
|
|
40
|
+
return join(gemini(), "antigravity", "mcp_config.json");
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The MCP file to write: the shared one, unless this install predates it
|
|
44
|
+
* (no config folder, and the app's file is a real file, not the symlink the
|
|
45
|
+
* migration leaves).
|
|
46
|
+
*/
|
|
47
|
+
export function antigravityMcpConfigPath() {
|
|
48
|
+
const shared = join(gemini(), "config", "mcp_config.json");
|
|
49
|
+
if (existsSync(join(gemini(), "config")))
|
|
50
|
+
return shared;
|
|
51
|
+
const legacy = antigravityLegacyMcpConfigPath();
|
|
52
|
+
try {
|
|
53
|
+
if (lstatSync(legacy).isFile())
|
|
54
|
+
return legacy;
|
|
55
|
+
}
|
|
56
|
+
catch {
|
|
57
|
+
/* absent */
|
|
58
|
+
}
|
|
59
|
+
return shared;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Where our skill goes: the shared skills folder (app and IDE) when the
|
|
63
|
+
* shared config folder exists, else the IDE's legacy one, which it still
|
|
64
|
+
* reads; and the CLI's own when the CLI is here. No folder of Antigravity's
|
|
65
|
+
* is created that it did not have.
|
|
66
|
+
*/
|
|
67
|
+
export function antigravitySkillDirs() {
|
|
68
|
+
const dirs = [];
|
|
69
|
+
if (existsSync(join(gemini(), "config")))
|
|
70
|
+
dirs.push(join(gemini(), "config", "skills", "context-doctor"));
|
|
71
|
+
else if (existsSync(join(gemini(), "antigravity")))
|
|
72
|
+
dirs.push(join(gemini(), "antigravity", "skills", "context-doctor"));
|
|
73
|
+
if (existsSync(join(gemini(), "antigravity-cli")))
|
|
74
|
+
dirs.push(join(gemini(), "antigravity-cli", "skills", "context-doctor"));
|
|
75
|
+
return dirs;
|
|
76
|
+
}
|
|
77
|
+
/** Every place a skill of ours may be, for uninstall and doctor. */
|
|
78
|
+
export function antigravityAllSkillDirs() {
|
|
79
|
+
return [join(gemini(), "config", "skills", "context-doctor"), join(gemini(), "antigravity", "skills", "context-doctor"), join(gemini(), "antigravity-cli", "skills", "context-doctor")];
|
|
80
|
+
}
|
package/dist/autoclear.d.ts
CHANGED
|
@@ -109,6 +109,13 @@ interface Found {
|
|
|
109
109
|
content: unknown;
|
|
110
110
|
set: (note: string) => void;
|
|
111
111
|
}
|
|
112
|
+
/** An AutoClearer's state as JSON (see AutoClearer.snapshot). */
|
|
113
|
+
export interface AutoClearSnapshot {
|
|
114
|
+
cleared: Array<[string, number]>;
|
|
115
|
+
sizes: Array<[string, number]>;
|
|
116
|
+
convs: Array<[string, number, number]>;
|
|
117
|
+
rejecting: string[];
|
|
118
|
+
}
|
|
112
119
|
/**
|
|
113
120
|
* One request, whatever its API: the units that make up history, tool names
|
|
114
121
|
* by call id, the tool results in order, and the cache lifetime to assume.
|
|
@@ -190,6 +197,14 @@ export declare class AutoClearer {
|
|
|
190
197
|
* without them.
|
|
191
198
|
*/
|
|
192
199
|
forget(ids: string[], conversation?: string): void;
|
|
200
|
+
/**
|
|
201
|
+
* Everything a later `apply` depends on, as plain JSON, in insertion order
|
|
202
|
+
* (the size caps evict the oldest): what a replay keeps to resume where it
|
|
203
|
+
* stopped (savings.ts). Not the state file, which drops sizes and shifts times.
|
|
204
|
+
*/
|
|
205
|
+
snapshot(): AutoClearSnapshot;
|
|
206
|
+
/** A clearer in exactly the state `snapshot` recorded (options as given; no state file). */
|
|
207
|
+
static fromSnapshot(snap: AutoClearSnapshot, options?: AutoClearOptions): AutoClearer;
|
|
193
208
|
private load;
|
|
194
209
|
private save;
|
|
195
210
|
}
|
package/dist/autoclear.js
CHANGED
|
@@ -489,6 +489,23 @@ export class AutoClearer {
|
|
|
489
489
|
this.save();
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
+
/**
|
|
493
|
+
* Everything a later `apply` depends on, as plain JSON, in insertion order
|
|
494
|
+
* (the size caps evict the oldest): what a replay keeps to resume where it
|
|
495
|
+
* stopped (savings.ts). Not the state file, which drops sizes and shifts times.
|
|
496
|
+
*/
|
|
497
|
+
snapshot() {
|
|
498
|
+
return { cleared: [...this.cleared], sizes: [...this.sizes], convs: [...this.convs].map(([k, c]) => [k, c.last, c.requests]), rejecting: [...this.rejecting] };
|
|
499
|
+
}
|
|
500
|
+
/** A clearer in exactly the state `snapshot` recorded (options as given; no state file). */
|
|
501
|
+
static fromSnapshot(snap, options = {}) {
|
|
502
|
+
const c = new AutoClearer({ ...options, statePath: undefined });
|
|
503
|
+
c.cleared = new Map(snap.cleared);
|
|
504
|
+
c.sizes = new Map(snap.sizes);
|
|
505
|
+
c.convs = new Map(snap.convs.map(([k, last, requests]) => [k, { last, requests }]));
|
|
506
|
+
c.rejecting = new Set(snap.rejecting);
|
|
507
|
+
return c;
|
|
508
|
+
}
|
|
492
509
|
load() {
|
|
493
510
|
if (!this.opts.statePath || !existsSync(this.opts.statePath))
|
|
494
511
|
return;
|
package/dist/autopilot.js
CHANGED
|
@@ -26,10 +26,11 @@ import { fileURLToPath } from "node:url";
|
|
|
26
26
|
import { isEphemeralPath, readJson, writeJsonWithBackup } from "./install.js";
|
|
27
27
|
import { formatTokens } from "./tokens.js";
|
|
28
28
|
import { codexAuthMode, codexHomeIn, codexRouting, routeCodex, unrouteCodex } from "./codexroute.js";
|
|
29
|
+
import { claudeDir } from "./claudedir.js";
|
|
29
30
|
export const DEFAULT_AUTOPILOT_PORT = 8787;
|
|
30
31
|
const LABEL = "com.gai-ventures.context-doctor.proxy";
|
|
31
32
|
export function autopilotPaths(home = homedir()) {
|
|
32
|
-
const dir =
|
|
33
|
+
const dir = claudeDir(home);
|
|
33
34
|
return {
|
|
34
35
|
settings: join(dir, "settings.json"),
|
|
35
36
|
config: join(dir, ".context-doctor-autopilot.json"),
|
|
@@ -430,7 +431,7 @@ function readConfig(paths) {
|
|
|
430
431
|
/** Which Claude Code surfaces ran recent sessions: entrypoint -> count. */
|
|
431
432
|
export function recentSurfaces(days = 30, home = homedir()) {
|
|
432
433
|
const out = new Map();
|
|
433
|
-
const root = join(home, "
|
|
434
|
+
const root = join(claudeDir(home), "projects");
|
|
434
435
|
const since = Date.now() - days * 86_400_000;
|
|
435
436
|
let dirs = [];
|
|
436
437
|
try {
|
package/dist/cachemisses.d.ts
CHANGED
|
@@ -24,7 +24,18 @@
|
|
|
24
24
|
* read rate. Measured on the author's last 30 days (Oct 2026): 390 misses in
|
|
25
25
|
* 29,287 requests, ~$1,925 above cache-read price, 28% of all cache-write
|
|
26
26
|
* spend; 382 of them with nothing in the transcript to explain them.
|
|
27
|
+
*
|
|
28
|
+
* Next to them, the re-writes that came just too late: a request less than
|
|
29
|
+
* 25% past the cache's lifetime (under 75 minutes after a 1-hour entry,
|
|
30
|
+
* under 6:15 after a 5-minute one) that wrote the context again. A person
|
|
31
|
+
* back from a break, or a loop whose interval sits on the TTL: an agent that
|
|
32
|
+
* woke every 61-62 minutes paid $248 of $285 in cache writes over 89
|
|
33
|
+
* wake-ups (anthropics/claude-code#104736). Three or more in a row in one
|
|
34
|
+
* session, at the same interval (within 90 s or 2%), are named as a loop,
|
|
35
|
+
* with the interval that keeps the cache warm.
|
|
27
36
|
*/
|
|
37
|
+
import { type Extractor } from "./scan.js";
|
|
38
|
+
import { type DiagnosedMisses } from "./missledger.js";
|
|
28
39
|
export type MissCause = "model switch" | "context edited" | "after an API error" | "over 20 new blocks" | "nothing visible";
|
|
29
40
|
export interface CacheMiss {
|
|
30
41
|
path: string;
|
|
@@ -42,6 +53,21 @@ export interface CacheMiss {
|
|
|
42
53
|
/** Above the cache-read price; undefined when the model has no known price. */
|
|
43
54
|
extraUsd?: number;
|
|
44
55
|
}
|
|
56
|
+
/** A request that re-wrote the cache less than 25% past its lifetime. */
|
|
57
|
+
export interface LateRewrite {
|
|
58
|
+
path: string;
|
|
59
|
+
at: string;
|
|
60
|
+
model: string;
|
|
61
|
+
/** The lifetime of the entry it missed (the previous request's), seconds. */
|
|
62
|
+
ttlSeconds: number;
|
|
63
|
+
gapSeconds: number;
|
|
64
|
+
contextTokens: number;
|
|
65
|
+
writeTokens: number;
|
|
66
|
+
/** Above the cache-read price; undefined when the model has no known price. */
|
|
67
|
+
extraUsd?: number;
|
|
68
|
+
/** Its number among the transcript's cold starts: consecutive ones had no other cold start between. */
|
|
69
|
+
cold?: number;
|
|
70
|
+
}
|
|
45
71
|
export interface MissStats {
|
|
46
72
|
/** Requests that could have read a warm cache (the definition above). */
|
|
47
73
|
eligible: number;
|
|
@@ -78,6 +104,26 @@ export interface CacheMissReport {
|
|
|
78
104
|
byVersion: VersionStats[];
|
|
79
105
|
/** Step changes from one version to the next that the numbers support. */
|
|
80
106
|
regressions: Regression[];
|
|
107
|
+
/**
|
|
108
|
+
* Claude Code's own diagnosis of each miss in the period, as the status line
|
|
109
|
+
* logged it (2.1.260+). Its definition of a miss is Claude Code's, wider
|
|
110
|
+
* than the one above (it counts a cold cache after a pause too).
|
|
111
|
+
*/
|
|
112
|
+
diagnosed: DiagnosedMisses;
|
|
113
|
+
/** Re-writes less than 25% past the cache lifetime, and the sessions with a loop on it. */
|
|
114
|
+
late: {
|
|
115
|
+
rewrites: number;
|
|
116
|
+
tokens: number;
|
|
117
|
+
extraUsd: number;
|
|
118
|
+
loops: Array<{
|
|
119
|
+
path: string;
|
|
120
|
+
rewrites: number;
|
|
121
|
+
medianGapSeconds: number;
|
|
122
|
+
ttlSeconds: number;
|
|
123
|
+
extraUsd: number;
|
|
124
|
+
}>;
|
|
125
|
+
largest: LateRewrite[];
|
|
126
|
+
};
|
|
81
127
|
}
|
|
82
128
|
/** One Claude Code version's requests (the `version` every transcript line carries). */
|
|
83
129
|
export interface VersionStats {
|
|
@@ -121,6 +167,10 @@ export interface Regression {
|
|
|
121
167
|
/** In words, with the numbers. */
|
|
122
168
|
text: string;
|
|
123
169
|
}
|
|
170
|
+
export declare const MISS_ROWS: Extractor<{
|
|
171
|
+
lastId?: string;
|
|
172
|
+
user: boolean;
|
|
173
|
+
}>;
|
|
124
174
|
/** Misses in one transcript; `since` drops requests before it. */
|
|
125
175
|
/** What `onRequest` is told about each main-chain request in the period. */
|
|
126
176
|
export interface RequestInfo {
|
|
@@ -142,8 +192,10 @@ export declare function missesInTranscript(path: string, since?: number, add?: (
|
|
|
142
192
|
version?: string;
|
|
143
193
|
}, miss?: CacheMiss) => void, onRequest?: (writeUsd: number, info: RequestInfo) => void,
|
|
144
194
|
/** Shared by every transcript of one report: a fork's copied rows (same uuids) have no first request of their own. */
|
|
145
|
-
runRows?: Set<string
|
|
146
|
-
export declare function cacheMisses(days?: number, paths?: string[], onProgress?: (done: number, total: number) => void): CacheMissReport;
|
|
195
|
+
runRows?: Set<string>, onLate?: (late: LateRewrite) => void): void;
|
|
196
|
+
export declare function cacheMisses(days?: number, paths?: string[], onProgress?: (done: number, total: number) => void, missLog?: string): CacheMissReport;
|
|
197
|
+
/** The late re-writes section, or nothing when there are none. */
|
|
198
|
+
export declare function renderLate(l: CacheMissReport["late"]): string[];
|
|
147
199
|
interface VersionAcc {
|
|
148
200
|
requests: number;
|
|
149
201
|
sessions: Set<string>;
|
|
@@ -186,5 +238,7 @@ export declare function versionReport(versions: Map<string, VersionAcc>): {
|
|
|
186
238
|
export declare function cacheMissesSignificant(r: CacheMissReport): boolean;
|
|
187
239
|
/** The one line `savings` adds when the misses are significant. */
|
|
188
240
|
export declare function cacheMissesLine(r: CacheMissReport): string[];
|
|
241
|
+
/** Claude Code's own diagnosis, or how to start recording it. */
|
|
242
|
+
export declare function renderDiagnosed(d: DiagnosedMisses): string[];
|
|
189
243
|
export declare function renderCacheMisses(r: CacheMissReport, limitLines?: string[]): string;
|
|
190
244
|
export {};
|