Context Attachment Manager
A local plugin that replaces earlier images in agent chats with ID-based placeholders the model can fetch back on demand.
At a Glance
Free, open-source local plugin under the MIT license.
Engagement
Available On
Alternatives
Listed Nov 2026
About Context Attachment Manager
Context Attachment Manager is an open-source local plugin by chipfighter for image-heavy chats in Codex, Claude Code and other coding agents. It numbers each image (IMG-001, IMG-002, and so on) and sends earlier images as short placeholders rather than resending them with every message. The model fetches an original by its ID when it needs to look at it again.
What It Is
The plugin addresses a common problem in long agent chats: the agent normally resends every earlier image with each message, which slows the chat and can stop requests from going through. The plugin keeps original images and chat history untouched on your computer, and requests still go to the service your agent already uses. It is on by default and does not require opening its panel. The README lists image and video creation, scanned documents, and computer and browser use as typical cases.
How Placeholders and Fetching Work
- Each image gets an ID, and earlier images are sent as short placeholders.
- The model records a one-line note on what each image shows, plus your comments. These notes stay in the placeholders, also after the chat is compacted.
- When the model needs an earlier image, it retrieves the original (not a smaller copy or a summary) by ID. The original is attached at the end of the current turn.
Prompt Cache Design
A placeholder is written once and then stays the same, so earlier turns can still be read from the model's prompt cache. The README documents the tradeoff: after a turn with images, the rest of that turn is processed again once, and changing an old image in the panel causes what follows it to be processed again. In its Claude Code long-task comparison, the project reports 87% of input read from cache with the plugin versus 91% without. For a Codex chat with nine keyframes, it reports requests of 0.12 MB with the plugin versus 42.4 MB without.
The Panel and Supported Agents
An optional panel lets you search images by a remembered detail or comment, mark an image as Send every turn, or turn off Auto-select and choose images yourself. In Codex it appears as Context Assets in the task's side panel; in Claude Desktop's Code tab it opens automatically when images are present, and /cam brings it back. Codex and Claude Code are tested. Adapters exist for WorkBuddy, OpenCode, Gemini CLI, pi, DeepSeek Harness, Qwen Code, Cline, Kilo Code, goose and Cherry Studio, but the README says these have not been tested live yet.
Setup Path
You can send your agent an install instruction pointing to the project's INSTALL.md, then restart the agent (in Claude Desktop, start a new Code session). In Codex it can also be installed from the Plugins page.
Community Discussions
Be the first to start a conversation about Context Attachment Manager
Share your experience with Context Attachment Manager, ask questions, or help others learn from your insights.
Pricing
Open Source
Free, open-source local plugin under the MIT license.
- MIT License
- Runs locally on your computer
- Auto-select of earlier images with placeholders
- Panel in Codex and Claude Desktop
- Adapters for WorkBuddy, OpenCode, Gemini CLI, pi, DeepSeek Harness, Qwen Code, Cline, Kilo Code, goose and Cherry Studio (not tested live yet)
Capabilities
Key Features
- Numbered image IDs (IMG-001, IMG-002, ...)
- Earlier images sent as short placeholders
- Model fetches original images by ID, also after compaction
- One-line image notes plus user comments persisted in placeholders
- Prompt-cache-friendly placeholder design
- Auto-select of earlier images
- Panel for searching images by detail or comment
- Send every turn option for reference images
- Manual image selection with Auto-select off
- Originals and chat history are never deleted
- Runs locally
