by mksglu
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, OMP, OpenCode, Gemini CLI, Copilot CLI and 4 more agents. Zero telemetry.
# Add to your Claude Code skills
git clone https://github.com/mksglu/context-modeLast scanned: 11/28/2026
{
"issues": [
{
"type": "npm-audit",
"message": "esbuild: esbuild enables any website to send any requests to the development server and read the response",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "zod: Zod can exhaust memory while validating oversized constrained collections",
"severity": "high"
}
],
"status": "WARNING",
"scannedAt": "2026-11-28T20:58:12.033Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}context-mode is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by mksglu. 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, OMP, OpenCode, Gemini CLI, Copilot CLI and 4 more agents. Zero telemetry. It has 34,583 GitHub stars.
context-mode returned warnings in AgentsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.
Clone the repository with "git clone https://github.com/mksglu/context-mode" and add it to your Claude Code skills directory (see the Installation section above).
context-mode is primarily written in JavaScript. It is open-source under mksglu on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh context-mode against similar tools.
No comments yet. Be the first to share your thoughts!
Requires a passing catalog security scan. Resolve the flagged issues and resubmit to enable featuring.
A free, local plugin for 11 coding agents. It keeps tool output out of your agent's context window and keeps all usage data on your machine. The plugin is free forever.
35K GitHub stars · 978K npm downloads (read 2026-11-29, stats.json) · on the Hacker News front page and GitHub Trending: charts and sources
The Context Mode plugin is free and local, with its source open on GitHub. Context Mode Gateway is a separate hosted service with its own account and subscription. It takes the same idea from tool output to the whole conversation: Gateway Recall keeps long sessions searchable, and Gateway Memory shares what your agents learn across sessions and tools. See how the Gateway works
Contents: Why · Adoption · Install · Try it · Use cases · Benchmarks · How it works · Tools · Security and privacy · Context Mode Gateway · License · Community
A coding agent reads files, runs commands and fetches pages, and every result goes into its context window. The Context Mode plugin runs that work in a local sandbox, keeps the full output in a SQLite index on your machine, and gives the agent the part it asks for.
~/.context-mode: one context.db per project.Open the interactive chart and point at a bar to read its value. Tabs there show days, weeks, months and years. Stars come from the GitHub GraphQL API (starredAt); npm downloads come from api.npmjs.org/downloads/range. The total up to 2026-10-29 is 683K npm downloads (stats.json keeps a daily copy). A daily job redraws both charts.
Starred by engineers at these companies: each name is the company field of 2 or more stargazer profiles, read with the GitHub GraphQL API on 2026-11-01 (data).
Pick your agent: Claude Code · Codex · Gemini CLI · Qwen Code · Pi · OMP · OpenCode · Copilot CLI · Kiro · VS Code · ZCode
Open its block and copy its own install command. Each block also holds the update, check and remove steps, and the Install guide walks through them.
The plugin needs Node 24.15.0 or later, from the engines field in package.json. On Windows, add Git for Windows: the shell tools run in Git Bash, and doctor checks for it.
contextmode installs as the npm package and command context-mode.
Claude Code, Codex, Gemini CLI and Qwen Code install from GitHub, and each of their commands names the release branch.
claude plugin marketplace add mksglu/context-mode
claude plugin install context-mode@context-mode
# update
claude plugin update context-mode@context-mode
# check
claude plugin list
# remove
claude plugin marketplace remove context-mode
Hooks ✓ (package) · MCP ✓ · Skills ✓
codex plugin marketplace add mksglu/context-mode
codex plugin add context-mode@context-mode
# one-time step: trust the plugin hooks
npm i -g context-mode
context-mode setup --agents codex
# update
codex plugin marketplace upgrade context-mode
# check
codex mcp list
# remove
codex plugin remove context-mode@context-mode
Hooks ✓ (hook file) · MCP ✓ · Skills ✓
gemini extensions install https://github.com/mksglu/context-mode
# update
gemini extensions update context-mode
# check
GEMINI_CLI_TRUST_WORKSPACE=true gemini mcp list
# remove
gemini extensions uninstall context-mode
Hooks ✓ (package) · MCP ✓ · Skills ✓
qwen extensions install https://github.com/mksglu/context-mode:context-mode
# update
qwen extensions update context-mode
# check
qwen extensions list
# remove
qwen extensions uninstall context-mode
Hooks ✓ (package) · MCP ✓ · Skills ✓
pi install npm:context-mode
# update
pi update --extensions
# check
pi list
# remove
pi remove npm:context-mode
Hooks ✓ (the plugin's own event handlers) · MCP ✓ (ctx tools built into the plugin) · Skills ✓
omp plugin install context-mode
# update
omp plugin upgrade context-mode
# check
omp plugin list
# remove
omp plugin uninstall context-mode
Hooks ✓ (the plugin's own event handlers) · MCP ✓ (ctx tools built into the plugin) · Skills ✓
opencode plugin add context-mode
# update
opencode plugin update
# check
opencode mcp list --pure # OpenCode 1.19
opencode mcp list --standalone # OpenCode 2
# remove
opencode plugin remove context-mode
Hooks ✓ (the plugin's own event handlers) · MCP ✓ · Skills ✓
npm i -g context-mode
context-mode setup --agents copilot-cli
# update
context-mode upgrade
# check
context-mode doctor --agents copilot-cli
copilot mcp list
# remove
context-mode setup --remove --agents copilot-cli
Hooks ✓ (hook file) · MCP ✓ · Skills ✓
npm i -g context-mode
context-mode setup --agents kiro
# update
context-mode upgrade
# check
context-mode doctor --agents kiro
# remove
context-mode setup --remove