[{"data":1,"prerenderedAt":4},["ShallowReactive",2],{"readme:context-mode":3},"\u003Ch1>Context Mode\u003C\u002Fh1>\n\u003Cp>\u003Cstrong>A free, local plugin for 10 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.\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fcontext-mode\" rel=\"nofollow ugc noopener\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fdt\u002Fcontext-mode?label=npm%20downloads\" alt=\"npm downloads\" \u002F>\u003C\u002Fa> \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fmksglu\u002Fcontext-mode\" rel=\"nofollow ugc noopener\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Fmksglu\u002Fcontext-mode?style=flat&amp;color=yellow\" alt=\"GitHub stars\" \u002F>\u003C\u002Fa> \u003Ca href=\"https:\u002F\u002Fdiscord.gg\u002FDCN9jUgN5v\" rel=\"nofollow ugc noopener\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fdiscord\u002F1478479412700909750?label=Discord&amp;logo=discord&amp;color=5865f2\" alt=\"Discord\" \u002F>\u003C\u002Fa> \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fmksglu\u002Fcontext-mode\u002Fblob\u002FHEAD\u002FLICENSE\" rel=\"nofollow ugc noopener\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-ELv2-blue.svg\" alt=\"License: ELv2\" \u002F>\u003C\u002Fa>\u003C\u002Fp>\n\u003Cp>\u003Cstrong>33K GitHub stars · 683K npm downloads\u003C\u002Fstrong> (read 2026-11-01, \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fmksglu\u002Fcontext-mode\u002Fblob\u002FHEAD\u002Fstats.json\" rel=\"nofollow ugc noopener\">stats.json\u003C\u002Fa>) · on the Hacker News front page and GitHub Trending: \u003Ca href=\"#adoption-stars-and-npm-downloads\" rel=\"nofollow ugc noopener\">charts and sources\u003C\u002Fa>\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>The Context Mode plugin is free and local, with its source open on GitHub. \u003Cstrong>Context Mode Gateway\u003C\u002Fstrong> 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. \u003Ca href=\"https:\u002F\u002Fcontextmode.ai\u002Fdocs\u002Fhow-saving-works?utm_source=github&amp;utm_medium=readme&amp;utm_content=quote\" rel=\"nofollow ugc noopener\">See how the Gateway works\u003C\u002Fa>\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fassets\u002Freadme\u002Fhero-dark.png\">\u003C\u002Fsource>\n  \u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fmksglu\u002Fcontext-mode\u002FHEAD\u002Fdocs\u002Fassets\u002Freadme\u002Fhero-light.png\" alt=\"Context Mode plugin: free and local, zero telemetry, the plugin keeps your data on your machine. Bench of 2026-11-01: 99.4% of output bytes saved (median of 36 rows with 10 KB or more of raw output). A full debugging session (row g-session-total): 281,261 B raw to 3,266 B in context, about 70K to 817 tokens (an estimate at 4 B per token). Resume after compaction (row e-long-session): a 442,893 B transcript to a 2,019 B block, about 111K to 505 tokens (an estimate). Runs in 10 coding agents with 9 MCP tools.\" \u002F>\n\u003C\u002Fpicture>\u003Cp>\u003Cstrong>Contents:\u003C\u002Fstrong> \u003Ca href=\"#why\" rel=\"nofollow ugc noopener\">Why\u003C\u002Fa> · \u003Ca href=\"#adoption-stars-and-npm-downloads\" rel=\"nofollow ugc noopener\">Adoption\u003C\u002Fa> · \u003Ca href=\"#install\" rel=\"nofollow ugc noopener\">Install\u003C\u002Fa> · \u003Ca href=\"#try-it\" rel=\"nofollow ugc noopener\">Try it\u003C\u002Fa> · \u003Ca href=\"#use-cases\" rel=\"nofollow ugc noopener\">Use cases\u003C\u002Fa> · \u003Ca href=\"#benchmarks\" rel=\"nofollow ugc noopener\">Benchmarks\u003C\u002Fa> · \u003Ca href=\"#how-it-works\" rel=\"nofollow ugc noopener\">How it works\u003C\u002Fa> · \u003Ca href=\"#tools\" rel=\"nofollow ugc noopener\">Tools\u003C\u002Fa> · \u003Ca href=\"#security-and-privacy\" rel=\"nofollow ugc noopener\">Security and privacy\u003C\u002Fa> · \u003Ca href=\"#context-mode-gateway\" rel=\"nofollow ugc noopener\">Context Mode Gateway\u003C\u002Fa> · \u003Ca href=\"#license\" rel=\"nofollow ugc noopener\">License\u003C\u002Fa> · \u003Ca href=\"#community\" rel=\"nofollow ugc noopener\">Community\u003C\u002Fa>\u003C\u002Fp>\n\u003Ch2>Why\u003C\u002Fh2>\n\u003Cp>A coding agent reads files, runs commands and fetches pages, and every result goes into its context window.\nThe 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.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>The plugin is free forever.\u003C\u002Fstrong> Use it at home and at work, free of charge, under a source-available license.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Runs on your machine.\u003C\u002Fstrong> The hooks, the sandbox and search run as local processes next to your agent.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>The plugin keeps your data on your machine.\u003C\u002Fstrong> Every index lives in \u003Ccode>~\u002F.context-mode\u003C\u002Fcode>: one \u003Ccode>context.db\u003C\u002Fcode> per project.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Zero telemetry.\u003C\u002Fstrong> The plugin keeps all usage data on your machine. \u003Ca href=\"#security-and-privacy\" rel=\"nofollow ugc noopener\">Security and privacy\u003C\u002Fa> lists each network call it makes.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Works offline after install.\u003C\u002Fstrong> Sandbox runs, file indexing and search use local SQLite and your own runtimes.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Thinking in Code.\u003C\u002Fstrong> The agent writes a short script instead of reading the data, and only what the script prints reaches the context: see \u003Ca href=\"#thinking-in-code\" rel=\"nofollow ugc noopener\">How it works, step 5\u003C\u002Fa>.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Small replies.\u003C\u002Fstrong> On the 36 bench rows with 10 KB or more of raw output, the plugin's median reply is 99.4% smaller than the raw output.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2>Adoption: stars and npm downloads\u003C\u002Fh2>\n\u003Ctable>\u003Ctr>\n\u003Ctd>\u003Ca href=\"https:\u002F\u002Fcontextmode.ai\u002Fopen-source\u002Fstats?utm_source=github&amp;utm_medium=readme&amp;utm_content=adoption#stars\" rel=\"nofollow ugc noopener\">\u003Cpicture>\u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fassets\u002Freadme\u002Fstar-history-dark.png\">\u003C\u002Fsource>\u003C\u002Fpicture>\u003C\u002Fa>\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftable>",1793926091071]