Repolode
chipfighter

chipfighter/context-attachment-manager

A plugin for AI coding agents that keeps earlier images out of each request and lets the model pull back only the ones it needs.

Stars
788
Forks
68
Open issues
0
Last commit
yesterday

What is it?

Multimodal models do not remember anything between turns, so every request resends the whole chat, including every earlier image. In a long session with many screenshots or generated pictures, each message can grow to tens of megabytes, slowing the chat and causing reconnect failures.

Context Attachment Manager is a plugin that manages those images automatically. Earlier images are left out of outgoing messages, the model records what each image shows and what the user said about it, and it pulls back a specific image by id when it needs one. Users can pin an image so it is sent with every message, or turn off auto-select to choose images themselves.

In Codex and Claude Desktop, a side panel lets you search images by description, filter them, and view them full size. On other supported agents, auto-select works without the panel. The plugin runs locally and only sends the requests the agent already makes.

Key features

  • 01Keeps earlier images out of each request while the model can still retrieve them.
  • 02Lets the model fetch a specific image by id when it needs one.
  • 03Pin images to be sent with every message.
  • 04Search, filter and preview images in a side panel in Codex and Claude Desktop.
  • 05Works across Windows, macOS and Linux with many coding agents.

Use cases

  • Generating many keyframes, posters or product shots in one chat session.
  • Reading long scanned PDFs where every page is an image.
  • Letting an agent drive a browser or desktop with a screenshot at every step.
  • Discussing a set of photos or charts over many turns without the chat slowing down.

Quick start

  1. 1

    Paste the install prompt to your agent (Codex, Claude Desktop Code tab, or another supported agent)

    Install the Context Attachment Manager plugin for me, following https://github.com/chipfighter/context-attachment-manager/blob/main/INSTALL.md
  2. 2

    Restart the agent (in Claude Desktop, start a new session)

Things to know

  • Install is done by pasting a prompt to an agent and following INSTALL.md, not a package-manager command.
  • Full panel UI is only available in Codex and Claude Desktop; other agents get auto-select only.
  • Only helps with image-heavy chats; the README notes it can cost about 30% more in a short chat.

In collections

Topics

FAQ

What is context-attachment-manager?
A plugin for AI coding agents that keeps earlier images out of each request and lets the model pull back only the ones it needs. Multimodal models do not remember anything between turns, so every request resends the whole chat, including every earlier image. In a long session with many screenshots or generated pictures, each message can grow to tens of megabytes, slowing the chat and causing reconnect failures.
Is context-attachment-manager free to use? What license does it have?
context-attachment-manager is open source under the MIT license. Check the license terms before using it in commercial products.
Is context-attachment-manager still maintained?
Actively maintained. The last commit to context-attachment-manager was on Nov 6, 2026.
What can I use context-attachment-manager for?
Generating many keyframes, posters or product shots in one chat session. Reading long scanned PDFs where every page is an image. Letting an agent drive a browser or desktop with a screenshot at every step. Discussing a set of photos or charts over many turns without the chat slowing down.
How do I install context-attachment-manager?
Paste the install prompt to your agent (Codex, Claude Desktop Code tab, or another supported agent): Install the Context Attachment Manager plugin for me, following https://github.com/chipfighter/context-attachment-manager/blob/main/INSTALL.md Restart the agent (in Claude Desktop, start a new session)
Where can I get context-attachment-manager?
The source code and installation instructions are on GitHub: https://github.com/chipfighter/context-attachment-manager

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects