context-mode
33,886
Stars
0
Forks
0
Watchers
0
Open Issues
未知
许可证
JavaScript
语言
创建时间
最近更新
项目能做什么
免费本地插件,通过沙盒与 SQLite FTS5 检索将工具输出移出上下文,减少 99% 的 Token 占用。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Context Mode **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.** [](https://www.npmjs.com/package/context-mode) [](https://github.com/mksglu/context-mode) [](https://discord.gg/DCN9jUgN5v) [](LICENSE) **33K GitHub stars · 683K npm downloads** (read 2026-11-01, [stats.json](stats.json)) · on the Hacker News front page and GitHub Trending: [charts and sources](#adoption-stars-and-npm-downloads) > 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](https://contextmode.ai/docs/how-saving-works?utm_source=github&utm_medium=readme&utm_content=quote) <picture> <source media="(prefers-color-scheme: dark)" srcset="docs/assets/readme/hero-dark.png"> <img src="docs/assets/readme/hero-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."> </picture> **Contents:** [Why](#why) · [Adoption](#adoption-stars-and-npm-downloads) · [Install](#install) · [Try it](#try-it) · [Use cases](#use-cases) · [Benchmarks](#benchmarks) · [How it works](#how-it-works) · [Tools](#tools) · [Security and privacy](#security-and-privacy) · [Context Mode Gateway](#context-mode-gateway) · [License](#license) · [Community](#community) ## Why 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. - **The plugin is free forever.** Use it at home and at work, free of charge, under a source-available license. - **Runs on your machine.** The hooks, the sandbox and search run as local processes next to your agent. - **The plugin keeps your data on your machine.** Every index lives in `~/.context-mode`: one `context.d阅读完整原文
商业机会分析 AI 生成
Team Context Cloud(团队级 Agent 上下文共享与协作服务)
| 产品构想 | 在保持本地极速运行的基础上,提供可选的企业/团队云端上下文索引中继,支持团队成员共享长任务输出、调试日志与历史检索。 |
| 核心功能 | 团队私有检索中继服务、团队共享上下文知识库、多机协同检索、团队 Token 节省统计报表。 |
| 目标用户 | 多人协同使用 Coding Agent 的中小型工程团队、技术主管。 |
| 难度/周期 | 中等 · 4-6 周 · 成本:轻量云服务器与对象存储成本、认证鉴权服务基础设施 |
| 收费模式 | 按席位订阅制(SaaS),或提供自托管企业版 License。 |
| 竞争风险 | 违背原项目 'Zero telemetry' 和 '纯本地' 的极客心智,需严格以 opt-in 形式推出。 |
| 依据 | 已验证事实 |
Enterprise Security & Redaction Gateway(企业级 Agent 数据脱敏网关)
| 产品构想 | 在工具输出截流至 SQLite 的同时,提供企业级凭证(Token、私钥、数据库连接串)与 PII 自动脱敏、阻断和合规审计功能。 |
| 核心功能 | 规则/正则与本地小模型敏感词脱敏、合规审计日志导出、防外泄策略配置、MCP 协议级合规代理。 |
| 目标用户 | 受金融、医疗或合规监管要求约束的企业研发部门、安全合规工程师。 |
| 难度/周期 | 中等偏高 · 6-8 周 · 成本:本地模式无需额外算力成本,主要为企业规则库维护与测试成本 |
| 收费模式 | 按企业节点或年度商业授权收费(Open-core 模式)。 |
| 竞争风险 | 需要深入兼容多种 Agent 的输出格式,脱敏误杀可能破坏代码上下文完整性。 |
| 依据 | AI推测 |
Context-Mode Pro 桌面管理与 Token 成本控制台
| 产品构想 | 为重度开发者打造的可视化桌面控制台,直观监控各 Agent 的上下文膨胀率、缓存清理、策略精细配置与历史会话搜索回溯。 |
| 核心功能 | 实时 Token 节省监控看版、跨 Agent 历史输出可视化检索器、自定义工具过滤策略编辑器、一键环境诊断。 |
| 目标用户 | 独立开发者、自由职业者、重度使用 CLI Coding Agent 的个人技术专家。 |
| 难度/周期 | 较低 · 2-4 周 · 成本:开发机器与代码签名证书费用 |
| 收费模式 | 买断制专业版授权(Gumroad/Lemon Squeezy 销售 License Key)。 |
| 竞争风险 | CLI 纯粹主义者可能对 GUI 接受度不高,市场规模受限于付费意愿较强的重度个人用户。 |
| 依据 | 尚需验证的假设 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| nextlevelbuilder/ui-ux-pro-max-skill | 中文介绍暂未生成 An AI skill that provides design intelligence for building p |
147,734 | Python |
| Graphify-Labs/graphify | 中文介绍暂未生成 Turn any codebase, with its docs, SQL schemas, configs, and |
145,528 | Python |
| addyosmani/agent-skills | 中文介绍暂未生成 Production-grade engineering skills for AI coding agents. |
114,992 | JavaScript |
| ComposioHQ/awesome-claude-skills | 中文介绍暂未生成 A curated list of awesome Claude Skills, resources, and tool |
79,205 | Python |
| colbymchenry/codegraph | 中文介绍暂未生成 Pre-indexed code knowledge graph, auto syncs on code changes |
77,294 | TypeScript |
| asgeirtj/system_prompts_leaks | 中文介绍暂未生成 Leaked system prompts of ChatGPT, Claude, Gemini and more. T |
71,140 | Python |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 ,最近推送 ,发布过 100 个 Release |
| 社区活跃 | Star 33,886 / Fork 0 / Issue 0(数据支持,可自行核实) |
| 许可证 | 未检测到(需人工确认) |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/mksglu/context-mode.git cd context-mode # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。