vscode-claude-chat-context-meterlisted
Install: claude install-skill warodan/vscode-claude-chat-context-meter
# Context meter button in the Claude Code chat composer (VS Code)
**Scope: the Claude Code extension in VS Code.** This skill patches that
extension's webview bundle. Outside VS Code (or a fork of it) there is nothing to
patch and the skill does nothing useful — it is not a general agent tool.
**Nothing to install.** The patcher is a single dependency-free JavaScript file
(`patch_claude_code_ui.mjs`). It finds Node on its own: `node` from PATH, and if
that is missing, the Node runtime built into VS Code itself
(`ELECTRON_RUN_AS_NODE=1`). Anyone patching a VS Code extension has that editor
by definition, so the fallback always exists. `run.sh` / `run.ps1` do the lookup.
Details of the patch itself — the edits, the safeguards, the ring, where the
reading comes from — are in `references/internals.md`. Read that when you have to
change the patcher, not to run it.
## Protocol (mandatory, do not reorder)
You are patching **someone's installed extension** that they use every day.
Breaking it breaks their daily driver, so the steps are exactly these:
**1. Preflight — always first, writes nothing but a path cache:**
```bash
for d in "$CLAUDE_SKILL_DIR" ./.claude/skills/vscode-claude-chat-context-meter \
"$HOME/.claude/skills/vscode-claude-chat-context-meter"; do
[ -f "$d/run.sh" ] || continue
sh "$d/run.sh" --verify
break
done
```
It checks the extension version (and whether it was patched before — see the
`verified-versions.json` ledger), that the backup is cle