# mksglu/context\-mode

Context Mode: Local Plugin to Optimize AI Coding Agent Context

- HackerByte page: <https://hackerbyte.net/en/projects/context-mode-local-plugin-to-optimize-ai-coding-agent-context-1164477708>
- GitHub: <https://github.com/mksglu/context-mode>
- Programming language: JavaScript

Free, local plugin that keeps tool output out of your coding agent's context window. Sandbox and SQLite FTS5 search, 99% fewer bytes in context. Works with Claude Code, Codex, Pi, OpenCode, Gemini CLI, Copilot CLI and 4 more agents. Zero telemetry.

## AI-generated summary

Context Mode is a free, local plugin designed to significantly reduce the amount of tool output fed into AI coding agents' context windows. By processing tool results in a local sandbox and storing them in a SQLite index, it sends only the necessary information to the agent, saving up to 99.8% of raw output bytes. This approach enhances efficiency, reduces costs associated with large context windows, and ensures user data remains on their machine.

## Key points

- Reduces context window usage by up to 99.8%, sending only essential data to AI agents.
- Operates locally on the user's machine with zero telemetry, keeping all usage data private.
- Supports a wide range of 10\+ coding agents including Claude Code, Codex, Gemini CLI, and Copilot CLI.
- Utilizes a local SQLite index for storing full tool outputs, enabling efficient retrieval.
- Offers advanced features like 'Thinking in Code' where agents script tasks instead of processing raw data.
