Skip to content

A local plugin for image-heavy chats in Codex, Claude Code and other agents: earlier images stop going out with every message, and the model fetches the one it needs by its ID, also after compaction.

chore: 项目改名为 Context Attachment Manager,链接换成新仓库

chipfighter540e03bde216
diff --git a/.agents/plugins/marketplace.json b/.agents/plugins/marketplace.json
index 89ba143..ced24af 100644
--- a/.agents/plugins/marketplace.json
+++ b/.agents/plugins/marketplace.json
@@ -1,7 +1,7 @@
{
"name": "codex-attachment-manager",
"interface": {
- "displayName": "Codex Attachment Manager"
+ "displayName": "Context Attachment Manager"
},
"plugins": [
{
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
index c682927..50dd3e7 100644
--- a/.claude-plugin/marketplace.json
+++ b/.claude-plugin/marketplace.json
@@ -3,7 +3,7 @@
"owner": {
"name": "chipfighter"
},
- "description": "Codex Attachment Manager for Claude Code: choose which past images go to the model with your next message.",
+ "description": "Context Attachment Manager for Claude Code: choose which past images go to the model with your next message.",
"plugins": [
{
"name": "codex-attachment-manager",
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
index 1617895..7208b88 100644
--- a/.claude-plugin/plugin.json
+++ b/.claude-plugin/plugin.json
@@ -1,13 +1,13 @@
{
"name": "codex-attachment-manager",
- "displayName": "Codex Attachment Manager",
+ "displayName": "Context Attachment Manager",
"version": "0.3.0",
"description": "Choose which images from a Claude Code session's history go out with the next message. Unchecked images become short placeholders; the session and the conversation stay the same.",
"author": {
"name": "chipfighter"
},
- "homepage": "https://github.com/chipfighter/codex-attachment-manager",
- "repository": "https://github.com/chipfighter/codex-attachment-manager",
+ "homepage": "https://github.com/chipfighter/context-attachment-manager",
+ "repository": "https://github.com/chipfighter/context-attachment-manager",
"license": "MIT",
"keywords": ["images", "context", "attachments", "proxy"],
"mcpServers": {
diff --git a/AGENTS.md b/AGENTS.md
index a77eb3a..838c68c 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,6 +1,6 @@
# AGENTS.md
-Codex Attachment Manager(上下文素材管理器):让用户逐轮决定,Codex 任务里的哪些图片和文件进入下一轮请求。
+Context Attachment Manager(上下文素材管理器,2026-10-11 前叫 Codex Attachment Manager):让用户逐轮决定,Codex 任务和 Claude Code 会话里的哪些图片和文件进入下一轮请求。
## 从哪里读起
diff --git a/SECURITY.md b/SECURITY.md
index 2c822b0..3f7b651 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -6,7 +6,7 @@ Security fixes go into the latest release only.
## Reporting a vulnerability
-Please don't report security problems in public issues. Use GitHub's private vulnerability reporting instead: on the repository's **Security** tab, click **Report a vulnerability**, or go straight to [the report form](https://github.com/chipfighter/codex-attachment-manager/security/advisories/new). Only you and the maintainer can see the report.
+Please don't report security problems in public issues. Use GitHub's private vulnerability reporting instead: on the repository's **Security** tab, click **Report a vulnerability**, or go straight to [the report form](https://github.com/chipfighter/context-attachment-manager/security/advisories/new). Only you and the maintainer can see the report.
Please include what you found, how to reproduce it, and the plugin version and platform you used.
diff --git a/hooks/register.js b/hooks/register.js
index df04915..7d37e45 100644
--- a/hooks/register.js
+++ b/hooks/register.js
@@ -228,7 +228,7 @@ async function drawPane($, e) {
export function register(on) {
on('session.start', async ($, e, next) => {
- await $.command.register({ name: 'cam', description: 'Context assets: open the panel to choose which images go to the model (Codex Attachment Manager)', immediate: true })
+ await $.command.register({ name: 'cam', description: 'Context assets: open the panel to choose which images go to the model (Context Attachment Manager)', immediate: true })
// Before the first request where possible: a resumed session's unchecked images must not go out with it. The
// engine usually answers at once; one the plugin's MCP server is still starting gets a few seconds here, then the
// rest of the wait goes on in the background.
diff --git a/plugin/.codex-plugin/plugin.json b/plugin/.codex-plugin/plugin.json
index 86cd65a..6875e2b 100644
--- a/plugin/.codex-plugin/plugin.json
+++ b/plugin/.codex-plugin/plugin.json
@@ -5,19 +5,19 @@
"author": {
"name": "chipfighter"
},
- "homepage": "https://github.com/chipfighter/codex-attachment-manager",
- "repository": "https://github.com/chipfighter/codex-attachment-manager",
+ "homepage": "https://github.com/chipfighter/context-attachment-manager",
+ "repository": "https://github.com/chipfighter/context-attachment-manager",
"license": "MIT",
"keywords": ["codex", "images", "context", "attachments", "mcp-app", "proxy"],
"mcpServers": "./.mcp.json",
"interface": {
- "displayName": "Codex Attachment Manager",
+ "displayName": "Context Attachment Manager",
"shortDescription": "Choose which past images go to the model with your next message",
"longDescription": "In long tasks, images pile up in the context turn after turn. This plugin lists every image in the task's history, in order, in Codex's side panel: checked images are sent as usual, unchecked ones become short placeholders (pointing to an identical image when one is still being sent). The task stays the same and the conversation goes on. When the model needs an image, it replies \"need IMG-xxx\", and you decide whether to send it. All data stays on your machine; nothing is sent anywhere besides the requests Codex already makes to OpenAI. After installing, open the panel (side panel → New tab → Plugins and MCPs → Context Assets), click \"Enable plugin\", then restart Codex. Before removing the plugin, click \"Disable plugin\" in the panel first. The panel follows Codex's language: Simplified Chinese or English.\n\n长任务里的图片会一轮轮累积在上下文里。这个插件在 Codex 右侧的侧边面板里,按时间顺序列出任务历史里的全部图片:勾选的照常发送,取消的换成占位符(有内容相同的图还在发送时,指向那一张)。任务不换,对话连续。模型需要某张图时会回复“需要 IMG-xxx”,给不给由你决定。所有数据只留在本机;除了 Codex 本来就要发给 OpenAI 的请求,不向任何地方发送数据。装好后打开面板(侧边面板 → 新建标签页 → 插件和 MCP → 上下文素材),点“启用插件”,再重启 Codex。移除插件前,请先在面板里点“停用插件”。面板跟随 Codex 的界面语言,支持简体中文和英文。",
"developerName": "chipfighter",
"category": "Productivity",
"capabilities": ["Interactive", "Read", "Write"],
- "websiteURL": "https://github.com/chipfighter/codex-attachment-manager",
+ "websiteURL": "https://github.com/chipfighter/context-attachment-manager",
"brandColor": "#339CFF",
"logo": "./assets/logo.png",
"composerIcon": "./assets/logo.png"
diff --git a/plugin/SECURITY.md b/plugin/SECURITY.md
index 1379070..3a771db 100644
--- a/plugin/SECURITY.md
+++ b/plugin/SECURITY.md
@@ -1,7 +1,7 @@
# Security Policy
-This directory is the plugin bundle of [Codex Attachment Manager](https://github.com/chipfighter/codex-attachment-manager).
+This directory is the plugin bundle of [Context Attachment Manager](https://github.com/chipfighter/context-attachment-manager).
-Please don't report security problems in public issues. Use GitHub's private vulnerability reporting instead: [report a vulnerability](https://github.com/chipfighter/codex-attachment-manager/security/advisories/new). Only you and the maintainer can see the report.
+Please don't report security problems in public issues. Use GitHub's private vulnerability reporting instead: [report a vulnerability](https://github.com/chipfighter/context-attachment-manager/security/advisories/new). Only you and the maintainer can see the report.
-The full policy, including what is most worth reporting, is in the repository's [SECURITY.md](https://github.com/chipfighter/codex-attachment-manager/blob/main/SECURITY.md).
+The full policy, including what is most worth reporting, is in the repository's [SECURITY.md](https://github.com/chipfighter/context-attachment-manager/blob/main/SECURITY.md).
diff --git a/plugin/src/messages.ts b/plugin/src/messages.ts
index 99734ea..710f2c2 100644
--- a/plugin/src/messages.ts
+++ b/plugin/src/messages.ts
@@ -92,7 +92,7 @@ const en: Record<keyof typeof zh, string> = {
"tool.setup.description": "Used by the panel: route Codex through the local proxy (enable) or connect directly again (disable); takes effect after Codex restarts. Only the user can do this; calls from the model are refused.",
"tool.bind.title": "Context Assets: switch to the new task",
"tool.bind.description": "Used by the panel: a panel opened on a new chat before its first message switches to the task the user just started. Only the user can do this; calls from the model are refused.",
- "server.title": "Codex Attachment Manager",
+ "server.title": "Context Attachment Manager",
"resource.name": "Context Assets panel",
"call.noThread": "Which task? The threadId is missing.",
"call.summary": "Images: {images}, unchecked: {unchecked}.",
diff --git a/scripts/install.ps1 b/scripts/install.ps1
index f213af0..69587ed 100644
--- a/scripts/install.ps1
+++ b/scripts/install.ps1
@@ -1,5 +1,5 @@
# Purpose: v0.1-5 - install the Codex attachment manager on Windows in one line, without opening GitHub:
-# irm https://github.com/chipfighter/codex-attachment-manager/releases/latest/download/install.ps1 | iex
+# irm https://github.com/chipfighter/context-attachment-manager/releases/latest/download/install.ps1 | iex
# Codex's own command line adds this repository as a plugin marketplace and installs the plugin; the installed plugin
# then points Codex at its local engine (cam setup) and starts it. Running it again upgrades. Restart Codex afterwards.
# Input: CAM_REF (a tag or branch; a release sets its own tag), CAM_SOURCE (a local checkout, for tests),
@@ -9,7 +9,7 @@
& {
$ErrorActionPreference = 'Stop'
- $repo = 'chipfighter/codex-attachment-manager'
+ $repo = 'chipfighter/context-attachment-manager'
$name = 'codex-attachment-manager'
$plugin = "$name@$name"
diff --git a/scripts/install.sh b/scripts/install.sh
index 5c26e38..1e44c32 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -1,13 +1,13 @@
#!/bin/sh
# Purpose: v0.1-5 - install the Codex attachment manager on macOS or Linux in one line, without opening GitHub:
-# curl -fsSL https://github.com/chipfighter/codex-attachment-manager/releases/latest/download/install.sh | sh
+# curl -fsSL https://github.com/chipfighter/context-attachment-manager/releases/latest/download/install.sh | sh
# Codex's own command line adds this repository as a plugin marketplace and installs the plugin; the installed plugin
# then points Codex at its local engine (cam setup) and starts it. Running it again upgrades. Restart Codex afterwards.
# Input: CAM_REF (a tag or branch; a release sets its own tag), CAM_SOURCE (a local checkout, for tests),
# CODEX_CLI_PATH, CODEX_HOME. Output: Codex's plugin cache, config.toml (backed up first) and, when needed, .env.
set -eu
-repo=chipfighter/codex-attachment-manager
+repo=chipfighter/context-attachment-manager
name=codex-attachment-manager
plugin="$name@$name"
diff --git a/scripts/uninstall.ps1 b/scripts/uninstall.ps1
index 63925aa..95b0773 100644
--- a/scripts/uninstall.ps1
+++ b/scripts/uninstall.ps1
@@ -1,6 +1,6 @@
# Purpose: v0.1-5 - remove the Codex attachment manager on Windows in one line; also the way back when Codex cannot
# connect because the plugin was removed without turning it off in the panel first:
-# irm https://github.com/chipfighter/codex-attachment-manager/releases/latest/download/uninstall.ps1 | iex
+# irm https://github.com/chipfighter/context-attachment-manager/releases/latest/download/uninstall.ps1 | iex
# Takes out only the marked blocks this tool wrote to config.toml and .env (config.toml is backed up first), then removes
# the plugin and its marketplace with Codex's own command line. Needs neither Node nor any of the plugin's files.
# Input: CODEX_HOME, CAM_DATA_DIR, CODEX_CLI_PATH. Output: config.toml, .env, Codex's plugin cache.
diff --git a/scripts/uninstall.sh b/scripts/uninstall.sh
index cede7db..cd1ffec 100755
--- a/scripts/uninstall.sh
+++ b/scripts/uninstall.sh
@@ -1,7 +1,7 @@
#!/bin/sh
# Purpose: v0.1-5 - remove the Codex attachment manager on macOS or Linux in one line; also the way back when Codex
# cannot connect because the plugin was removed without turning it off in the panel first:
-# curl -fsSL https://github.com/chipfighter/codex-attachment-manager/releases/latest/download/uninstall.sh | sh
+# curl -fsSL https://github.com/chipfighter/context-attachment-manager/releases/latest/download/uninstall.sh | sh
# Takes out only the marked blocks this tool wrote to config.toml and .env (config.toml is backed up first), then removes
# the plugin and its marketplace with Codex's own command line. Needs neither Node nor any of the plugin's files.
# Input: CODEX_HOME, CAM_DATA_DIR, XDG_DATA_HOME, CODEX_CLI_PATH. Output: config.toml, .env, Codex's plugin cache.