Who it is forA designer or hobbyist generating many images with GPT in one long Codex task, whose requests start failing as the history grows.
The problemCodex resends every image in the task history with each request, so after a dozen or so images the connection drops and retries fail.
The outcomeUnwanted images become short placeholders from the next message on, and the task and conversation stay the same.
What you need first
- The Codex desktop app, or the Code tab in Claude Desktop signed in with your Claude subscription
- Node 24 or later on your PATH, only if you use Claude Desktop without Codex
- The claude command from Claude Code, only for the Claude Desktop install path
Steps
- On the Plugins page in Codex, click Add a marketplace, enter
chipfighter/context-attachment-manageras the Source, and click Add marketplace. - Install Context Attachment Manager from the list, then restart Codex if Context Assets does not appear.
- Open a task, click Toggle side panel at the top right, open a new tab with +, and choose Context Assets under Plugins and MCPs.
- If the panel says the plugin is not enabled, click Enable plugin and restart Codex.
- Uncheck Send on images you no longer need, or uncheck a whole turn at the end of its line, then send your next message and check the savings card.
Prompt for your agent
Using the repo chipfighter/context-attachment-manager, install the plugin in the Codex desktop app for the task <task name>, then uncheck the images from turns older than <turn number> in the Context Assets panel. Report the estimated size of the next request shown in the savings card, and confirm that the unchecked images appear as placeholders in the next message.
Caveat. The README reports tests on Windows with Codex 26.1013 only, and macOS and Linux have not been tried in the desktop apps.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for chipfighter/context-attachment-manager and "Keep a long Codex image task going by unchecking old images"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer