Home›GitHub Copilot›GitHub Copilot の利用量を可視化し、残り続ける履歴を安全に削除する VS Code 拡張を作った
GitHub Copilot の利用量を可視化し、たまり続けるチャット履歴を安全に掃除する VS Code 拡張を作った

GitHub Copilot の利用量を可視化し、残り続ける履歴を安全に削除する VS Code 拡張を作ったA developer built a VS Code extension that visualizes GitHub Copilot usage…

元記事を読むRead original articlezenn.dev(新しいタブで開きます)(opens in a new tab)
AI2 点サマリSummary highlight
  • GitHub Copilot の利用状況をダッシュボードで確認しつつ、蓄積し続けるチャット履歴を安全に削除できる VS Code 拡張機能を個人開発した。
  • 利用量の把握とストレージ管理を一つのツールで解決できる点が価値。

A developer built a VS Code extension that visualizes GitHub Copilot usage statistics and safely cleans up accumulating chat history, addressing two practical pain points in a single tool.

本ページの本文と要約は AI による自動生成です。日本語版と英語版は言語ごとに独立して生成されるため、表現や詳しさが異なる場合があります。正確性は元記事 (zenn.dev) をご確認ください。The body and summaries are AI-generated independently for each language, so wording and detail may differ. Verify accuracy at the original source (zenn.dev).

要約と収集メタデータに基づく AI 解説。元記事全文の転載・翻訳ではありません。AI explainer based on the summaries and collected metadata, not a copy or translation of the full source article.

GitHub Copilot を日々使い込むほど気になってくる「どれくらい使っているのか」と「履歴がたまり続けている」という二つの悩みを、一つの VS Code 拡張機能で解決しようという試みが登場した。ある開発者が、Copilot の利用状況をダッシュボードで可視化しつつ、蓄積するチャット履歴を安全に削除できる拡張を個人開発したと公開している。

背景には、Copilot の課金体系の変化がある。GitHub は近年、無償枠に加えて有償プランを整理し、より高性能なモデルの呼び出しを「プレミアムリクエスト」として一定回数に制限する方式を導入している。こうした仕組みのもとでは、自分がどのモデルをどの程度使っているかを把握しておくことが、無駄な超過や意図しないコスト増を避けるうえで重要になる。しかし標準の VS Code 上では、利用量を一目で振り返る手段が乏しいのが実情だ。

もう一つの課題がチャット履歴の肥大化である。Copilot Chat や近年強化されたエージェント的な対話機能を使うと、やり取りの記録がローカルに蓄積されていく。履歴は文脈の再利用に役立つ一方で、時間の経過とともにストレージを圧迫したり、過去の不要なやり取りが残り続けたりする可能性がある。今回の拡張は、こうした履歴を利用者が把握したうえで、必要な範囲だけを安全に掃除できる点を主眼に置いていると見られる。

利用量の把握とストレージ管理という、性質の異なる二つの作業を単一のツールにまとめた点がこの拡張の特徴といえる。VS Code の拡張エコシステムは活発で、Copilot 周辺でもトークン使用量の推定やプロンプト管理を補助するサードパーティ製ツールが数多く公開されている。公式機能が追いつかない細かな運用ニーズを、コミュニティの個人開発が補完する構図は珍しくない。

一方で、この種の拡張を導入する際には注意も必要だ。履歴の削除は取り消しが難しい操作であり、対象範囲やバックアップの有無を事前に確認しておくことが望ましい。また、利用状況の集計方法が公式の課金カウントと完全に一致するとは限らないため、あくまで目安として捉えるのが無難だろう。とはいえ、増え続ける AI 支援のログを自分の手で管理したいという需要は今後も高まる可能性があり、こうした軽量ツールの実用性は小さくない。

GitHub Copilot has become a fixture in many developers' daily workflows, yet two mundane problems tend to go unaddressed: knowing how much you actually use it, and managing the chat history that quietly piles up over time. A developer has built a Visual Studio Code extension that tackles both, pairing a usage dashboard with a tool for safely clearing accumulated Copilot chat records, according to a post published on the Japanese developer platform Zenn. The appeal is practical rather than flashy: it folds usage visibility and storage maintenance into a single interface.

The extension appears aimed at individual users rather than team administrators. GitHub already offers organization- and enterprise-level reporting through its own dashboards and a Copilot metrics API, but individuals on personal or Business plans often have limited insight into their own patterns of use. By surfacing usage statistics directly inside the editor, the extension lets users gauge their activity without leaving VS Code or signing into a separate web console. That kind of at-a-glance awareness has grown more relevant as GitHub has moved parts of Copilot toward usage-based billing, where certain "premium" requests against more capable models are metered, making it useful to understand consumption before it translates into cost.

