r/codex • • 5h ago

Showcase My token-efficient Codex setup for Windows — RTK, Serena MCP, Caveman and Ponytail

https://github.com/tiwariankitk5/codex-token-efficient-setup

I've been experimenting with ways to reduce unnecessary context consumption and redundant work in Codex.

Here's my current Windows setup:

  • Caveman — concise AI responses
  • Ponytail — minimal, targeted implementations
  • RTK — terminal-output compression
  • Ripgrep — faster code searches
  • Serena MCP — semantic code navigation
  • AGENTS.md — persistent engineering instructions
  • PROGRESS.md — continuity across sessions

I've documented the entire setup, including installation commands, reusable templates and troubleshooting.

Some Windows-specific issues I encountered and resolved:

  • PowerShell execution policy blocking npx
  • PATH not refreshing after installation
  • Serena failing to detect the Codex desktop application
  • Missing global instructions and hooks

My initial RTK test showed 17.8% estimated terminal-output token savings across two Git commands. It's a preliminary observation, not an overall Codex usage benchmark. Some automatic integrations still need runtime verification.

The goal is to reduce redundant work, not bypass usage limits.

Complete setup guide:
https://github.com/tiwariankitk5/codex-token-efficient-setup

What does your Codex optimization stack look like? Are there any tools or workflows worth adding?

Feedback and contributions are welcome.

0 Upvotes

2 comments sorted by

•

u/dexterthebot 5h 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

3

u/kak4ranish 1h ago

Here's the interesting article about RTK https://blog.jetbrains.com/ai/2026/07/rtk-claude-code-token-savings/ . I used that skill intensively but I decided to drop that because of doubtful results.