Show HN: Code-mode – keep MCP tool results out of Claude Code's context
Category: devtools
Tags: mcp, claude-code, context-optimization, sandbox, agentic
Score: 7.0/10 (Innovation: 7, Technical: 7, Documentation: 8, Utility: 6)
Code-mode is a Claude Code plugin that lets the AI write a single JavaScript program to call multiple MCP tools in a sandbox, filtering and joining results before returning only the final answer to the model. This reduces context window usage and token costs, with measured benchmarks showing lower cost per task. It's interesting because it addresses a real pain point in agentic workflows where raw tool outputs flood the context.
Target audience: AI engineers, backend developers, and developers using Claude Code with MCP tools
Repository: https://github.com/gabe4coding/claude-code-mode · TypeScript · MIT · 8 stars
View on Hacker News