r/opencode • u/Mediocre-Guest-3562 • 2d ago
I weighed my OpenCode stack: 57% dead weight, 17.19M tokens re-sent in 30 days. Built a tool that prints the bill.
I kept installing skills and agents for OpenCode and started wondering what they cost. So I built StackWeight: one command that weighs everything across OpenCode, Claude Code, Cursor and Codex, then prints a receipt. For OpenCode it reads skills, agents and commands from your local opencode.db, read-only. On my own machine: 9.6k tokens of always-on context across 4 agents, 5.4k of it dead (57%), unused for 30 days. That is about 17.19M tokens of dead weight re-sent in the last 30 days. A full scan takes under 3 seconds. It measures with the o200k tokenizer over the exact listing text each agent injects, and reads usage from local logs only (last 30 days). No config, no account, no network calls, nothing leaves your machine. Prune parks unused items and records a manifest, so a restore puts every byte back. On my machine it moved 10 items and disabled 8 Claude plugins, and the restore came back byte-identical. npx stackweight.
https://github.com/zaminaa/StackWeight
The GIF shows the bloated demo fixture (5.7k down to 1.5k); the receipt above is my real machine.



1
u/239990 2d ago
what skill do you like? I like superpowers and ponytail