Who it is forA Codex user in a long image task who wants smaller requests without picking each image by hand every turn.
The problemChoosing which old images to keep for every new message is tedious, and a turn may need an earlier image the user forgot to keep.
The outcomeThe model replies with need IMG-xxx when it needs an image, and you can click the ID in the bar at the top of the panel to bring it back for that turn.
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
- Open Context Assets in the side panel of a Codex task.
- Confirm that Auto-select at the bottom of the panel is on, which is the default for new tasks.
- Mark any reference image, such as a face or style sample, as Send every turn so it goes with every message.
- When the model replies with need IMG-xxx, click the ID in the bar at the top of the panel to bring that image back for the current turn.
- Check the panel for images the model fetched in the latest turn.
Prompt for your agent
Using the repo chipfighter/context-attachment-manager in Codex, keep Auto-select on for the task <task name> and mark <reference image ID> as Send every turn. Ask the model to continue the image work, then list which IDs it requested with need IMG-xxx and confirm that the fetched images are the only earlier ones sent that turn.
Caveat. Auto-select works only with the Codex and Claude Code proxy in place, so an install that stops because openai_base_url is already set will not enable it.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for chipfighter/context-attachment-manager and "Let the model fetch only the images it needs with Auto-select"
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