К основному содержанию
плагин

whatidid — плагин для GitHub Copilot: отчёт об эффективности

Собирает HTML-отчёт по локальным логам Copilot-сессий: что вы сделали, часы-эквиваленты и расход кредитов.

Установить в GitHub Copilot · Команда из источника Все способы и платформы ↓
copilot plugin install whatidid@awesome-copilot
Открыть на GitHub

Что делает whatidid

Плагин читает журналы ваших сессий Copilot и превращает их в HTML-страницу с разбором. В отчёте есть оценка трудозатрат в человеко-часах, наглядные артефакты вроде скриптов и документов, разбивка времени по ролям и режимам работы. Отдельный блок показывает картину расхода кредитов.

Числа кредитов и стоимости плагин считает по токенам из локальных логов и тарифам GitHub, поэтому это оценка. Автор прямо предупреждает: для сверки со счётом ориентируйтесь на официальный биллинг Copilot, а не на отчёт.

Ставится в сессию Copilot CLI командой /plugin install, после чего запускается как whatidid с окном по умолчанию в 7 дней. Есть вариант через VS Code и установка из клона репозитория. Для второго и третьего способов нужны Python 3.10+, git и GitHub CLI gh — без авторизации gh auth login анализ с ИИ не заработает.

Какие задачи решает

  • увидеть, что реально сделано за неделю работы с Copilot
  • перевести сессии в оценку человеко-часов
  • понять, в каких режимах работы вы проводите время с ИИ
  • посмотреть, куда уходят кредиты Copilot
  • показать команде или руководителю выход своих сессий

Примеры запросов агенту

  • Дай отчёт whatidid за последние 7 дней
  • whatidid за этот месяц
  • Собери сводку: с чем Copilot помог мне сегодня

Как установить whatidid

Команда из источника

copilot plugin install whatidid@awesome-copilot

По шагам, с командами для каждой платформы: Плагины Claude Code: маркетплейсы, установка и как собрать свой

Вопросы о whatidid

Как установить whatidid в GitHub Copilot?

В сессии Copilot CLI выполните copilot plugin install whatidid@awesome-copilot, затем запустите whatidid.

Что делает whatidid?

Строит HTML-отчёт по вашим локальным логам Copilot: трудозатраты, артефакты, распределение времени по ролям и режимам, оценка расхода кредитов.

Насколько точны цифры по кредитам?

Это оценка по токенам из логов и опубликованным тарифам GitHub. Автор предупреждает, что суммы могут быть занижены, и советует сверяться с официальным биллингом Copilot.

Исходный текст

SKILL.md · MIT
<div align="center">

<br>

<img src="https://raw.githubusercontent.com/microsoft/What-I-Did-Copilot/main/docs/images/logo.png" alt="What I Did with Copilot logo" width="120">

# 📝 What I Did — GitHub Copilot Impact Report

### One command. See everything you built with Copilot — and the leverage you're getting from your seat.

<br>

<img src="https://raw.githubusercontent.com/microsoft/What-I-Did-Copilot/main/docs/images/sample-report.gif" alt="What I Did — GitHub Copilot Impact Report sample" width="680">

<br>

