maqam.dev / prefix-calc

LLM Prefix & Session Burn Calculator

Measure the hidden token tax of stacked MCP servers, eager skills, and long rule files across multi-turn coding sessions. Built from Mizan's 113-session audit. Runs 100% client-side in your browser.

Workspace Parameters

Prefix Hygiene Grade
19,160 tok
Re-sent on every single turn
D
MCP schema overhead 14,400 tok
Eager skills overhead 1,680 tok
Rule file overhead 3,080 tok
Total input reads / session 1,741,600 tok
Estimated cost / session $1.85
Estimated monthly spend $111.00 / mo

With Mizan Thin-Global + FTS5 Hub

Moves rarely used MCPs behind mizan prepare, indexes skills/lessons in local SQLite FTS5 (0 prefix tokens), and trims rule bloat.

Optimized fixed prefix 5,616 tok
Projected monthly spend $64.00 / mo
Estimated monthly savings $47.00 / mo (42%)
npx mizan-os start Audit Your Repo (0 Tokens)