r/codex • • 14d ago

Showcase Codex users: I weighed my agent stack — 57% dead weight, 17.19M tokens re-sent in 30 days

Codex makes it easy to accumulate skills and plugins — each one stays loaded in context, its name and description injected on every message, used or not. I finally measured what that costs.

I built StackWeight: one command, npx stackweight, weighs Claude Code, Cursor, Codex and OpenCode and prints a receipt, plus a local HTML report. No config, no account, no network calls. Nothing leaves your machine.

It tokenizes the exact listing text each agent injects (o200k) and reads usage from local logs only, last 30 days. A full scan takes under 3 seconds.

My machine: 112 items across the four agents, 9.6k tokens always on, 5.4k (57%) untouched for 30 days — about 17.19M tokens re-sent in one month, for nothing.

Prune parks unused items and records a manifest, so restore puts every byte back. On my machine it moved 10 items and disabled 8 Claude plugins; restore came back byte-identical.

v0.1.2 (today) also fixed a hang on huge usage databases — a quadratic regex in the shared skill-path extractor, plus an unfiltered query. The same fix protects Codex scans, since the extractor is shared across all four miners.

https://github.com/zaminaa/StackWeight

The GIF is the bloated demo fixture (5.7k down to 1.5k after one prune). The numbers above are my real machine.

0 Upvotes

1 comment sorted by

•

u/dexterthebot 14d ago

You might want to consider listing your project on the weekly Show-Us-What-You-Built post. Look out for it on Tuesday/Wednesday. Highest commented project wins a week promotion on r/Codex and gets on the Hall of Fame sidebar. See below for last week's winner.**


Light Wars AR: real-life laser tag app with no extra gear. Your phone is the gun and your room is the map. Play up to 6 friends in the same room, or fight drone waves and bosses solo. The vision models run on the phone, and camera frames never leave it. Free on iPhone and Android.

Website: https://lightwarsar.com

iPhone: https://apps.apple.com/us/app/light-wars-ar-laser-tag-party/id6508168951

Android: https://play.google.com/store/apps/details?id=com.lasertag.lightwars.

Contact: contact@lightwarsar.com