# Repository Briefing: chipfighter/context-attachment-manager
> Source: https://repoforai.com/repo/chipfighter/context-attachment-manager (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/chipfighter/context-attachment-manager
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A+ (91/100 · Maintenance 35/35 · Adoption 16/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.14.0 (2026-12-02) — https://github.com/chipfighter/context-attachment-manager/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: MCP, CLI
- **Momentum**: 841 ★ total (+1 24h / +18 7d) · 84 forks
- **Topics**: `ai-agents`, `claude`, `claude-code`, `claude-code-plugin`, `codex`, `codex-cli`, `codex-plugin`, `coding-agent`, `computer-use`, `context-engineering`, `context-management`, `context-window`
- **When to Use**: Best for: Long screenshot-driven debugging, visual QA or storyboard sessions where repeated image payloads threaten request delivery and later turns still need exact originals. Start with a live-tested host. Skip if: Sessions are mostly text or short, downsampling is sufficient, you need a hard guarantee that images never reach the model provider, or your deployment depends on an adapter you cannot validate.

## Overview
```text
### Architecture & Core Mechanics
Context Attachment Manager (CAM) uses a shared local attachment engine with agent-specific plugins and adapters. It rewrites the model-bound request rather than deleting assets from the saved conversation. An image goes out inline when introduced. On the next turn, CAM replaces it with a stable ID placeholder and a short note generated by the model. The same placeholder is reused across requests, so later exchanges do not keep moving the prompt-cache invalidation point backward.

When the model calls cam_view_image with an ID, CAM appends the full original to the current turn instead of editing the historical placeholder. The project is primarily TypeScript, with a local proxy used by Codex and Claude Code and a separate native, in-process Python plugin for Hermes Agent. The root contains cam and cam.cmd launchers plus plugin/ and hooks/. These integration paths share the attachment behavior, but they do not all run through the same process model.

### Key Capabilities & Differentiators
Auto-select keeps new and pinned images inline and replaces older attachments with placeholders. When tools produce many screenshots in one turn, CAM batches out the earlier ones while keeping the newest few in the request. The desktop panel supports search, browsing by character or place, manual selection and “Send every turn.” Claude Code also supports page-level retrieval for both text PDFs and scans under Auto-select. Codex does not send PDFs as files; pages converted to images follow the ordinary image path.

In one Codex conversation with nine keyframes, a request that failed to send after restart or compaction was 42.4 MB without CAM and 0.12 MB with it. In a separate 16-turn short-film comparison using Claude Code and Sonnet 5.5, post-compaction image questions scored 20/20 with CAM versus 8/20 without it. The largest request was 41,859 rather than 110,671 tokens, at about the same cost in that test. Payload size, recall quality and spend are distinct measures; these results do not establish a general latency or cost reduction.

### Trade-offs & Limitations
Native compaction is a better fit when the aim is to shorten the conversation as a whole. Resizing is simpler when coarse visual detail is enough. CAM addresses a narrower problem: carrying fewer old attachments without giving up the ability to inspect the exact original. It is not a lossless substitute for compaction of the whole conversation; it preserves access to the assets that the model can still identify and chooses to retrieve.

The first placeholder rewrite still causes the rest of that historical turn to be processed again once. Changing an older image’s selection or pinning can invalidate the cache from that point, while fetching an original adds a tool call and puts the full image back into the current request. Agent compaction or provider-side context editing can still invalidate the prefix independently. In one Claude Code long-task comparison, the cached-input share was 87% with CAM and 91% without it. Evaluate the plugin on request-size failures and post-compaction recall first; do not assume it will lower every bill.

### Hardware & Deployment Guide
Follow the agent-specific setup in INSTALL.md and restart the host; in Claude Desktop, start a new Code session. Codex also offers installation from its Plugins page. Codex and Claude Code have live-tested auto-selection and desktop panels. WorkBuddy, Gemini CLI, DeepSeek Harness and Hermes Agent are live-tested for auto-selection. Adapters for agents such as OpenCode, pi, Qwen Code and Cline have not been live-tested, so validate them with a representative workload before relying on them.

The local proxy has a Node.js runtime path; Hermes uses its native Python plugin. No separate GPU or VRAM requirement is specified, and running CAM locally does not move model inference off the agent’s configured backend. v0.13.2 improved shared proxy startup and memory use, v0.13.3 removed the visible Node console window on affected Windows setups, and v0.14.0 improved concurrent-session isolation and memory use while adding the Hermes plugin. Codex and Claude Code can install updates in the background and activate them on the next launch; review that behavior before a managed rollout.
```

## Key Capabilities
```text
- Cache locality: New images switch to stable placeholders on the following turn; recall appends the original instead of editing the prefix.
- Payload evidence: In one nine-keyframe Codex case, request size fell from 42.4 MB to 0.12 MB.
- Post-compaction recall: In a 16-turn Claude Code test with Sonnet 5.5, image-question accuracy was 20/20 with CAM versus 8/20 without it.
- Screenshot bursts: Older tool screenshots within a turn are replaced in batches while the newest few remain inline.
- Format boundary: Claude Code can recall selected pages of text or scanned PDFs; Codex handles pages converted to images as ordinary images.
- Integration maturity: Six agents are live-tested; desktop panels are available in Codex and Claude Desktop’s Code tab.
```

## Quick Start / Clone
```bash
Install Context Attachment Manager for me, following https://github.com/chipfighter/context-attachment-manager/blob/main/INSTALL.md
```
