context-mode 2.0.0-next.22 → 2.0.0-next.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/LICENSE +94 -0
- package/README.md +366 -0
- package/SHA256SUMS +12 -10
- package/copilot/plugin.json +1 -1
- package/gemini-extension.json +1 -1
- package/opencode/plugin.js +1 -1
- package/package.json +3 -1
- package/pi/index.js +1 -1
- package/qwen-extension.json +1 -1
- package/server.mjs +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
Elastic License 2.0 (ELv2)
|
|
2
|
+
|
|
3
|
+
Copyright 2026 Mert Koseoglu
|
|
4
|
+
|
|
5
|
+
## Acceptance
|
|
6
|
+
|
|
7
|
+
By using the software, you agree to all of the terms and conditions below.
|
|
8
|
+
|
|
9
|
+
## Copyright License
|
|
10
|
+
|
|
11
|
+
The licensor grants you a non-exclusive, royalty-free, worldwide,
|
|
12
|
+
non-sublicensable, non-transferable license to use, copy, distribute, make
|
|
13
|
+
available, and prepare derivative works of the software, in each case subject
|
|
14
|
+
to the limitations and conditions below.
|
|
15
|
+
|
|
16
|
+
## Limitations
|
|
17
|
+
|
|
18
|
+
You may not provide the software to third parties as a hosted or managed
|
|
19
|
+
service, where the service provides users with access to any substantial set
|
|
20
|
+
of the features or functionality of the software.
|
|
21
|
+
|
|
22
|
+
You may not move, change, disable, or circumvent the license key
|
|
23
|
+
functionality in the software, and you may not remove or obscure any
|
|
24
|
+
functionality in the software that is protected by the license key.
|
|
25
|
+
|
|
26
|
+
You may not alter, remove, or obscure any licensing, copyright, or other
|
|
27
|
+
notices of the licensor in the software. Any use of the licensor's trademarks
|
|
28
|
+
is subject to applicable law.
|
|
29
|
+
|
|
30
|
+
## Patents
|
|
31
|
+
|
|
32
|
+
The licensor grants you a license, under any patent claims the licensor can
|
|
33
|
+
license, or becomes able to license, to make, have made, use, sell, offer for
|
|
34
|
+
sale, import and have imported the software, in each case subject to the
|
|
35
|
+
limitations and conditions in this license. This license does not cover any
|
|
36
|
+
patent claims that you cause to be infringed by modifications or additions to
|
|
37
|
+
the software. If you or your company make any written claim that the software
|
|
38
|
+
infringes or contributes to infringement of any patent, your patent license
|
|
39
|
+
for the software granted under these terms ends immediately. If your company
|
|
40
|
+
makes such a claim, your patent license ends immediately for work on behalf
|
|
41
|
+
of your company.
|
|
42
|
+
|
|
43
|
+
## Notices
|
|
44
|
+
|
|
45
|
+
You must ensure that anyone who gets a copy of any part of the software from
|
|
46
|
+
you also gets a copy of these terms.
|
|
47
|
+
|
|
48
|
+
If you modify the software, you must include in any modified copies of the
|
|
49
|
+
software prominent notices stating that you have modified the software.
|
|
50
|
+
|
|
51
|
+
## No Other Rights
|
|
52
|
+
|
|
53
|
+
These terms do not imply any licenses other than those expressly granted in
|
|
54
|
+
these terms.
|
|
55
|
+
|
|
56
|
+
## Termination
|
|
57
|
+
|
|
58
|
+
If you use the software in violation of these terms, such use is not
|
|
59
|
+
licensed, and your licenses will automatically terminate. If the licensor
|
|
60
|
+
provides you with a notice of your violation, and you cease all violation of
|
|
61
|
+
this license no later than 30 days after you receive that notice, your
|
|
62
|
+
licenses will be reinstated retroactively. However, if you violate these
|
|
63
|
+
terms after such reinstatement, any additional violation of these terms will
|
|
64
|
+
cause your licenses to terminate automatically and permanently.
|
|
65
|
+
|
|
66
|
+
## No Liability
|
|
67
|
+
|
|
68
|
+
*As far as the law allows, the software comes as is, without any warranty or
|
|
69
|
+
condition, and the licensor will not be liable to you for any damages arising
|
|
70
|
+
out of these terms or the use or nature of the software, under any kind of
|
|
71
|
+
legal claim.*
|
|
72
|
+
|
|
73
|
+
## Definitions
|
|
74
|
+
|
|
75
|
+
The **licensor** is the entity offering these terms, and the **software** is
|
|
76
|
+
the software the licensor makes available under these terms, including any
|
|
77
|
+
portion of it.
|
|
78
|
+
|
|
79
|
+
**you** refers to the individual or entity agreeing to these terms.
|
|
80
|
+
|
|
81
|
+
**your company** is any legal entity, sole proprietorship, or other kind of
|
|
82
|
+
organization that you work for, plus all organizations that have control over,
|
|
83
|
+
are under the control of, or are under common control with that organization.
|
|
84
|
+
**control** means ownership of substantially all the assets of an entity, or
|
|
85
|
+
the power to direct its management and policies by vote, contract, or
|
|
86
|
+
otherwise. Control can be direct or indirect.
|
|
87
|
+
|
|
88
|
+
**your licenses** are all the licenses granted to you for the software under
|
|
89
|
+
these terms.
|
|
90
|
+
|
|
91
|
+
**use** means anything you do with the software requiring one of your
|
|
92
|
+
licenses.
|
|
93
|
+
|
|
94
|
+
**trademark** means trademarks, service marks, and similar rights.
|
package/README.md
ADDED
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
# Context Mode
|
|
2
|
+
|
|
3
|
+
**Keeping tool output out of a coding agent's context window: a local plugin for 10 agents, and the Gateway that works on the whole request.**
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/context-mode) [](https://www.npmjs.com/package/context-mode) [](https://github.com/mksglu/context-mode) [](https://github.com/mksglu/context-mode) [](https://news.ycombinator.com/item?id=47193064) [](https://github.com/uibm/trending-watcher/issues?q=%22mksglu%2Fcontext-mode%22) [](https://discord.gg/DCN9jUgN5v) [](https://github.com/mksglu/context-mode/blob/main/LICENSE)
|
|
6
|
+
|
|
7
|
+
> **Context Mode Gateway** is the paid layer. It runs between your agent and the model API and adds Recall for long sessions, Memory, Skills, Search, Protect and request-level saving.
|
|
8
|
+
> Free: 1,000 requests a month, every feature, no card. Start at [contextmode.ai](https://contextmode.ai). Plans: [https://contextmode.ai/pricing](https://contextmode.ai/pricing).
|
|
9
|
+
|
|
10
|
+
<picture>
|
|
11
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/mksglu/context-mode/main/docs/assets/readme/hero-dark.png">
|
|
12
|
+
<img src="https://raw.githubusercontent.com/mksglu/context-mode/main/docs/assets/readme/hero-light.png" alt="Context Mode: tool output stays out of context. 747.4k+ users, 33,053 GitHub stars, 98.8% of output bytes saved (median of 25 rows with 10 KB or more of raw output).">
|
|
13
|
+
</picture>
|
|
14
|
+
|
|
15
|
+
**Figure 1.** Context Mode at a glance. Counts as of 2026-11-01 (33,053 stars, read once from the GitHub API). The 98.8% is the median over the 25 bench rows with 10 KB or more of raw output, 5 runs each.
|
|
16
|
+
|
|
17
|
+
<p align="center">
|
|
18
|
+
<sub>Starred by engineers at</sub>
|
|
19
|
+
<br><br>
|
|
20
|
+
<a href="#"><img src="https://img.shields.io/badge/Microsoft-141414?style=flat" alt="Microsoft" /></a>
|
|
21
|
+
<a href="#"><img src="https://img.shields.io/badge/Google-141414?style=flat&logo=google&logoColor=white" alt="Google" /></a>
|
|
22
|
+
<a href="#"><img src="https://img.shields.io/badge/Meta-141414?style=flat&logo=meta&logoColor=white" alt="Meta" /></a>
|
|
23
|
+
<a href="#"><img src="https://img.shields.io/badge/Amazon-141414?style=flat" alt="Amazon" /></a>
|
|
24
|
+
<a href="#"><img src="https://img.shields.io/badge/IBM-141414?style=flat" alt="IBM" /></a>
|
|
25
|
+
<a href="#"><img src="https://img.shields.io/badge/NVIDIA-141414?style=flat&logo=nvidia&logoColor=white" alt="NVIDIA" /></a>
|
|
26
|
+
<a href="#"><img src="https://img.shields.io/badge/ByteDance-141414?style=flat&logo=bytedance&logoColor=white" alt="ByteDance" /></a>
|
|
27
|
+
<a href="#"><img src="https://img.shields.io/badge/Stripe-141414?style=flat&logo=stripe&logoColor=white" alt="Stripe" /></a>
|
|
28
|
+
<a href="#"><img src="https://img.shields.io/badge/Datadog-141414?style=flat&logo=datadog&logoColor=white" alt="Datadog" /></a>
|
|
29
|
+
<a href="#"><img src="https://img.shields.io/badge/Salesforce-141414?style=flat" alt="Salesforce" /></a>
|
|
30
|
+
<a href="#"><img src="https://img.shields.io/badge/GitHub-141414?style=flat&logo=github&logoColor=white" alt="GitHub" /></a>
|
|
31
|
+
<a href="#"><img src="https://img.shields.io/badge/Red%20Hat-141414?style=flat&logo=redhat&logoColor=white" alt="Red Hat" /></a>
|
|
32
|
+
<a href="#"><img src="https://img.shields.io/badge/Supabase-141414?style=flat&logo=supabase&logoColor=white" alt="Supabase" /></a>
|
|
33
|
+
<a href="#"><img src="https://img.shields.io/badge/Canva-141414?style=flat" alt="Canva" /></a>
|
|
34
|
+
<a href="#"><img src="https://img.shields.io/badge/Notion-141414?style=flat&logo=notion&logoColor=white" alt="Notion" /></a>
|
|
35
|
+
<a href="#"><img src="https://img.shields.io/badge/Hasura-141414?style=flat&logo=hasura&logoColor=white" alt="Hasura" /></a>
|
|
36
|
+
<a href="#"><img src="https://img.shields.io/badge/Framer-141414?style=flat&logo=framer&logoColor=white" alt="Framer" /></a>
|
|
37
|
+
<a href="#"><img src="https://img.shields.io/badge/Cursor-141414?style=flat&logo=cursor&logoColor=white" alt="Cursor" /></a>
|
|
38
|
+
</p>
|
|
39
|
+
|
|
40
|
+
## Abstract
|
|
41
|
+
|
|
42
|
+
A coding agent reads files, runs commands and fetches pages, and every result goes into its context window.
|
|
43
|
+
One Playwright snapshot is 57.5 KB; one access log is 46.2 KB. The window fills, the agent compacts, and it forgets what it was doing.
|
|
44
|
+
Context Mode runs the tool work in a local sandbox, keeps the full output in a per-project SQLite index, and returns only what the agent asks for.
|
|
45
|
+
On the 25 bench rows with 10 KB or more of raw output, it cut the bytes that reach the context by a median of 98.8%, measured with `ctx_bytes` against `raw_bytes`, 5 runs each.
|
|
46
|
+
Context Mode Gateway works on the whole request and the whole account. On a pre-registered long session with a 200K window it cut cost from $4.86 to $3.04 (2026-10-04) (-37.6%), and the session never compacted.
|
|
47
|
+
You can use both layers together. This paper gives the method, the numbers with their raw files, and the limits.
|
|
48
|
+
|
|
49
|
+
## 1. The problem
|
|
50
|
+
|
|
51
|
+
Each tool result goes into the context window whole. Table 1 lists real outputs from the bench, and what Context Mode returns for each.
|
|
52
|
+
|
|
53
|
+
**Table 1.** Raw output against the reply the agent sees (median of 5 runs, bench of 2026-10-31).
|
|
54
|
+
|
|
55
|
+
| Tool output | Raw | Reply | Cut |
|
|
56
|
+
|---|---:|---:|---:|
|
|
57
|
+
| Playwright page snapshot | 57,521 B | 315 B | 99.5% |
|
|
58
|
+
| 20 GitHub issues | 60,310 B | 1,156 B | 98.1% |
|
|
59
|
+
| Access log, 500 requests | 46,216 B | 171 B | 99.6% |
|
|
60
|
+
| `npm install` log | 37,761 B | 451 B | 98.8% |
|
|
61
|
+
| Big source file | 61,576 B | 489 B | 99.2% |
|
|
62
|
+
| Large git log | 191,120 B | 153 B | 99.9% |
|
|
63
|
+
| Docs page through WebFetch | 215,354 B | 435 B | 99.8% |
|
|
64
|
+
|
|
65
|
+
Rule for every headline number in this paper: rows with 10 KB or more of raw output, median per category.
|
|
66
|
+
The full results file has [every row, including small outputs where there is little to save](https://github.com/mksglu/context-mode/blob/main/bench/results/2026-10-31-darwin-arm64.md).
|
|
67
|
+
|
|
68
|
+
## 2. Results
|
|
69
|
+
|
|
70
|
+
<picture>
|
|
71
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/mksglu/context-mode/main/docs/assets/readme/fig-saving-dark.png">
|
|
72
|
+
<img src="https://raw.githubusercontent.com/mksglu/context-mode/main/docs/assets/readme/fig-saving-light.png" alt="Bar chart: median output bytes saved per category for rows of 10 KB or more. Sandbox 99.3%, Batch 93.1%, Externalize 92.3%, Hook redirect 99.8%, Session total 98.8%.">
|
|
73
|
+
</picture>
|
|
74
|
+
|
|
75
|
+
**Figure 2.** Median bytes saved per category, rows of 10 KB or more.
|
|
76
|
+
|
|
77
|
+
**Table 2.** Bytes kept out of context, by category (rule: raw output of 10 KB or more, median per category).
|
|
78
|
+
|
|
79
|
+
| Category | What runs | Rows | Median cut |
|
|
80
|
+
|---|---|---:|---:|
|
|
81
|
+
| a. Sandbox | `ctx_execute` on a file or command | 10 | 99.3% |
|
|
82
|
+
| c. Batch | `ctx_batch`: many commands, then search | 2 | 93.1% |
|
|
83
|
+
| d. Externalize | Host tool output over the cap, indexed whole | 4 | 92.3% |
|
|
84
|
+
| f. Hook redirect | A big Read, curl or WebFetch sent to the sandbox | 5 | 99.8% |
|
|
85
|
+
| g. Session total | One full scripted session | 1 | 98.8% |
|
|
86
|
+
|
|
87
|
+
Search replies (category b) return text on purpose; they are in the full file. Bench on 2.0.0-next.8, macOS arm64, 2026-10-31.
|
|
88
|
+
Reproduce: `cd bench && node run.mjs`. Method and every data file: [bench/README.md](https://github.com/mksglu/context-mode/blob/main/bench/README.md), [bench/evidence/](https://github.com/mksglu/context-mode/blob/main/bench/evidence/README.md).
|
|
89
|
+
We measured bytes, not dollars, so the plugin makes no cost claim.
|
|
90
|
+
|
|
91
|
+
### 2.1 Case studies
|
|
92
|
+
|
|
93
|
+
**Case 1. A browser snapshot.** Problem: one Playwright snapshot is 57,521 B, and an agent takes many per task.
|
|
94
|
+
Action: the agent runs the snapshot through `ctx_execute` and prints only the fields it needs.
|
|
95
|
+
Result: 315 B reach the context, a 99.5% cut, measured over 5 runs.
|
|
96
|
+
|
|
97
|
+
**Case 2. A docs page.** Problem: a WebFetch of the SQLite FTS5 page returns 215,354 B.
|
|
98
|
+
Action: the `PreToolUse` hook denies the fetch and routes it to `ctx_index`, which keeps the page, and `ctx_search`, which returns the part asked for.
|
|
99
|
+
Result: a 435 B reply instead of 215,354 B, a 99.8% cut. The hook took 54 ms.
|
|
100
|
+
|
|
101
|
+
**Case 3. A long session (Gateway).** Problem: a long Claude Code session on a 200K window compacts, and the agent loses its place.
|
|
102
|
+
Action: the same task through Context Mode Gateway with Recall, 3 pairs, with a rule fixed before the run.
|
|
103
|
+
Result: cost fell from $4.86 to $3.04 (2026-10-04) (-37.6%). Direct compacted 3 times; the Gateway session never compacted. 3 of 3 pairs passed.
|
|
104
|
+
|
|
105
|
+
### 2.2 Two layers: the gap grows with session length
|
|
106
|
+
|
|
107
|
+
<picture>
|
|
108
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/mksglu/context-mode/main/docs/assets/readme/fig-layers-dark.png">
|
|
109
|
+
<img src="https://raw.githubusercontent.com/mksglu/context-mode/main/docs/assets/readme/fig-layers-light.png" alt="Two layers. context-mode works beside the agent on tool output. Context Mode Gateway runs between the client and the model API and works on the whole request.">
|
|
110
|
+
</picture>
|
|
111
|
+
|
|
112
|
+
**Figure 3.** context-mode works beside the agent, on tool output, in a local sandbox. Context Mode Gateway runs between the client and the model API and works on the whole request and the whole account. You can use both together.
|
|
113
|
+
|
|
114
|
+
**Table 3.** Gateway cost against Claude Code alone, Claude Opus 5.5. Mean dollars per session at list price.
|
|
115
|
+
|
|
116
|
+
| Session | Direct | Gateway | Change | Rule check | Raw file |
|
|
117
|
+
|---|---:|---:|---:|---|---|
|
|
118
|
+
| Six short tasks (2026-09-29) | | | -21% to -29% per task, -24.5% pooled | cheaper in 84 of 88 pairs; all 176 sessions passed the task check | [v3-opus55-short.json](https://contextmode.ai/benchmarks/data/v3-opus55-short.json) |
|
|
119
|
+
| Long session, 200K window (2026-10-03/04) | $4.86 | $3.04 | -37.6% | 3 of 3 pre-registered pairs passed; 0 compactions against 3 | [ab.json](https://contextmode.ai/benchmarks/recall/200k-r2/ab.json) |
|
|
120
|
+
| Long session, 1M window, 30 steps (2026-10-03) | $7.24 | $2.97 | -59.0% | 3 of 4 pairs passed the exact-accuracy rule | [ab.json](https://contextmode.ai/benchmarks/long-session/amendment-4/ab.json) |
|
|
121
|
+
|
|
122
|
+
The longer the session, the more the Gateway saves: a short task has little history to fold.
|
|
123
|
+
On the five counted "try it" prompts (2026-10-22, Claude Opus 5.5) the Gateway cost 43.8% less, but it passed the task check in 15 of 20 sessions against 20 of 20 direct.
|
|
124
|
+
We fixed the rules before each run: [contextmode.ai/docs/benchmarks](https://contextmode.ai/docs/benchmarks).
|
|
125
|
+
|
|
126
|
+
## Install
|
|
127
|
+
|
|
128
|
+
Use your agent's own install command. You need Node 24.15.0 or later (v2 uses the built-in `node:sqlite`). On Windows you also need Git for Windows: the shell tools run in Git Bash, and `context-mode doctor` check D11 (shell) fails without it.
|
|
129
|
+
|
|
130
|
+
| Agent | Install | Update |
|
|
131
|
+
|---|---|---|
|
|
132
|
+
| Claude Code | `claude plugin marketplace add mksglu/context-mode#release`, then `claude plugin install context-mode@context-mode` | `claude plugin update context-mode@context-mode` |
|
|
133
|
+
| Codex | `codex plugin marketplace add mksglu/context-mode@release`, then `codex plugin add context-mode@context-mode` | `codex plugin marketplace upgrade context-mode` |
|
|
134
|
+
| Gemini CLI | `gemini extensions install https://github.com/mksglu/context-mode --ref release` | `gemini extensions update context-mode` |
|
|
135
|
+
| Qwen Code | `qwen extensions install https://github.com/mksglu/context-mode:context-mode --ref release` | `qwen extensions update context-mode` |
|
|
136
|
+
| Pi | `pi install npm:context-mode@next` | `pi update --extensions` |
|
|
137
|
+
| OpenCode | `opencode plugin add context-mode@next` (1.19: `opencode plugin context-mode@next --global`) | `opencode plugin update` (1.19: `opencode plugin context-mode@next --global --force`) |
|
|
138
|
+
|
|
139
|
+
Until v2 is on `main`, `main` holds the old build (1.0.169), so the four GitHub-source rows name the `release` branch with each agent's own syntax.
|
|
140
|
+
|
|
141
|
+
After v2 is on main: `claude plugin marketplace add mksglu/context-mode`, `codex plugin marketplace add mksglu/context-mode`, `gemini extensions install https://github.com/mksglu/context-mode`, `qwen extensions install https://github.com/mksglu/context-mode:context-mode`
|
|
142
|
+
|
|
143
|
+
Already installed from GitHub without the ref? Each agent page has the steps to switch: see "Already installed from GitHub?" in [Claude Code](https://github.com/mksglu/context-mode/blob/main/docs/install/claude-code.md#already-installed-from-github), [Codex](https://github.com/mksglu/context-mode/blob/main/docs/install/codex.md#already-installed-from-github), [Gemini CLI](https://github.com/mksglu/context-mode/blob/main/docs/install/gemini.md#already-installed-from-github) and [Qwen Code](https://github.com/mksglu/context-mode/blob/main/docs/install/qwen.md#already-installed-from-github).
|
|
144
|
+
|
|
145
|
+
Copilot CLI, Kiro, VS Code and ZCode have no install command of their own for this package. Use npm, which also works for every other agent:
|
|
146
|
+
|
|
147
|
+
```sh
|
|
148
|
+
npm i -g context-mode@next
|
|
149
|
+
context-mode setup
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
`next` is the v2 prerelease tag on npm. `latest` stays on the old release. A plain `npm i -g context-mode` does not install v2.
|
|
153
|
+
Restart the agent, then check: `context-mode doctor` (or `/ctx-doctor` in the agent). Each check prints PASS, or FAIL with the command that fixes it.
|
|
154
|
+
`context-mode setup` is the fallback and the repair. It shows a plan, applies it, and rolls back an agent that fails.
|
|
155
|
+
Uninstall: `context-mode setup --remove && npm rm -g context-mode`. Details: [docs/install/README.md](https://github.com/mksglu/context-mode/blob/main/docs/install/README.md).
|
|
156
|
+
|
|
157
|
+
Every agent gets hooks, the MCP server and the skills. The Install column is the agent's own install command, or the npm route when the agent has none.
|
|
158
|
+
|
|
159
|
+
<!-- agents:install:start (node build/readme-agents.mjs --write) -->
|
|
160
|
+
| Agent | Hooks | MCP | Skills | Install | Guide |
|
|
161
|
+
|---|---|---|---|---|---|
|
|
162
|
+
| Claude Code | yes, package | yes | yes | `claude plugin install context-mode@context-mode` | [docs/install/claude-code.md](https://github.com/mksglu/context-mode/blob/main/docs/install/claude-code.md#install) |
|
|
163
|
+
| Codex | yes, hook file | yes | yes | `codex plugin add context-mode@context-mode` | [docs/install/codex.md](https://github.com/mksglu/context-mode/blob/main/docs/install/codex.md#install) |
|
|
164
|
+
| Copilot CLI | yes, hook file | yes | yes | npm + `context-mode setup` | [docs/install/copilot-cli.md](https://github.com/mksglu/context-mode/blob/main/docs/install/copilot-cli.md#install) |
|
|
165
|
+
| Gemini CLI | yes, package | yes | yes | `gemini extensions install https://github.com/mksglu/context-mode --ref release` | [docs/install/gemini.md](https://github.com/mksglu/context-mode/blob/main/docs/install/gemini.md#install) |
|
|
166
|
+
| Kiro | yes, hook file | yes | yes | npm + `context-mode setup` | [docs/install/kiro.md](https://github.com/mksglu/context-mode/blob/main/docs/install/kiro.md#install) |
|
|
167
|
+
| OpenCode | yes, in-process | yes | yes | `opencode plugin add context-mode@next` | [docs/install/opencode.md](https://github.com/mksglu/context-mode/blob/main/docs/install/opencode.md#install) |
|
|
168
|
+
| Pi | yes, in-process | in-process | yes | `pi install npm:context-mode@next` | [docs/install/pi.md](https://github.com/mksglu/context-mode/blob/main/docs/install/pi.md#install) |
|
|
169
|
+
| Qwen Code | yes, package | yes | yes | `qwen extensions install https://github.com/mksglu/context-mode:context-mode --ref release` | [docs/install/qwen.md](https://github.com/mksglu/context-mode/blob/main/docs/install/qwen.md#install) |
|
|
170
|
+
| VS Code (Copilot) | yes, hook file | yes | yes | npm + `context-mode setup` | [docs/install/vscode.md](https://github.com/mksglu/context-mode/blob/main/docs/install/vscode.md#install) |
|
|
171
|
+
| ZCode | yes, hook file | yes | yes | npm + `context-mode setup` | [docs/install/zcode.md](https://github.com/mksglu/context-mode/blob/main/docs/install/zcode.md#install) |
|
|
172
|
+
<!-- agents:install:end -->
|
|
173
|
+
|
|
174
|
+
## 3. How it works
|
|
175
|
+
|
|
176
|
+
<picture>
|
|
177
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/mksglu/context-mode/main/docs/assets/readme/fig-flow-dark.png">
|
|
178
|
+
<img src="https://raw.githubusercontent.com/mksglu/context-mode/main/docs/assets/readme/fig-flow-light.png" alt="One tool call, step by step: the agent runs a tool, the PreToolUse hook denies a big Read and names the ctx_execute call, the MCP server runs it in the sandbox, SQLite FTS5 keeps the output, and after compaction a state block of at most 2,048 B comes back.">
|
|
179
|
+
</picture>
|
|
180
|
+
|
|
181
|
+
**Figure 4.** One tool call, step by step. Output stays in the sandbox and the index; the agent gets the answer.
|
|
182
|
+
|
|
183
|
+
Context Mode has three parts: hooks, an MCP server with nine tools, and one SQLite database per project.
|
|
184
|
+
|
|
185
|
+
### 3.1 Hooks
|
|
186
|
+
|
|
187
|
+
The hooks listen to four events: `SessionStart`, `UserPromptSubmit`, `PreToolUse`, `PostToolUse`. Gemini CLI, VS Code and OpenCode also send a compaction event; each host keeps its own event names.
|
|
188
|
+
`PreToolUse` checks rules in a fixed order: the user's deny list, WebFetch, curl and HTTP or build commands, then Read and shell dumps.
|
|
189
|
+
Context Mode denies a `Read` of a file over 16,384 B with no range, and the deny message names the exact `ctx_execute` call to use. A `Read` with a range still runs.
|
|
190
|
+
A hook never errors. Every failure ends in exit 0 with the host's "allow" reply and one log line, so a bug in Context Mode never blocks your agent. Spawned hooks time out after 5,000 ms.
|
|
191
|
+
|
|
192
|
+
### 3.2 Sandbox execution
|
|
193
|
+
|
|
194
|
+
`ctx_execute` writes the script to a temp folder and runs it as a subprocess: shell, PowerShell, JavaScript, TypeScript, Python, or any runtime found on `PATH`.
|
|
195
|
+
It starts the process with an argument list and no shell, in the project folder. The default and maximum timeout is 600,000 ms; on timeout it kills the whole process group (`taskkill /F /T` on Windows).
|
|
196
|
+
The child gets the parent environment minus the preload variables (`NODE_OPTIONS`, `BUN_OPTIONS`, `DENO_OPTIONS` and similar). Only what the script prints comes back, cut on a whole character.
|
|
197
|
+
|
|
198
|
+
### 3.3 Index and search
|
|
199
|
+
|
|
200
|
+
Each output goes into SQLite FTS5 twice: a Porter-stemmed table for words, and a trigram table for paths, names and parts of words.
|
|
201
|
+
`ctx_search` ranks each table with BM25 and joins the two lists with Reciprocal Rank Fusion: a hit scores 1/(60 + rank) in each list.
|
|
202
|
+
When nothing matches, it tries a spelling fix from the indexed words. Search covers one of three scopes: this session, this worktree (the default) or the whole project.
|
|
203
|
+
Chunks are at most 4,096 B. A Markdown chunk never crosses a heading and carries its heading path as its title. A code block that fits in a chunk is never split; a bigger one splits on blank lines, and each piece repeats the fence.
|
|
204
|
+
A reply snippet is at most 800 B, or a whole code block up to 2,048 B.
|
|
205
|
+
|
|
206
|
+
### 3.4 Large output, run and replace
|
|
207
|
+
|
|
208
|
+
When a host tool returns more than the cap, `PostToolUse` indexes the whole output and replaces it.
|
|
209
|
+
The agent gets the best-matching whole chunks and one `ctx_search` line for the rest. Context Mode keeps the full text in the index.
|
|
210
|
+
|
|
211
|
+
### 3.5 Session continuity
|
|
212
|
+
|
|
213
|
+
The hooks log each prompt, edit, command, tool error, index, cost and decision.
|
|
214
|
+
After a compaction the agent gets a state block of at most 2,048 B built from that log. Context Mode cuts no line: a long line becomes a `ctx_resume(seq)` pointer that reads the full row.
|
|
215
|
+
On the next prompt, a recall block of at most 2,048 B brings back the log rows that match it by BM25, whole rows only. The same rows always give the same bytes.
|
|
216
|
+
|
|
217
|
+
### 3.6 Storage
|
|
218
|
+
|
|
219
|
+
Context Mode uses Node's built-in `node:sqlite`; no native module to build. Each project gets one `context.db` under `~/.context-mode`.
|
|
220
|
+
The database runs in WAL mode. On close it runs a PASSIVE checkpoint and never TRUNCATE. Context Mode builds a new database under a temp name, then moves it into place in one step, so a crash leaves no half-made file. Busy timeout: 5,000 ms.
|
|
221
|
+
|
|
222
|
+
## 4. Tools
|
|
223
|
+
|
|
224
|
+
| Tool | What it does |
|
|
225
|
+
|---|---|
|
|
226
|
+
| `ctx_execute` | Runs code or a shell command in a sandbox; returns only what it prints |
|
|
227
|
+
| `ctx_batch` | Runs many commands, indexes the output, and searches it in one call |
|
|
228
|
+
| `ctx_index` | Indexes a file, a text or a URL into the project database |
|
|
229
|
+
| `ctx_search` | Searches the index; returns the matching parts only |
|
|
230
|
+
| `ctx_resume` | Returns the state block, or one full row by `seq` |
|
|
231
|
+
| `ctx_stats` | Shows how much output stayed out of context |
|
|
232
|
+
| `ctx_doctor` | Checks the install; each FAIL line names its fix |
|
|
233
|
+
| `ctx_upgrade` | Installs, upgrades or uninstalls; replaces old context-mode entries |
|
|
234
|
+
| `ctx_purge` | Deletes indexed data by session, source or project |
|
|
235
|
+
|
|
236
|
+
Full reference: [docs/tools.md](https://github.com/mksglu/context-mode/blob/main/docs/tools.md).
|
|
237
|
+
|
|
238
|
+
## Commands
|
|
239
|
+
|
|
240
|
+
| Command | What it does |
|
|
241
|
+
|---|---|
|
|
242
|
+
| `/ctx-stats` | Calls `ctx_stats` and shows the result |
|
|
243
|
+
| `/ctx-doctor` | Calls `ctx_doctor`; use its report when you report a defect |
|
|
244
|
+
| `/ctx-upgrade` | Calls `ctx_upgrade`, then `ctx_doctor` |
|
|
245
|
+
|
|
246
|
+
## 5. Harness: ten agents
|
|
247
|
+
|
|
248
|
+
Every agent in the Install table gets hooks, the MCP server and the skills, through that agent's own install command.
|
|
249
|
+
Hooks reach each agent in one of three ways: in the plugin package (Claude Code, Gemini CLI, Qwen Code), in a hook file (Codex, Copilot CLI, Kiro, VS Code, ZCode), or in-process (OpenCode, Pi).
|
|
250
|
+
|
|
251
|
+
Live proof, written for 2.0.0-next.15: we watched the real agent binary run our hook in a temp home, with no login and no API key, for 8 of 10 agents.
|
|
252
|
+
Not yet proven live: VS Code (the hook command works with the documented payload, but VS Code 1.144.0 sent no request) and Kiro (kiro-cli 2.35.2 loads all 6 entries, but we saw no hook fire).
|
|
253
|
+
CI runs setup, doctor, a hook and an MCP handshake for all 10 agents from the packed package on Linux, macOS and Windows. Record: [docs/architecture/release/HOOKS-FIRE.md](https://github.com/mksglu/context-mode/blob/main/docs/architecture/release/HOOKS-FIRE.md).
|
|
254
|
+
|
|
255
|
+
## 6. Performance
|
|
256
|
+
|
|
257
|
+
**Table 4.** Time cost, median of 5 runs, bench of 2026-10-31.
|
|
258
|
+
|
|
259
|
+
| Measure | Result |
|
|
260
|
+
|---|---|
|
|
261
|
+
| Hook time over a bare `node` start, per agent | 7.3 ms to 14.6 ms |
|
|
262
|
+
| `ctx_search`, 20 queries over 8 indexed files | 1.73 ms median, 6.54 ms max |
|
|
263
|
+
| `ctx_index`, 3 real files, 0.6 MB | 155 ms per MB |
|
|
264
|
+
|
|
265
|
+
Rows per agent and per query: [docs/performance.md](https://github.com/mksglu/context-mode/blob/main/docs/performance.md).
|
|
266
|
+
|
|
267
|
+
## 7. Security model
|
|
268
|
+
|
|
269
|
+
- No telemetry. Context Mode sends no data about you or your code anywhere.
|
|
270
|
+
- No LLM calls. Context Mode never calls a model.
|
|
271
|
+
- All data stays in the `context.db` file of each project, on your machine.
|
|
272
|
+
- Network use: npm or git (to the release repository) when you install or upgrade, `git ls-remote` in doctor (to check for a new version), and your agent's own install steps.
|
|
273
|
+
- `ctx_index` fetches a URL only when the agent asks for it. It blocks private and link-local addresses. It checks each address the host name points to, connects to the address it checked, and checks again at each redirect.
|
|
274
|
+
- Doctor and the debug report remove secrets by their structure before they print.
|
|
275
|
+
|
|
276
|
+
What the sandbox does not do: it does not isolate. There is no container, chroot, seccomp or namespace.
|
|
277
|
+
Code from `ctx_execute` runs as you, with your environment (minus the preload variables), your whole file system and your network.
|
|
278
|
+
Here "sandbox" means the output stays out of the context, not that the code is isolated. Keep your agent's own permission prompts on.
|
|
279
|
+
|
|
280
|
+
## 8. Context Mode Gateway
|
|
281
|
+
|
|
282
|
+
Context Mode Gateway is the paid product. The plugin works beside the agent, on tool output. The Gateway runs between your agent and the model API and works on every request and the whole account.
|
|
283
|
+
It adds what a local plugin cannot: Recall for sessions longer than the window, Memory shared by all your agents, Skills, Search over everything that passed through, and Protect.
|
|
284
|
+
|
|
285
|
+
**Table 5.** Context Mode Gateway features, from [contextmode.ai/docs](https://contextmode.ai/docs/how-saving-works).
|
|
286
|
+
|
|
287
|
+
| Feature | What it does | Measured result | Main limit |
|
|
288
|
+
|---|---|---|---|
|
|
289
|
+
| Context Saving | Folds old tool output, runs data work as code (Thinking in Code), trims tool schemas, places cache marks | Tool schemas 102,784 B to 33,611 B per request (-67.3%); a tool output over 2,048 B becomes a pointer of about 285 B, with the full copy archived | A short question with few tool calls leaves little to save; no Codex A/B yet |
|
|
290
|
+
| Recall | The model sees recent work and an index of older work; the agent searches the archive for the rest | 200K window, 2026-10-04: $4.86 to $3.04 (-37.6%), 3 of 3 pre-registered pairs passed, 0 compactions against 3 | Cost measured in Claude Code on Claude Opus 5.5, not yet in Codex |
|
|
291
|
+
| Memory | Each fact keeps two times: when it was true and when the Gateway learned it | Not a cost feature; Claude Code and Codex on one account share one store, tested end to end | Small evals so far; the memory block adds input tokens to a new session's first request |
|
|
292
|
+
| Skills | A skill catalog on the Gateway for your account; it loads the skill that matches your message | Not a cost feature | Imports come from GitHub; a loaded skill adds its whole body to the prompt |
|
|
293
|
+
| Search | Searches the prompts, commands and tool output that passed through, in the console and as an agent tool | Not a cost feature | The console searches the first 4,000 characters of each tool result |
|
|
294
|
+
| Session resume | One command rebuilds a conversation as a native Claude Code or Codex session | Not a cost feature | Brings back text, tool names and a summary, not every tool output; the command expires after 15 minutes |
|
|
295
|
+
| Active Context | Sets how much a thread carries before its oldest parts move to the archive: 200K, 500K or 1M tokens | Not a cost feature | An image older than the kept part becomes a short note and cannot be read back |
|
|
296
|
+
| Instructions | One text of at most 4,096 characters that tells every agent how to answer you | Read from the provider cache after the first request | Changes how the agent writes, not what it does |
|
|
297
|
+
| Protect | A tool-call firewall: checks shell commands, file reads and writes, web fetches and tool-server calls by what they do | No block-rate study yet | Reads the call, not the program: a script file or a path built at run time is not checked; off until you turn it on |
|
|
298
|
+
| Prompt caching | Keeps requests cache-friendly: cache marks on the fixed part of the prompt and a cache for fetched pages | Inside the measured costs above | The provider accepts at most 4 cache marks |
|
|
299
|
+
| Live and Analytics | Shows each request and what the Gateway saved, as it happens and over time | Not a cost feature | Sees only requests that pass through the Gateway |
|
|
300
|
+
|
|
301
|
+
Apps: Claude Code, Claude Desktop, Codex, Codex Desktop, T3 Code, OpenCode and Pi.
|
|
302
|
+
Setup is one command, `npx @context-mode/cli`. It signs you in and writes one config change per agent (it needs Node 20.12 or later).
|
|
303
|
+
Your own Claude or OpenAI account pays the model, and we add no fee on tokens.
|
|
304
|
+
Every plan has every feature. Free: 1,000 requests a month, no card; the count starts again on the first day of each month (UTC).
|
|
305
|
+
Plans and prices: [https://contextmode.ai/pricing](https://contextmode.ai/pricing). Enterprise can run in your own Cloudflare account, where you hold the data, the keys and the logs.
|
|
306
|
+
|
|
307
|
+
Limits today: the Gateway does not run your code in an OS sandbox, has no SSO or team roles yet, and routes to Anthropic and OpenAI only.
|
|
308
|
+
Requests pass through the Gateway server, so it is not local only. Protect reads the call, not the program, so keep your agent's sandbox on.
|
|
309
|
+
|
|
310
|
+
**Start free at [contextmode.ai](https://contextmode.ai).**
|
|
311
|
+
|
|
312
|
+
## 9. Adoption
|
|
313
|
+
|
|
314
|
+
<picture>
|
|
315
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/mksglu/context-mode/main/docs/assets/readme/star-history-dark.png">
|
|
316
|
+
<img src="https://raw.githubusercontent.com/mksglu/context-mode/main/docs/assets/readme/star-history-light.png" alt="Line chart of cumulative GitHub stars for mksglu/context-mode, from 0 on 2026-02-23 to 33,053 on 2026-11-01.">
|
|
317
|
+
</picture>
|
|
318
|
+
|
|
319
|
+
**Figure 5.** GitHub stars over time, from the stargazers API; the last point is the live count, 33,053, read on 2026-11-01.
|
|
320
|
+
|
|
321
|
+
- **Users.** 747.4k+ users: 683.2k+ from npm and 64.1k+ from the plugin marketplace ([stats.json](https://github.com/mksglu/context-mode/blob/main/stats.json), 2026-11-01).
|
|
322
|
+
- **Hacker News.** "MCP server that reduces Claude Code context consumption by 98%" reached the front page with 570+ points and 107 comments on 2026-02-28 ([thread](https://news.ycombinator.com/item?id=47193064)).
|
|
323
|
+
- **GitHub Trending.** A bot that watches GitHub Trending logged the repo there on 14 days from 2026-04-24 to 2026-10-17 ([uibm/trending-watcher](https://github.com/uibm/trending-watcher/issues?q=%22mksglu%2Fcontext-mode%22)).
|
|
324
|
+
- **Companies.** Engineers at the companies under Figure 1 starred the repo.
|
|
325
|
+
|
|
326
|
+
## Limitations
|
|
327
|
+
|
|
328
|
+
- The bench measures bytes, not dollars or task success. A token count here is bytes / 4, an estimate.
|
|
329
|
+
- Small outputs gain little. Search replies (category b) return text on purpose, so their cut is lower than the headline; the full file has it.
|
|
330
|
+
- The bench ran on one machine (macOS arm64) on 2.0.0-next.8; the live hook proof is for 2.0.0-next.15.
|
|
331
|
+
- VS Code and Kiro hooks are not yet proven live. Two Windows shell defects are open (Qwen Code, Kiro).
|
|
332
|
+
- The sandbox does not isolate code from your system (section 7).
|
|
333
|
+
- Gateway costs come from Claude Code on Claude Opus 5.5. On the 1M-window run, only 3 of 4 pairs passed the exact-accuracy rule. No Codex A/B yet.
|
|
334
|
+
- Known gaps: [OPEN-ITEMS.md](https://github.com/mksglu/context-mode/blob/274600e2ffab843e89c1dfa09b0d649e650c962f/docs/v2/OPEN-ITEMS.md).
|
|
335
|
+
|
|
336
|
+
## License
|
|
337
|
+
|
|
338
|
+
[Elastic License 2.0](https://github.com/mksglu/context-mode/blob/main/LICENSE) (ELv2), source-available. You may use, copy, change and share the code, and use it at work.
|
|
339
|
+
You may not do two things:
|
|
340
|
+
|
|
341
|
+
1. Offer it to others as a hosted or managed service.
|
|
342
|
+
2. Remove, hide or get around its license notices or license key functions.
|
|
343
|
+
|
|
344
|
+
We chose ELv2 so the source stays open to all, but no one can sell it back as a closed hosted service.
|
|
345
|
+
|
|
346
|
+
## Cite
|
|
347
|
+
|
|
348
|
+
If you use Context Mode in research, cite it as below. GitHub also reads [CITATION.cff](https://github.com/mksglu/context-mode/blob/main/CITATION.cff).
|
|
349
|
+
|
|
350
|
+
```bibtex
|
|
351
|
+
@software{koseoglu_context_mode_2026,
|
|
352
|
+
author = {Koseoglu, Mert},
|
|
353
|
+
title = {Context Mode: Keeping Tool Output Out of a Coding Agent's Context Window},
|
|
354
|
+
year = {2026},
|
|
355
|
+
version = {2.0.0-next.21},
|
|
356
|
+
url = {https://github.com/mksglu/context-mode},
|
|
357
|
+
license = {Elastic-2.0}
|
|
358
|
+
}
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
## Support
|
|
362
|
+
|
|
363
|
+
Report a defect on [Discord](https://discord.gg/DCN9jUgN5v) with the full `/ctx-doctor` report.
|
|
364
|
+
Only v2 gets fixes. This repo does not take pull requests.
|
|
365
|
+
|
|
366
|
+
Docs: [docs/install/README.md](https://github.com/mksglu/context-mode/blob/main/docs/install/README.md) (install, options, uninstall), [docs/how-it-works.md](https://github.com/mksglu/context-mode/blob/main/docs/how-it-works.md), [docs/algorithms.md](https://github.com/mksglu/context-mode/blob/main/docs/algorithms.md) (search, ranking, size limits, deny rules), [docs/tools.md](https://github.com/mksglu/context-mode/blob/main/docs/tools.md), [bench/evidence/](https://github.com/mksglu/context-mode/blob/main/bench/evidence/README.md).
|
package/SHA256SUMS
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
78b2c2d0762052aa1e6302338dc6602bc221e098b6f3eb0607bfa5b701b84e7f .claude-plugin/marketplace.json
|
|
2
|
+
d09449a742529baed440bcfdafefc5273fbaa6195d7ec53db3afcb49c8f292fd .claude-plugin/plugin.json
|
|
3
3
|
187503e1455560d4ab5a72e3b8cd2f274abd4ccc5faa60dd66c37e44bb5f10c2 .codex-plugin/hooks.json
|
|
4
4
|
4edea851775bc3f0418f8d9cf6ead74f2767c3a9e3b8c05749eacb78ebb3b896 .codex-plugin/mcp.json
|
|
5
|
-
|
|
5
|
+
4a11cf71ac734a96eda85d466fa6e3c0e5c8252c42f0f45c0cbc21bab5b2ac40 .codex-plugin/plugin.json
|
|
6
|
+
92f11a867c41c9e575ccb978ff205ae2011c244a14aa3c576e914e537105caa0 LICENSE
|
|
7
|
+
cba13b86c4aef6c7edbe0088338368f82debdac4c2ffe7f8459abfdb86526d12 README.md
|
|
6
8
|
1773e40a89384dd1af9023ba533da1908f3e2435dbaaa7cc941edf0514148313 claude-code/skills/ctx-doctor/SKILL.md
|
|
7
9
|
34fffb9c76d69c551f07036230bec0fbaca7a69177a5a47f89ddb9a9990a1fa2 claude-code/skills/ctx-stats/SKILL.md
|
|
8
10
|
d8f835d2f2b3eb70c5902f8707e7c5857977cec9e20ace76c499378a04e178e0 claude-code/skills/ctx-upgrade/SKILL.md
|
|
@@ -10,9 +12,9 @@ a69c0fac9c978267f9e8676a6fe9c754a72a3e898975be5e78d90698c7142961 cli.mjs
|
|
|
10
12
|
83c297020ed0c592fc68c9c482546a6999d41df5d06d8a329498f10edb1bd38e codex/skills/ctx-doctor/SKILL.md
|
|
11
13
|
adc2c374f699d3698110920bb48411965de09fc6e7232ce59c913f6d58c0d738 codex/skills/ctx-stats/SKILL.md
|
|
12
14
|
5c12cdd19a5e3ed7d9ba3a47b24d03864a28d36cf7006876284ee07cd4221ec4 codex/skills/ctx-upgrade/SKILL.md
|
|
13
|
-
|
|
15
|
+
24d6d075bc11813ab1f385769a7ea5d7cc9042f1d91d342f139d5ef64e1601db copilot/plugin.json
|
|
14
16
|
e3bc6cae0bd51b806d81631879711bbc48c679fc929b2642ed4634438364167d fixtures/hook-roundtrip.json
|
|
15
|
-
|
|
17
|
+
e5ce1ca2a2ca012fcc4969a948b3ad9d14ebf8fe590bc9e63456caf0fe10a2f0 gemini-extension.json
|
|
16
18
|
b58303ab9c463e36c85ad20ecf375080c049d82f7dd1e2dd5fbcff4b8830a72c hook.mjs
|
|
17
19
|
1f8d8650d2b38737522cab6b875878e8baf84a74acf98cd924c7af22852d873f hooks/claude-code.json
|
|
18
20
|
2524a0eb52683b65c65943c5097db513e9845ba14e84324b39e9a8ea2bb43193 hooks/codex.json
|
|
@@ -22,16 +24,16 @@ f336d1db67de49e641687bbd41ba1a9424e31dfe2377b2284bf44358288ebd8b hooks/kiro.jso
|
|
|
22
24
|
017c9cc3997dd53231b8548b1a1609fddc51177af53501565a4f334602039860 hooks/qwen.json
|
|
23
25
|
33f69267645338d0dc392ce551dcd7c69a0b508113469d6ea637d3f34239ef1d hooks/vscode.json
|
|
24
26
|
085630bccf2073ac9a62be24ef91dfc47d106092dc82c822db70890b7d3ae1c0 hooks/zcode.json
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
fb5c6963b8189ae002c55b977a0a025c8b1922f7528d333a31cf3becf6be1f58 opencode/plugin.js
|
|
28
|
+
2bd64bbc0ebc92169bb28c4f95728182d11c637831857a57a578ec7aa7370d12 package.json
|
|
29
|
+
2a90a54358c774d1ce408e72e06a4bd674d4da547034121493938387f47891bd pi/index.js
|
|
28
30
|
8712881622c9905aa4836af50d903042d34a91506264e459bc7839331f6f0192 pi/skills/ctx-doctor/SKILL.md
|
|
29
31
|
8d6e8e2a82eb079bddc60727f52d9f9a6e0bf9e15391357fed82ee76ab5fe76c pi/skills/ctx-stats/SKILL.md
|
|
30
32
|
db6f9c006bc864a7271f1eeffb1e316ebb537a3414f1c22f8b9de0a896e8e3c5 pi/skills/ctx-upgrade/SKILL.md
|
|
31
|
-
|
|
33
|
+
9635619184b5e38c008caa885e5a2e15b08d99f5723f297451d7c26ab212754b qwen-extension.json
|
|
32
34
|
28a957921c1dd24aef587fc0f8c6835de1cbbe49eff18104c5d1dd70c0297aad run.mjs
|
|
33
35
|
28a957921c1dd24aef587fc0f8c6835de1cbbe49eff18104c5d1dd70c0297aad search.mjs
|
|
34
|
-
|
|
36
|
+
d8ed0ff40e93768e16ab906cf73c95a0510e1ff5f5dfe73bcd1689c44c1a1a5e server.mjs
|
|
35
37
|
e5503a22a6238901484d123efc11d2d933aa9a54c6ac2018812cfa65ec4e53e3 skills/ctx-doctor/SKILL.md
|
|
36
38
|
1044587a1906c69f2467c089a25e19819a290ea5728389bd1f086c6dfc0d0c51 skills/ctx-stats/SKILL.md
|
|
37
39
|
c1cac75b7506ee0d06089ce611ac6dc9314cf12435da318ce88ad50e2c5debbf skills/ctx-upgrade/SKILL.md
|
package/copilot/plugin.json
CHANGED
package/gemini-extension.json
CHANGED
package/opencode/plugin.js
CHANGED
|
@@ -362,7 +362,7 @@ var DECISION_OPTION_KEY = "option";
|
|
|
362
362
|
var DECISION_LABEL_JOIN = " | ";
|
|
363
363
|
var RELEASE_REPO_URL = "https://github.com/mksglu/context-mode.git";
|
|
364
364
|
var RELEASE_BRANCH = "release";
|
|
365
|
-
var BUNDLE_SHA = true ? "
|
|
365
|
+
var BUNDLE_SHA = true ? "68e0af5aafeaa4c61af68ee8d8e347cddb887f81" : void 0;
|
|
366
366
|
var DOCTOR_CHECK_ORDER = Object.freeze(["D1", "D2", "D3", "D4", "D5", "D5b", "D6", "D7", "D8", "D9", "D10", "D11"]);
|
|
367
367
|
var DOCTOR_LABEL = Object.freeze({
|
|
368
368
|
D1: "version",
|
package/package.json
CHANGED
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
"files": [
|
|
17
17
|
".claude-plugin",
|
|
18
18
|
".codex-plugin",
|
|
19
|
+
"LICENSE",
|
|
20
|
+
"README.md",
|
|
19
21
|
"SHA256SUMS",
|
|
20
22
|
"claude-code",
|
|
21
23
|
"cli.mjs",
|
|
@@ -67,5 +69,5 @@
|
|
|
67
69
|
"url": "git+https://github.com/mksglu/context-mode.git"
|
|
68
70
|
},
|
|
69
71
|
"type": "module",
|
|
70
|
-
"version": "2.0.0-next.
|
|
72
|
+
"version": "2.0.0-next.23"
|
|
71
73
|
}
|
package/pi/index.js
CHANGED
|
@@ -11508,7 +11508,7 @@ var DECISION_OPTION_KEY = "option";
|
|
|
11508
11508
|
var DECISION_LABEL_JOIN = " | ";
|
|
11509
11509
|
var RELEASE_REPO_URL = "https://github.com/mksglu/context-mode.git";
|
|
11510
11510
|
var RELEASE_BRANCH = "release";
|
|
11511
|
-
var BUNDLE_SHA = true ? "
|
|
11511
|
+
var BUNDLE_SHA = true ? "68e0af5aafeaa4c61af68ee8d8e347cddb887f81" : void 0;
|
|
11512
11512
|
var DOCTOR_CHECK_ORDER = Object.freeze(["D1", "D2", "D3", "D4", "D5", "D5b", "D6", "D7", "D8", "D9", "D10", "D11"]);
|
|
11513
11513
|
var DOCTOR_LABEL = Object.freeze({
|
|
11514
11514
|
D1: "version",
|
package/qwen-extension.json
CHANGED
package/server.mjs
CHANGED
|
@@ -28343,7 +28343,7 @@ var DECISION_SOURCE = "decision";
|
|
|
28343
28343
|
var DECISION_USER_LABEL = "decision (user)";
|
|
28344
28344
|
var RELEASE_REPO_URL = "https://github.com/mksglu/context-mode.git";
|
|
28345
28345
|
var RELEASE_BRANCH = "release";
|
|
28346
|
-
var BUNDLE_SHA = true ? "
|
|
28346
|
+
var BUNDLE_SHA = true ? "68e0af5aafeaa4c61af68ee8d8e347cddb887f81" : void 0;
|
|
28347
28347
|
var DOCTOR_CHECK_ORDER = Object.freeze(["D1", "D2", "D3", "D4", "D5", "D5b", "D6", "D7", "D8", "D9", "D10", "D11"]);
|
|
28348
28348
|
var DOCTOR_LABEL = Object.freeze({
|
|
28349
28349
|
D1: "version",
|