MCPcopy Index your code
hub / github.com/PanAchy/copilot-arewecooked

github.com/PanAchy/copilot-arewecooked @v0.10.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.10.0 ↗ · + Follow
142 symbols 438 edges 34 files 3 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Yo GitHub Copilot: are we cooked?

npm version npm downloads

Estimate your GitHub Copilot AI-credit cost in preparation for June 1st. Pulls usage from VS Code, OpenCode, Pi, Zed, GitHub Copilot CLI, and Copilot for Xcode, aggregates it based on the new per-token pricing, and generates a local HTML report. Fully local.

HTML report preview

Relevant links

TL;DR: GitHub Copilot is moving from premium-request quotas to per-token billing on June 1st. Agentic workflows can now cost more than the old premium-request mental model suggests.

Quick start

npx copilot-arewecooked

This scans your local Copilot usage data, estimates your AI-credit cost under the new billing, and writes an HTML report + PNG screenshot to your current directory:

copilot-report-*.html
copilot-report-*.png

Flags

Flag Description
--days <n> Days to look back (default: all available data)
--since <date> Only include records from this date onward (YYYY-MM-DD)
--auto-model <model> Treat records reported as auto as a specific model for cost estimation (e.g. gpt-5.3-codex)
--json Print detailed normalized JSON to stdout (mutually exclusive with --terminal)
--terminal Print a compact report to the terminal instead of generating HTML/PNG (mutually exclusive with --json and --html)
--html [path] Write HTML report to a specific path (default: auto-generated filename)

Note on auto model: Some tools (e.g. VS Code Copilot) may report the model as auto when the user has not selected a specific model. Credits for those requests will show as zero unless you specify --auto-model to map them to a known priced model. The HTML report will include a note when any auto records are remapped.

How data is extracted

Source Paths Token accuracy
VS Code ~/Library/Application Support/Code{, - Insiders}/User/workspaceStorage/*/chatSessions/*.jsonl (macOS) · %APPDATA%/Code{, - Insiders}/User/workspaceStorage/*/chatSessions/*.jsonl (Windows) · ~/.config/Code{, - Insiders}/User/workspaceStorage/*/chatSessions/*.jsonl (Linux) Input estimated, output exact, cache not persisted
VS Code (OTel) ~/.config/Code/User/globalStorage/github.copilot-chat/agent-traces.db (Linux) · ~/Library/Application Support/Code/User/globalStorage/github.copilot-chat/agent-traces.db (macOS) · %APPDATA%/Code/User/globalStorage/github.copilot-chat/agent-traces.db (Windows) All exact (input, output, cache read); requires github.copilot.chat.otel.dbSpanExporter.enabled
OpenCode ~/.local/share/opencode/opencode.db (macOS and Linux) · %LOCALAPPDATA%/opencode/opencode.db / %APPDATA%/opencode/opencode.db (Windows) All exact (input, output, cache read/write)
Pi ~/.pi/agent/sessions/**/*.jsonl (all platforms) All exact (input, output, cache read/write)
Zed ~/.local/share/zed/threads/threads.db or Library/Application Support/Zed/threads/threads.db All exact (input, output, cache read/write)
Copilot CLI ~/.copilot/session-state/*/events.jsonl (all platforms) Output exact, input estimated, compaction exact
Copilot for Xcode ~/Library/Logs/GitHubCopilot/*.log (macOS only) All exact (input, output, cache read); model attribution via heuristic

Extension points exported contracts — how you extend this code

TrendPoint (Interface)
(no doc)
src/html.ts
SourceParseResult (Interface)
(no doc)
src/source.ts
ActiveModelState (Interface)
(no doc)
src/xcode.ts
Column (Interface)
(no doc)
src/table.ts
UsageRecord (Interface)
(no doc)
src/types.ts
SourceAdapter (Interface)
(no doc)
src/source.ts
TurnState (Interface)
(no doc)
src/xcode.ts
SourceFinding (Interface)
(no doc)
src/types.ts

Core symbols most depended-on inside this repo

costRecord
called by 22
src/pricing.ts
parseOpenCode
called by 22
src/opencode.ts
parse
called by 20
src/source.ts
parseVsCode
called by 14
src/vscode.ts
normalizeModel
called by 12
src/pricing.ts
bucketTrend
called by 12
src/html.ts
costRecords
called by 12
src/report.ts
fmt
called by 12
src/report.ts

Shape

Function 127
Interface 13
Method 2

Languages

TypeScript100%

Modules by API surface

src/html.ts21 symbols
src/zed.ts17 symbols
src/vscode.ts10 symbols
src/report.ts9 symbols
src/paths.ts9 symbols
src/types.ts7 symbols
src/copilotCli.ts6 symbols
src/xcode.ts5 symbols
src/opencode.ts5 symbols
src/__tests__/xcode.test.ts5 symbols
src/__tests__/opencode.test.ts5 symbols
src/source.ts4 symbols

For agents

$ claude mcp add copilot-arewecooked \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page