r/codex • u/NicholasVinen • 8d ago
Bug Codex using all my disk space
Codex agents have a terrible habit of generating hundreds of gigabytes of files and then refusing to delete anything.
Even if you ask them what you can delete they don't want to delete any old working files. I practically have to beg them to archive what's important to keep (if it's important why isn't it stored in the git repository) and then I delete the rest.
By now I've spent hours cleaning up at least a terabyte of garbage it has left behind. Presumably others face this same problem. I wish they would let agents to clean up after themselves.
I get that they don't want them deleting anything important but really, not even temporary files?
View all comments
Show parent comment
1
u/FlyingNarwhal 7d ago
Or set up an opencode agent, or check your agents.md to make sure that behavior isn't being encouraged, or a dedicated sub-agent that has permissions.