**▶ [Watch the 2-minute overview](https://youtu.be/NrygF8hE6vo)** — see what the report shows and why it matters.

<br>

[![Analytics Hub](https://img.shields.io/badge/Analytics%20Hub-11%20Repositories-8661c5?style=for-the-badge&logo=github&logoColor=white)](https://microsoft.github.io/Analytics-Hub/)

<br>

**🚀 [All Analytics Hub Reports](https://microsoft.github.io/Analytics-Hub/)**

<br>

**Found this useful? ⭐ Star this repo to help others discover it!**

<br>

**[Get Started ↓](#get-started)** &nbsp;·&nbsp; **[What You'll See ↓](#what-youll-see)** &nbsp;·&nbsp; **[How It Works ↓](#how-it-works)** &nbsp;·&nbsp; **[Requirements ↓](#requirements)** &nbsp;·&nbsp; **[Privacy ↓](#privacy)**

<br>

</div>

---


<a id="watch-the-overview"></a>
## Watch the overview

A 2-minute tour — what the report shows, where Copilot helped, and the leverage you're getting from your seat.

[![Watch the 2-minute overview on YouTube](https://img.youtube.com/vi/NrygF8hE6vo/maxresdefault.jpg)](https://youtu.be/NrygF8hE6vo)

**▶ [Watch on YouTube](https://youtu.be/NrygF8hE6vo)**

---


<a id="get-started"></a>
## Try it now

Pick whichever matches how you use Copilot &mdash; all three install and run the same thing.

**Option A &mdash; Copilot CLI plugin** *(requires the GitHub Copilot CLI)*

In any Copilot CLI session:

```bash
/plugin install whatidid@awesome-copilot
```

Then just run:

```bash
whatidid                # defaults to a 7-day lookback
```

**Option B &mdash; VS Code chat plugin via `@agentPlugins`** *(Awesome Copilot marketplace)*

1. Open the Command Palette &rarr; **`Chat: Plugins`** *(or type **`@agentPlugins`** in the Extensions search view)*.
2. Search **`whatidid`** &rarr; click **Install**.
3. In Copilot Chat, just ask:
   > *"give me a 7-day Copilot report"* &nbsp;·&nbsp; *"whatidid this month"* &nbsp;·&nbsp; *"summarize what Copilot helped me with today"*

> 💡 **Power user tip:** the plugin is a full Python checkout under  
> `~/.copilot/installed-plugins/awesome-copilot/whatidid/` (Windows: `%USERPROFILE%\.copilot\...`).  
> `cd` there and run `python whatidid.py --30D` directly. Note this is the marketplace-pinned release &mdash; see *Updating* below to refresh, or use Option C for true latest-`main`.

**Option C &mdash; Clone the repo** *(maximum control, dev-mode)*

Open a terminal (Windows Terminal, Terminal.app, or your favourite shell &mdash; including VS Code's built-in terminal), then:

```bash
gh auth login                                           # one-time: authenticate to GitHub (enables AI analysis)
git clone https://github.com/microsoft/What-I-Did-Copilot.git
cd What-I-Did-Copilot
python whatidid.py                                      # defaults to a 7-day lookback
```

Prerequisites: **Python 3.10+**, **[`git`](https://git-scm.com/)**, and **[GitHub CLI (`gh`)](https://cli.github.com/)**. See the [full requirements table](#requirements) below.

That's it. A report opens in your browser showing your last 7 days with Copilot.

### 🔄 Already installed? Update to the latest release

The plugin ships new features and methodology tweaks regularly &mdash; refresh whichever way you installed:

| You installed via&hellip; | How to update |
|---|---|
| **Option A &mdash; Copilot CLI plugin** | In a Copilot CLI session, run `/plugin update whatidid@awesome-copilot`. |
| **Option B &mdash; VS Code `@agentPlugins`** | Open the Command Palette &rarr; **`Chat: Plugins`** (or `@agentPlugins`), find **`whatidid`**, and click **Update**. If no Update button appears, the marketplace already has you on the latest. |
| **Option C &mdash; Cloned repo** | `cd` into your clone and run `git pull`. |

> The CLI plugin and VS Code plugin install the **same** marketplace package &mdash; updating one will not update the other. If you use both, run both update steps.

---

<a id="what-youll-see"></a>
## What you'll see

| | |
|---|---|
| ✅ **Goals & leverage** | Every project with human effort equivalents — see that a 10-min session replaced 3 hours of work. *What did Copilot actually deliver?* |
| 📦 **Artifacts produced** | Scripts, reports, docs, configs — counted and categorized. *What tangible output came out of your AI sessions?* |
| 🧠 **Skills augmented** | Hours mapped across 20+ roles — engineer, analyst, designer, architect. *What skills did Copilot make accessible to you?* |
| 🎯 **Collaboration style** | A donut chart breaks active time across 9 work modes &mdash; Designing, Analyzing, Reviewing, Researching, Learning, Building, Refining, Course-correcting, Delegating &mdash; with labels next to each slice. *How are you directing AI, and where are the skills you need to grow as a manager of AI?* |
| ⏰ **Activity heatmap** | When you collaborate and how your day breaks down. *When is AI most useful in your workflow?* |
| 📐 **Estimation evidence** | Transparent methodology grounded in [13 peer-reviewed sources](docs/effort-estimation-methodology.md). *Why should anyone trust these numbers?* |
| 💸 **Credit-burn patterns** | Every flagged pattern cites the Anthropic / OpenAI / GitHub guidance it implements &mdash; with clickable sources. *Where am I burning credits, and what does the published guidance say?* See the [credit-optimization methodology](docs/credit-optimization.md). |

> 📊 **A note on the numbers.** Credit and cost figures are estimates, calculated from the token counts in your local session logs and GitHub's published per-model rates. They give an accurate picture of the *shape* of your AI usage, but your actual GitHub bill can differ depending on your plan, included credit allowance, and billing details that aren't visible in local logs.
>
> ⚠️ **Disclaimer:** The credit figures shown in reports are **directional only** and may be understated. Unclean shutdowns, incomplete session logs, and coverage gaps can all impact the calculation. **Only GitHub Copilot's official billing should be relied upon for accuracy.** The credits reported by this tool cannot be relied upon for precise tracking or reconciliation with your actual bill.

---

## 🆕 What's new in this release

- **Learning intent expansion** &mdash; the classifier now catches genuine learning queries: *"how do I X"*, *"help me understand"*, *"what's the best way to..."*, *"tell me about"*, *"pros and cons of..."*, *"primer on..."*, plus dozens more phrasings. A hand-holding bypass routes *"I don't understand how X works"* to Learning instead of Course-correcting.
- **New methodology doc** &mdash; [`docs/credit-optimization.md`](docs/credit-optimization.md) synthesizes credit-burn pattern the tool detects with the exact Anthropic / OpenAI / GitHub source it implements, including short excerpts.
- **AI Investment and Consumption Patterns** &mdash; new sub-segments for Model Mix, Top Sessions and behavior pattern analysis that drive up consumption, based on guidance from OpenAI, Anthropic, and GitHub.

---

## More options

```bash
whatidid --14D                        # last 14 days
whatidid --30D                        # last 30 days
whatidid --date 2026-03-19            # specific date
whatidid --from 2026-03-01 --to 2026-03-31   # date range
whatidid --7D --email                 # send via Outlook
whatidid --7D --email [email protected] # send to a specific address
whatidid --refresh                    # force re-analysis
```

<a id="how-it-works"></a>
## 🏗️ How It Works

```
~/.copilot/session-state/<uuid>/events.jsonl          (Copilot CLI sessions)
<AppData>/Code/User/globalStorage/                    (VS Code Copilot Chat
   emptyWindowChatSessions/<uuid>.jsonl                sessions — same pipeline)
                │
                ▼
           harvest.py    → scan sessions, extract messages, tools, files, intents
                │
                ▼
           analyze.py    → AI categorization via GitHub Models API (gpt-4o-mini)
                │         → calibrated effort estimation with quantitative signals
                ▼
           report.py     → HTML report: story arc, donut charts, heatmaps, ROI
                │
                ▼
         whatidid.py     → opens report in browser; --email sends via Outlook COM
```

See [docs/architecture.md](docs/architecture.md) for session file formats, token cost model, and leverage calculation details.

See [docs/effort-estimation-methodology.md](docs/effort-estimation-methodology.md) for the research basis, signal definitions, and calibration logic behind effort estimates — grounded in 13 peer-reviewed sources including Alaswad et al. 2026, Cambon et al. 2023 (Microsoft Research), Ziegler et al. 2024 (CACM), and the SPACE framework (Forsgren et al. 2021).

See [docs/credit-optimization.md](docs/credit-optimization.md) for the credit-burn pattern catalogue &mdash; every detector is tied to published guidance from Anthropic, OpenAI, or GitHub, with the per-model rates sourced from Copilot's own session metadata when available.

<a id="privacy"></a>
## 🔒 Privacy

**Your data stays on your machine.** This tool is completely local-first:

- **Reads only local files** &mdash; session logs from `~/.copilot/session-state/` (Copilot CLI) and `<AppData>/Code/User/globalStorage/emptyWindowChatSessions/` (VS Code Copilot Chat) that already exist on your machine
- **No telemetry, no tracking, no cloud uploads** — the tool never phones home
- **AI analysis is optional** — uses GitHub Models API (authenticated via your own `gh` CLI token) to semantically interpret sessions. Without API access, a local heuristic fallback produces estimates with zero external calls
- **Email is optional** — the `--email` flag sends the report via your own Outlook client. If you don't use it, the HTML file stays on disk
- **No one has access to your report unless you share it** — the output is a standalone HTML file saved to your local project directory

The tool processes the same session data that GitHub Copilot already stores locally. It adds nothing new to disk beyond the HTML report and a small analysis cache in `cache/`.

<a id="requirements"></a>
## 📋 Requirements

| Requirement | Why |
|---|---|
| **Python 3.10+** | Core runtime |
| **GitHub CLI (`gh`)** | Provides API token for AI analysis — run `gh auth login` |
| **GitHub Copilot** | Session data source — must have active sessions in `~/.copilot/session-state/` |
| **Microsoft Outlook** | *(Optional)* For `--email` delivery via COM automation — auto-detects recipient from GitHub auth |

No `pip install` needed — the core report generator (`harvest.py`, `analyze.py`, `report.py`, `whatidid.py`) uses only the Python standard library + GitHub Models API.

## 🤝 Copilot Agent

This tool ships as a **Copilot CLI agent**. Anyone who clones the repo gets it automatically — run `/agent` in Copilot CLI and select `whatidid`, or just ask naturally:

> "What did I build this week?"

See [`.github/agents/whatidid.agent.md`](.github/agents/whatidid.agent.md) for the agent definition.

## 📄 License

MIT

---

<div align="center">

**Found this useful? ⭐ Star this repo to help others discover it!**

That's it! 🚀

</div>

<sub>**Keywords:** GitHub Copilot ROI, Copilot usage report, Copilot activity tracker, AI productivity metrics, token usage analysis, Copilot impact measurement, developer productivity, AI-assisted development analytics</sub>

© Microsoft · MIT · microsoft/What-I-Did-Copilot

Похожие плагины

Все плагины по теме «Заметки, задачи и проекты» →
discernment-nudge официальный anthropics Плагин добавляет к содержательному ответу два или три коротких вопроса. Он помогает проверить факты, ход рассуждений и пропущенный контекст. ★ 183 839звёзд репо superpowers obra Плагин ведёт агента от обсуждения задачи и плана до разработки через субагентов, ревью, отладки и TDD. Подойдёт для проектов, где важен последовательный процесс. CX Codex ★ 305 248звёзд репо mattpocock-skills Matt Pocock Набор скиллов для гриллинга, TDD, ревью кода и работы со спецификациями. Подойдёт, если агенту нужно сначала разобраться в задаче, а потом менять код. ★ 303 516звёзд репо claude-hud jarrodwatts Показывает под строкой ввода, сколько контекста занято, какие инструменты работают и как идут задачи. Пригодится, когда сессия длинная и надо видеть расход. ★ 28 841звёзд репо caveman JuliusBrussee Плагин заставляет агента отвечать короче и читать меньше логов, а код оставляет точным. Ставится одной командой, работает с Claude и ещё десятками агентов. ★ 115 125звёзд репо telegram официальный anthropics Подключает Telegram-бота к сессии Claude через MCP-сервер: бот отвечает, ставит реакции и правит сообщения. ★ 44 635звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой