We raised $3M for agent-native runners

Release obsolete PR cache space after merge

Delete a merged PR's caches so the space goes back to live branches.

How OpenAI used this technique

Read what OpenAI changed and follow the original sources.

Release obsolete PR cache space after merge

Codex Security added a workflow that runs when a PR merges into main and deletes only that PR's merge-ref caches, returning their space to live branches. It runs base-owned code with no checkout and a job-level Actions write permission.

Inventory: 33 entries, 5.11 GB across five merged PRs Source

Use it when
A cache inventory shows merged PR caches taking space during bursts.
Before applying it
The cleanup is one more job, and a manual rerun of the merged PR starts cold.

Company Playbooks