codex-attachment-manager

by chipfighter · ★ 839 · updated 4 days ago

PanesGuardsCommandswarnings

0

For Claude Code sessions with many images or PDFs: earlier images and PDFs go out as short placeholders instead of being sent again with every message, the model fetches the original back by its ID (also after compaction), and the prompt cache keeps working.

install codex-attachment-manager

Install

git clone https://github.com/chipfighter/context-attachment-manager
claude --plugin-dir ./context-attachment-manager

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startclassic.SessionStartturn.startturn.completesession.endcommand.runtool.callclassic.PreToolUseui.render
API calls
$.clock.after$.clock.now$.clock.sleep$.command.register$.env.get$.env.set$.http.fetch$.mcp.call$.session.id$.state.get$.state.set$.store.get$.store.set$.ui.copy$.ui.invalidate$.ui.open$.ui.resolve
Draws
Pane
Can see
classic hooksevery tool call
Reach
level 3 of 3 networkMCP serverssets env varswrites the clipboardreads env varsreads mod statepersists statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/chipfighter/context-attachment-manager
Path in repo
repository root
Source commit
cc6421e the exact code the scan read
Author
@chipfighter
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

Other mods in Panes, close to this one by stars.