context-attachment-manager
A local plugin for image-heavy chats in Codex, Claude Code and other AI agents: earlier images become short placeholders instead of going out with every message
What is context-attachment-manager?
A local plugin for image-heavy chats in Codex, Claude Code and other AI agents: earlier images become short placeholders instead of going out with every message, the model fetches the original back by its ID (also after compaction), and the prompt cache keeps working.
Overview of context-attachment-manager
What it is
Context Attachment Manager is an open-source plugin for Codex and Claude Desktop that reduces the size of image-heavy chat requests. It lets the model manage its own image attachments, pulling back only the images it needs instead of sending every image with every message. Users can search for any previously created image by describing what they remember.
Key features
- The model manages its own images; earlier images stay out of messages and are pulled back automatically when needed.
- Users can pin important images (e.g., a character reference) to send with every message.
- Search for any image by describing it (e.g., “best face” or “rainy night”), filter by place, or browse by turn.
- The plugin remembers what each image shows and what the user said about it, even after the chat is compacted.
- Keeps the chat lightweight; in a 15-image task, a request that previously carried 24.9 MB went out at 212 KB.
Use cases
- Iterating on images with GPT in Codex without the chat failing due to large message sizes.
- Maintaining long image chats in Claude Desktop without slowdowns or reconnection issues.
- Quickly finding and reusing any image created earlier in a conversation by describing it.
Getting started
Paste this to Codex, or to Claude in Claude Desktop's Code tab:Install the Context Attachment Manager plugin for me, following https://github.com/chipfighter/context-attachment-manager/blob/main/INSTALL.mdThen restart Codex, or start a new session in Claude. To install or uninstall it yourself, see INSTALL.md.
License and pricing
This project is open source under the MIT License.
Based on the project's public README and repository metadata.