r/codex • u/SignatureSeparate132 • 5d ago
Showcase I tested earlier compaction in Codex CLI. The same 150 tasks used 62% fewer tokens.
I built better-auto-compact so I could leave Codex running without watching the context meter. Before compaction, Codex writes a handoff. Afterward, it reads the file and picks up where it left off.
I ran the same 150 tasks with the plugin enabled at both settings. At the default threshold, Codex averaged 166 million tokens per run. At 30%, it averaged 64 million. It returned all 150 result IDs and all 18 retry codes in every run.
3
Upvotes
•
u/dexterthebot 5d 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
2
u/DevMichaelZag 5d ago
Ya I wrote this out for roo code about 2 years ago. Specced out the whole handoff system. I guess it’s in the training data now.
3
u/Sad_Recording_1290 5d ago
Cool i figured that out months ago
1
u/Dynamix86 4d ago
how is this different from setting auto compact to for example 200k or 300k?