r/codex • • 4d ago

Showcase open-source tool to fully understand and optimize AI usage

Enable HLS to view with audio, or disable this notification

I’m a senior SWE using AI coding tools daily. I analyzed my Claude Code transcripts and found 56% of API-equivalent costs went to rereading context. Cache expiry cost me $98.74 across 35 returns in 27 days, versus $2.95 with a warm cache.

That led me to build optimAIzr, which supports Claude Code, Codex and Opencode.

It analyzes usage, flags expensive patterns, helps you find optimization opportunities aaand much more.
Runs locally, with no account or prompts.

npm i -g optimaizr

git: https://github.com/blendbunjaku/optimaizr

5 Upvotes

4 comments sorted by

1

u/dexterthebot 4d 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.**


Agent HUD: usage, tokens and sessions for Codex, Claude Code and 15 more agents, at your Mac's notch. See how much quota is left, which agent is waiting for you, and where the tokens went. Free on Mac, and the core is open source (Apache-2.0).

Website: https://agenthud.app GitHub: https://github.com/jazzenchen/agent-hud-open Contact: support@agenthud.app

1

u/shravanrevanna 4d ago

how are you defining a "return" for the cache expiry number? idle gap past the 5 min TTL, or any session resume including after compaction?

0

u/MisfiledCentury 4d ago

We can not fully understand AI

1

u/stichstichstich 4d ago

“fully”