context-attachment-manager
Claude Desktop용 플러그인, 다음 메시지에 사용할 과거 이미지 선택 가능
Claude Code의 MCP 도구용 코드 모드, 다중 호출 대신 하나의 샌드박스 JavaScript 프로그램
Code mode for MCP tools in Claude Code: one sandboxed JavaScript program instead of many tool calls
플러그인TypeScript · JavaScriptGitHub @gabe4coding직접 설치운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
설치형 프로젝트는 배포 도메인 없이도 확인할 수 있습니다. 개인 저장소는 GitHub 로그인으로, 조직 저장소는 위의 저장소 확인 파일로 직접 확인해 주세요.
메이커가 쓴 소개는 위의 한 줄이 전부입니다. 더 자세한 내용은 저장소 README에서 읽을 수 있습니다. 저장소 README ↗
README 전체를 불러오는 중입니다.
README 전문 보기 ↗Needs Claude Code and Node.js 22.13+. No dependencies. In a Claude Code session:
/plugin marketplace add gabe4coding/claude-code-mode
/plugin install code-mode@claude-code-mode
Start a new session and ask for anything that needs several MCP calls. Using auto mode with Claude Code older than 2.1.301? Add allow rules first: Permissions.
The full film with sound:
https://github.com/user-attachments/assets/468c412f-ecae-4e04-a53b-8a291561a052
| Without code-mode | With code-mode |
|---|---|
| Claude calls tools one by one | Claude writes one program |
| Every full result lands in context | Results are filtered in a sandbox |
| Context fills with raw JSON | Only the answer comes back |
unshare -rn works.The bench in bench/ runs six tasks in headless Claude Code against a fake MCP server.
Each task has traps: pages, nested fields, bots and results larger than 20,000 characters.
Haiku 5.5, without and with code-mode (5 runs of each task, plugin 0.6.0 and 0.6.1, 2026-10-10). In 0.6.0 the code-mode start line did not reach the model, so Haiku called most tools directly.
| Tools called directly (0.6.0) | Through code-mode (0.6.1) | |
|---|---|---|
| Share of MCP calls made directly | 89% | 2% |
| Correct answers | 30/30 | 30/30 |
| Cost per task | $0.007 | $0.004 |
| Input tokens per task | 167,297 | 149,995 |
| Output tokens per task | 1,814 | 1,194 |
| Seconds per task | 13.5 | 11.6 |
Opus 5.5, output projection off and on: duplicate MCP calls per task went from 1.37 to 0.10. Cost and correct answers did not change. Refer to PR #11.
Limits: these are bench tasks in headless runs. Interactive sessions were not measured. Most input tokens are the fixed context of Claude Code, so the input saving is smaller than the cost saving. To run the bench again, refer to Development.
"Which of my open Jira issues have no update in the last 14 days?"
const issues = await call("mcp__claude_ai_Jira__searchJiraIssuesUsingJql", {
cloudId: "example.atlassian.net",
jql: "assignee = currentUser() AND statusCategory != Done",
})
const cutoff = Date.now() - 14 * 24 * 3600 * 1000
return issues.issues
.filter(i => Date.parse(i.fields.updated) < cutoff)
.map(i => ({ key: i.key, title: i.fields.summary }))
Claude sees a short list of keys and titles, not every full issue.
| Page | |
|---|---|
| Installation | Requirements, install, local folder, update |
| Usage | The three tools, how to write a program, the result |
| Hints | Write hints, approve proposals, the safety rules |
| Saved functions | Approve or write functions that programs use again |
| Permissions | Manual and auto mode, allow rules |
| Configuration | Every option and its default |
| How it works | One run from start to end, the four sandbox layers |
| Troubleshooting | Common errors and known limits |
| Development | Layout, tests, releases |
Issues and PRs welcome. If code-mode saves you tokens, a ⭐ helps others find it.
MIT. See LICENSE.