← ClaudeAtlas

vscode-claude-chat-context-meterlisted

Live context meter and custom buttons in the Claude Code chat composer in VS Code and its forks: "how much context is left", "show the token count in the chat", "the context ring is gone after the update", "bring the button back", "add a button to the composer", "make the button survive extension updates", "undo the patch". Russian: «сколько контекста осталось», «верни кнопку контекста», «индикатор контекста пропал после обновления», «добавь кнопку в чат», «чтобы кнопка не пропадала после обновлений», «откати патч». The extension has no chat-UI extension point, so the button is injected into its webview bundle; every extension update wipes the patch and one command puts it back.
warodan/vscode-claude-chat-context-meter · ★ 1 · AI & Automation · score 72
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