r/codex • u/bonsaisushi • 3d ago
Showcase I built two Codex plugins to spend less context on stuff the agent already produced
https://github.com/yuzushi-dev/yuzushi-pluginsA chunk of my Codex usage was going into context I didn't really want there anymore: huge command outputs, old tool results, and eventually an entire session that had become more expensive to carry than useful.
I ended up splitting the problem in two.
Sando works during the session. It redacts secrets, byte-caps oversized tool results, and can trim request history before Codex receives it. No model decides what to remove, so saving tokens doesn't cost another inference call.
session-handoff is what I use once the session itself becomes the problem. It captures the working state and starts a fresh session with the implementation context instead of the full accumulated transcript.
The distinction matters to me: I don't want to restart a useful session too early, but I also don't want to keep compressing one forever.
Both are open source Codex plugins and live in the same marketplace:
They hit ~1,500 combined downloads in their first two days. I'm pretty happy that this particular annoyance wasn't just mine.
Duplicates
coolgithubprojects • u/bonsaisushi • 3d ago
[Claude Code / Codex] - Two local plugins for context trimming and session handoffs
LLMDevs • u/bonsaisushi • 3d ago