Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By zhangyejianv1.0.151Elastic-2.0In 1 marketplace
MCP server that saves 98% of your context window with session continuity. Sandboxed code execution in 11 languages, FTS5 knowledge base with BM25 ranking, and automatic state restore across compactions.
Claude loads one when your task matches it, or you run it by name.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
mcp, context-window, sandbox, code-execution, fts5, bm25, playwright, context7
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
This repository is a modified distribution of mksglu/context-mode v1.0.151.
The upstream project is licensed under the Elastic License 2.0. This repository keeps the same license and preserves the upstream copyright notice. See LICENSE.
Chinese documentation: README.zh-CN.md
Original upstream README: README.upstream.md
This fork is intended for environments where context-mode runs inside a container and outbound web access must go through a local Clash/mihomo proxy.
The relevant changes are:
start.mjs
HTTP_PROXY=http://127.0.0.1:7890HTTPS_PROXY=http://127.0.0.1:7890ALL_PROXY=socks5h://127.0.0.1:7891NO_PROXY=localhost,127.0.0.1,::1,10.0.0.0/8,192.168.0.0/16,172.16.0.0/12.codex-plugin/mcp.json
src/executor.ts and server.bundle.mjs
ctx_execute, ctx_execute_file, and ctx_batch_execute.src/server.ts and server.bundle.mjs
ctx_fetch_and_index.ctx_fetch_and_index: when proxy
variables are present, the generated fetch script uses curl, which honors
HTTP_PROXY, HTTPS_PROXY, and ALL_PROXY, then continues through the
normal context-mode markdown conversion and indexing path.See MODIFICATIONS.md for implementation details.
In some containerized setups:
.bashrc;fetch does not automatically use
HTTP_PROXY / HTTPS_PROXY / ALL_PROXY;This fork makes context-mode proxy-aware by default for that environment.
This fork intentionally changes part of upstream's ctx_fetch_and_index
security behavior.
Upstream removed proxy environment variables from the fetch subprocess to avoid
proxy-based bypasses of its DNS rebinding / SSRF checks. This fork keeps proxy
variables and uses curl when proxy variables are present. That is necessary
for the target proxy-based environment, but it is less restrictive than the
upstream design.
Do not use this fork for untrusted URL fetching unless you accept that tradeoff.
The default proxy endpoints assume a common Clash/mihomo setup:
HTTP_PROXY=http://127.0.0.1:7890
HTTPS_PROXY=http://127.0.0.1:7890
ALL_PROXY=socks5h://127.0.0.1:7891
If your proxy uses different ports, set those environment variables before starting Codex/context-mode. Existing values are preserved; the defaults are only used when the variables are missing.
The modified version was tested with:
ctx_execute reading proxy variables inside the sandbox;ctx_execute successfully fetching https://news.ycombinator.com/;ctx_fetch_and_index successfully fetching and indexing Hacker News through
the proxy-aware path;ctx_search retrieving content from the indexed Hacker News source;start.mjs, server.bundle.mjs, and .codex-plugin/mcp.json.This is a derivative work of context-mode and remains under the Elastic License 2.0. See LICENSE.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub zhangyejian/contextmodewithproxy --plugin context-modePlugins from other owners that cover similar ground