Copilot Lens

A local memory layer for AI coding assistants. Search and browse everything you've ever discussed with Copilot CLI, VS Code Copilot Chat, or Claude Code. All on your machine.

npx copilot-lens --open
Copilot Lens dashboard

Features

Search
Full-text across every session, with filters for source, date, and working directory.
Sessions
One unified browser for Copilot CLI, VS Code Copilot Chat, and Claude Code conversations. Extended-thinking blocks shown inline.
Analytics
Eight charts: daily activity, hour-of-day, tools, models, top directories, time per branch and repo, MCP servers.
Tokens
Real API-reported token usage from local logs, with daily, weekly, and monthly views, model breakdown, and an estimated upstream cost.
Effectiveness Score
0 to 100 score per repo with actionable improvement tips covering prompt quality, tool utilization, efficiency, MCP, and engagement.
Export
Any session as OpenAI-style chat JSONL, suitable as fine-tuning data.

Sessions

Unified session list

Analytics

Analytics charts

Tokens

Token usage dashboard

Effectiveness Score

Effectiveness score

Install

Run without installing:

npx copilot-lens --open

Or install globally:

npm install -g copilot-lens

Terminal

Token usage as an Ink TUI, no browser needed.

copilot-lens tokens
copilot-lens tokens --source claude-code
copilot-lens tokens --json

Where the data comes from

Copilot Lens reads from local files only. No network requests, no telemetry.