PDM — Project Density Measures (VS Code)See what every part of your AI project costs — a flow map, version diffs, per-box tokens / $ / GPU — right inside your editor.
You shipped an AI feature and the token bill arrives — but which step spent it: the retrieval, the rewrite, the answer? PDM turns your project into a box / layer / connector map and measures tokens, cost, time and GPU per box, every version. Your own coding agent (Claude Code, Codex, …) writes the map by following the PDM spec, so it's language- and framework-agnostic — and nothing about your code or prompts ever leaves your machine. This extension hosts the PDM viewer in a VS Code webview and reads your project's
Getting started
What you can doDrill into the map — every box shows when it ran and what it cost; click a leaf for tokens (in/out), $, duration and real CPU / RAM / GPU / VRAM.
Diff versions —
Benchmark agents — hand the same frozen task to several coding agents off the same baseline and compare dev tokens, time, model and outcome side by side.
Plot trends — any metric (tokens, cost, run time, dev cost, your own KPIs) over versions or time.
Measure from the editor — ⚡ Measure now runs a new version using your project's own Python venv; the timeline refreshes when the run lands. ▶ Playback replays a run box-by-box. Learn more
License |