The second half of the tool addresses storage. Copilot Chat retains conversation history so that context can persist across sessions, but that data keeps growing, and over months of heavy use it can occupy noticeable disk space and clutter the interface. The extension provides a way to review and delete this history in a controlled manner, which the developer frames as a "safe" cleanup. That distinction matters, because manually editing the files where VS Code and its extensions keep state can risk corrupting a workspace or removing data unintentionally. A purpose-built routine that targets only the relevant records is less error-prone than digging through storage directories by hand.

Technically, VS Code extensions are typically written in TypeScript or JavaScript and distributed through the Visual Studio Marketplace or the Open VSX registry. They run within the editor's extension host and can access defined storage locations, invoke the editor's APIs, and render custom views such as webview-based panels for dashboards. Chat and workspace state in VS Code is commonly held in local databases and JSON files under the user's profile directory. It is likely that the extension reads from and manages these locations to compile its statistics and perform its cleanup, though the precise data sources and the exact metrics it exposes are best confirmed against the extension's own documentation, since the internal formats used by Copilot are not part of a stable public contract and can change between releases.

The project also fits a broader industry context. AI coding assistants have proliferated, with alternatives such as Cursor, Sourcegraph's Cody, Amazon Q Developer, and Windsurf competing alongside Copilot, and each accumulates its own logs, caches, and conversation data as it becomes embedded in everyday coding. As these tools mature, a secondary ecosystem of companion utilities has emerged to help users observe, tune, and maintain them. Extensions that track token or request usage, manage prompt libraries, or clean up generated artifacts reflect the same instinct on display here: the assistant is useful, but it needs housekeeping.

For readers considering the tool, a few caveats are worth keeping in mind. Individually built extensions can vary in maintenance and support, and because this one interacts with Copilot-related data, it is prudent to review its permissions and understand what it deletes before running a cleanup, ideally after confirming that any important chat context has been preserved elsewhere. Users on managed or enterprise devices may also be subject to organizational policies governing which extensions can be installed.

Even so, the underlying idea is a sensible one. Rather than treating usage analytics and storage hygiene as separate chores handled by separate tools, the extension consolidates them where the work already happens, inside the editor. As AI assistance becomes a standard layer of the development environment, small utilities that make its footprint visible and manageable are likely to remain valuable, and this project is a concrete example of a developer scratching a common itch and sharing the result with the wider community.

ポコとTECHガイドPoko & TECH Guide

ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.

  1. ポコPokoCopilot Usage Viewerって何?どのモデルをどれくらい使ったか分かるの?What is Copilot Usage Viewer? Can it show which models I’ve been using and how much?
  2. TECHガイドTECH Guide記事によれば、GitHub Copilotの利用状況をダッシュボードで確認し、たまるチャット履歴も安全に削除できるVS Code拡張じゃよ。According to the article, it’s a VS Code extension that shows GitHub Copilot usage on a dashboard and safely deletes accumulated chat history.
  3. ポコPokoへえ、すごい!利用量の確認と履歴の削除が一緒だと、何がうれしいの?Oh, neat! What’s the benefit of combining usage tracking and chat-history cleanup?
  4. TECHガイドTECH Guide簡単に言うとじゃな、使い方の振り返りとストレージ整理という二つの悩みを、一つのツールで扱える点じゃよ。Simply put, it handles two practical needs in one tool: reviewing how Copilot is used and managing storage by cleaning up history.
  5. ポコPokoつまり、Copilotの使い方を見える化しつつ、残り続ける履歴も整理できるんだね。So it makes Copilot usage visible while also helping clean up chat history that keeps accumulating.
  6. TECHガイドTECH Guideその通りじゃ。ただし記事によれば、扱うチャットセッションの保存形式はVS Codeの公開APIではない点に注意が必要じゃよ。Exactly. One caution from the article: the chat-session storage format it handles is not part of VS Code’s public API.
記事情報・収集記録Article details & collection record
出典Source
Zenn GitHub CopilotコミュニティCommunity
公開日時 (JST)Published (JST)
収集日時 (JST)Collected (JST)
配信形式Format
ブログBlog
原文言語Source language
JA
重要度の位置づけImportance in this lane
MediumMedium priority(GitHub Copilot 218件中、同等以上 166件)(166 of 218 GitHub Copilot entries are equal or higher)
出典の平均重要度(掲載直近 30 件・最大 30 件)Source average (last 30 listed, up to 30)
2.0 / 31=情報 · 2=中 · 3=高1=Info · 2=Medium · 3=High
情報の寿命Half-life
中期 (チュートリアル)Medium-term (tutorial)

🧠GitHub Copilot の他の記事More from GitHub Copilotもっと見る →View more →

ページ上部へScroll to top