context-mode 1.0.42 → 1.0.44

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.
@@ -7,41 +7,41 @@ You have context-mode MCP tools available. These rules are NOT optional — they
7
7
  ### curl / wget — FORBIDDEN
8
8
  Do NOT use `curl` or `wget` in any shell command. They dump raw HTTP responses directly into your context window.
9
9
  Instead use:
10
- - `mcp__context-mode__ctx_fetch_and_index(url, source)` to fetch and index web pages
11
- - `mcp__context-mode__ctx_execute(language: "javascript", code: "const r = await fetch(...)")` to run HTTP calls in sandbox
10
+ - `ctx_fetch_and_index(url, source)` to fetch and index web pages
11
+ - `ctx_execute(language: "javascript", code: "const r = await fetch(...)")` to run HTTP calls in sandbox
12
12
 
13
13
  ### Inline HTTP — FORBIDDEN
14
14
  Do NOT run inline HTTP calls via `node -e "fetch(..."`, `python -c "requests.get(..."`, or similar patterns. They bypass the sandbox and flood context.
15
15
  Instead use:
16
- - `mcp__context-mode__ctx_execute(language, code)` to run HTTP calls in sandbox — only stdout enters context
16
+ - `ctx_execute(language, code)` to run HTTP calls in sandbox — only stdout enters context
17
17
 
18
18
  ### Direct web fetching — FORBIDDEN
19
19
  Do NOT use any direct URL fetching tool. Raw HTML can exceed 100 KB.
20
20
  Instead use:
21
- - `mcp__context-mode__ctx_fetch_and_index(url, source)` then `mcp__context-mode__ctx_search(queries)` to query the indexed content
21
+ - `ctx_fetch_and_index(url, source)` then `ctx_search(queries)` to query the indexed content
22
22
 
23
23
  ## REDIRECTED tools — use sandbox equivalents
24
24
 
25
25
  ### Shell (>20 lines output)
26
26
  Shell is ONLY for: `git`, `mkdir`, `rm`, `mv`, `cd`, `ls`, `npm install`, `pip install`, and other short-output commands.
27
27
  For everything else, use:
28
- - `mcp__context-mode__ctx_batch_execute(commands, queries)` — run multiple commands + search in ONE call
29
- - `mcp__context-mode__ctx_execute(language: "shell", code: "...")` — run in sandbox, only stdout enters context
28
+ - `ctx_batch_execute(commands, queries)` — run multiple commands + search in ONE call
29
+ - `ctx_execute(language: "shell", code: "...")` — run in sandbox, only stdout enters context
30
30
 
31
31
  ### File reading (for analysis)
32
32
  If you are reading a file to **edit** it → reading is correct (edit needs content in context).
33
- If you are reading to **analyze, explore, or summarize** → use `mcp__context-mode__ctx_execute_file(path, language, code)` instead. Only your printed summary enters context. The raw file stays in the sandbox.
33
+ If you are reading to **analyze, explore, or summarize** → use `ctx_execute_file(path, language, code)` instead. Only your printed summary enters context. The raw file stays in the sandbox.
34
34
 
35
35
  ### grep / search (large results)
36
- Search results can flood context. Use `mcp__context-mode__ctx_execute(language: "shell", code: "grep ...")` to run searches in sandbox. Only your printed summary enters context.
36
+ Search results can flood context. Use `ctx_execute(language: "shell", code: "grep ...")` to run searches in sandbox. Only your printed summary enters context.
37
37
 
38
38
  ## Tool selection hierarchy
39
39
 
40
- 1. **GATHER**: `mcp__context-mode__ctx_batch_execute(commands, queries)` — Primary tool. Runs all commands, auto-indexes output, returns search results. ONE call replaces 30+ individual calls.
41
- 2. **FOLLOW-UP**: `mcp__context-mode__ctx_search(queries: ["q1", "q2", ...])` — Query indexed content. Pass ALL questions as array in ONE call.
42
- 3. **PROCESSING**: `mcp__context-mode__ctx_execute(language, code)` | `mcp__context-mode__ctx_execute_file(path, language, code)` — Sandbox execution. Only stdout enters context.
43
- 4. **WEB**: `mcp__context-mode__ctx_fetch_and_index(url, source)` then `mcp__context-mode__ctx_search(queries)` — Fetch, chunk, index, query. Raw HTML never enters context.
44
- 5. **INDEX**: `mcp__context-mode__ctx_index(content, source)` — Store content in FTS5 knowledge base for later search.
40
+ 1. **GATHER**: `ctx_batch_execute(commands, queries)` — Primary tool. Runs all commands, auto-indexes output, returns search results. ONE call replaces 30+ individual calls.
41
+ 2. **FOLLOW-UP**: `ctx_search(queries: ["q1", "q2", ...])` — Query indexed content. Pass ALL questions as array in ONE call.
42
+ 3. **PROCESSING**: `ctx_execute(language, code)` | `ctx_execute_file(path, language, code)` — Sandbox execution. Only stdout enters context.
43
+ 4. **WEB**: `ctx_fetch_and_index(url, source)` then `ctx_search(queries)` — Fetch, chunk, index, query. Raw HTML never enters context.
44
+ 5. **INDEX**: `ctx_index(content, source)` — Store content in FTS5 knowledge base for later search.
45
45
 
46
46
  ## Output constraints
47
47
 
@@ -0,0 +1,27 @@
1
+ ---
2
+ description: context-mode routing rules — context window protection
3
+ alwaysApply: true
4
+ ---
5
+
6
+ # context-mode
7
+
8
+ Raw tool output floods your context window. Use context-mode MCP tools to keep raw data in the sandbox.
9
+
10
+ ## Tool Selection
11
+
12
+ 1. **GATHER**: `ctx_batch_execute(commands, queries)` — Primary tool for research. Runs all commands, auto-indexes, and searches. ONE call replaces many individual steps.
13
+ 2. **FOLLOW-UP**: `ctx_search(queries: ["q1", "q2", ...])` — Use for all follow-up questions. ONE call, many queries.
14
+ 3. **PROCESSING**: `ctx_execute(language, code)` or `ctx_execute_file(path, language, code)` — Use for API calls, log analysis, and data processing.
15
+ 4. **WEB**: `ctx_fetch_and_index(url)` then `ctx_search(queries)` — Fetch, index, then query. Never dump raw HTML.
16
+
17
+ ## Rules
18
+
19
+ - DO NOT use Bash for commands producing >20 lines of output — use `ctx_execute` or `ctx_batch_execute`.
20
+ - DO NOT use Read for analysis — use `ctx_execute_file`. Read IS correct for files you intend to Edit.
21
+ - DO NOT use curl/wget in terminal — use `ctx_fetch_and_index`.
22
+ - Bash is ONLY for git, mkdir, rm, mv, navigation, and short commands.
23
+
24
+ ## Output
25
+
26
+ - Keep responses under 500 words.
27
+ - Write artifacts (code, configs) to FILES — never return them as inline text.
@@ -7,41 +7,41 @@ You have context-mode MCP tools available. These rules are NOT optional — they
7
7
  ### curl / wget — BLOCKED
8
8
  Any shell command containing `curl` or `wget` will be intercepted and blocked by the context-mode plugin. Do NOT retry.
9
9
  Instead use:
10
- - `mcp__context-mode__ctx_fetch_and_index(url, source)` to fetch and index web pages
11
- - `mcp__context-mode__ctx_execute(language: "javascript", code: "const r = await fetch(...)")` to run HTTP calls in sandbox
10
+ - `ctx_fetch_and_index(url, source)` to fetch and index web pages
11
+ - `ctx_execute(language: "javascript", code: "const r = await fetch(...)")` to run HTTP calls in sandbox
12
12
 
13
13
  ### Inline HTTP — BLOCKED
14
14
  Any shell command containing `fetch('http`, `requests.get(`, `requests.post(`, `http.get(`, or `http.request(` will be intercepted and blocked. Do NOT retry with shell.
15
15
  Instead use:
16
- - `mcp__context-mode__ctx_execute(language, code)` to run HTTP calls in sandbox — only stdout enters context
16
+ - `ctx_execute(language, code)` to run HTTP calls in sandbox — only stdout enters context
17
17
 
18
18
  ### Direct web fetching — BLOCKED
19
19
  Do NOT use any direct URL fetching tool. Use the sandbox equivalent.
20
20
  Instead use:
21
- - `mcp__context-mode__ctx_fetch_and_index(url, source)` then `mcp__context-mode__ctx_search(queries)` to query the indexed content
21
+ - `ctx_fetch_and_index(url, source)` then `ctx_search(queries)` to query the indexed content
22
22
 
23
23
  ## REDIRECTED tools — use sandbox equivalents
24
24
 
25
25
  ### Shell (>20 lines output)
26
26
  Shell is ONLY for: `git`, `mkdir`, `rm`, `mv`, `cd`, `ls`, `npm install`, `pip install`, and other short-output commands.
27
27
  For everything else, use:
28
- - `mcp__context-mode__ctx_batch_execute(commands, queries)` — run multiple commands + search in ONE call
29
- - `mcp__context-mode__ctx_execute(language: "shell", code: "...")` — run in sandbox, only stdout enters context
28
+ - `ctx_batch_execute(commands, queries)` — run multiple commands + search in ONE call
29
+ - `ctx_execute(language: "shell", code: "...")` — run in sandbox, only stdout enters context
30
30
 
31
31
  ### File reading (for analysis)
32
32
  If you are reading a file to **edit** it → reading is correct (edit needs content in context).
33
- If you are reading to **analyze, explore, or summarize** → use `mcp__context-mode__ctx_execute_file(path, language, code)` instead. Only your printed summary enters context.
33
+ If you are reading to **analyze, explore, or summarize** → use `ctx_execute_file(path, language, code)` instead. Only your printed summary enters context.
34
34
 
35
35
  ### grep / search (large results)
36
- Search results can flood context. Use `mcp__context-mode__ctx_execute(language: "shell", code: "grep ...")` to run searches in sandbox. Only your printed summary enters context.
36
+ Search results can flood context. Use `ctx_execute(language: "shell", code: "grep ...")` to run searches in sandbox. Only your printed summary enters context.
37
37
 
38
38
  ## Tool selection hierarchy
39
39
 
40
- 1. **GATHER**: `mcp__context-mode__ctx_batch_execute(commands, queries)` — Primary tool. Runs all commands, auto-indexes output, returns search results. ONE call replaces 30+ individual calls.
41
- 2. **FOLLOW-UP**: `mcp__context-mode__ctx_search(queries: ["q1", "q2", ...])` — Query indexed content. Pass ALL questions as array in ONE call.
42
- 3. **PROCESSING**: `mcp__context-mode__ctx_execute(language, code)` | `mcp__context-mode__ctx_execute_file(path, language, code)` — Sandbox execution. Only stdout enters context.
43
- 4. **WEB**: `mcp__context-mode__ctx_fetch_and_index(url, source)` then `mcp__context-mode__ctx_search(queries)` — Fetch, chunk, index, query. Raw HTML never enters context.
44
- 5. **INDEX**: `mcp__context-mode__ctx_index(content, source)` — Store content in FTS5 knowledge base for later search.
40
+ 1. **GATHER**: `ctx_batch_execute(commands, queries)` — Primary tool. Runs all commands, auto-indexes output, returns search results. ONE call replaces 30+ individual calls.
41
+ 2. **FOLLOW-UP**: `ctx_search(queries: ["q1", "q2", ...])` — Query indexed content. Pass ALL questions as array in ONE call.
42
+ 3. **PROCESSING**: `ctx_execute(language, code)` | `ctx_execute_file(path, language, code)` — Sandbox execution. Only stdout enters context.
43
+ 4. **WEB**: `ctx_fetch_and_index(url, source)` then `ctx_search(queries)` — Fetch, chunk, index, query. Raw HTML never enters context.
44
+ 5. **INDEX**: `ctx_index(content, source)` — Store content in FTS5 knowledge base for later search.
45
45
 
46
46
  ## Output constraints
47
47
 
@@ -7,41 +7,41 @@ You have context-mode MCP tools available. These rules are NOT optional — they
7
7
  ### curl / wget — BLOCKED
8
8
  Any shell command containing `curl` or `wget` will be intercepted and blocked by the context-mode plugin. Do NOT retry.
9
9
  Instead use:
10
- - `mcp__context-mode__ctx_fetch_and_index(url, source)` to fetch and index web pages
11
- - `mcp__context-mode__ctx_execute(language: "javascript", code: "const r = await fetch(...)")` to run HTTP calls in sandbox
10
+ - `context-mode_ctx_fetch_and_index(url, source)` to fetch and index web pages
11
+ - `context-mode_ctx_execute(language: "javascript", code: "const r = await fetch(...)")` to run HTTP calls in sandbox
12
12
 
13
13
  ### Inline HTTP — BLOCKED
14
14
  Any shell command containing `fetch('http`, `requests.get(`, `requests.post(`, `http.get(`, or `http.request(` will be intercepted and blocked. Do NOT retry with shell.
15
15
  Instead use:
16
- - `mcp__context-mode__ctx_execute(language, code)` to run HTTP calls in sandbox — only stdout enters context
16
+ - `context-mode_ctx_execute(language, code)` to run HTTP calls in sandbox — only stdout enters context
17
17
 
18
18
  ### Direct web fetching — BLOCKED
19
19
  Do NOT use any direct URL fetching tool. Use the sandbox equivalent.
20
20
  Instead use:
21
- - `mcp__context-mode__ctx_fetch_and_index(url, source)` then `mcp__context-mode__ctx_search(queries)` to query the indexed content
21
+ - `context-mode_ctx_fetch_and_index(url, source)` then `context-mode_ctx_search(queries)` to query the indexed content
22
22
 
23
23
  ## REDIRECTED tools — use sandbox equivalents
24
24
 
25
25
  ### Shell (>20 lines output)
26
26
  Shell is ONLY for: `git`, `mkdir`, `rm`, `mv`, `cd`, `ls`, `npm install`, `pip install`, and other short-output commands.
27
27
  For everything else, use:
28
- - `mcp__context-mode__ctx_batch_execute(commands, queries)` — run multiple commands + search in ONE call
29
- - `mcp__context-mode__ctx_execute(language: "shell", code: "...")` — run in sandbox, only stdout enters context
28
+ - `context-mode_ctx_batch_execute(commands, queries)` — run multiple commands + search in ONE call
29
+ - `context-mode_ctx_execute(language: "shell", code: "...")` — run in sandbox, only stdout enters context
30
30
 
31
31
  ### File reading (for analysis)
32
32
  If you are reading a file to **edit** it → reading is correct (edit needs content in context).
33
- If you are reading to **analyze, explore, or summarize** → use `mcp__context-mode__ctx_execute_file(path, language, code)` instead. Only your printed summary enters context.
33
+ If you are reading to **analyze, explore, or summarize** → use `context-mode_ctx_execute_file(path, language, code)` instead. Only your printed summary enters context.
34
34
 
35
35
  ### grep / search (large results)
36
- Search results can flood context. Use `mcp__context-mode__ctx_execute(language: "shell", code: "grep ...")` to run searches in sandbox. Only your printed summary enters context.
36
+ Search results can flood context. Use `context-mode_ctx_execute(language: "shell", code: "grep ...")` to run searches in sandbox. Only your printed summary enters context.
37
37
 
38
38
  ## Tool selection hierarchy
39
39
 
40
- 1. **GATHER**: `mcp__context-mode__ctx_batch_execute(commands, queries)` — Primary tool. Runs all commands, auto-indexes output, returns search results. ONE call replaces 30+ individual calls.
41
- 2. **FOLLOW-UP**: `mcp__context-mode__ctx_search(queries: ["q1", "q2", ...])` — Query indexed content. Pass ALL questions as array in ONE call.
42
- 3. **PROCESSING**: `mcp__context-mode__ctx_execute(language, code)` | `mcp__context-mode__ctx_execute_file(path, language, code)` — Sandbox execution. Only stdout enters context.
43
- 4. **WEB**: `mcp__context-mode__ctx_fetch_and_index(url, source)` then `mcp__context-mode__ctx_search(queries)` — Fetch, chunk, index, query. Raw HTML never enters context.
44
- 5. **INDEX**: `mcp__context-mode__ctx_index(content, source)` — Store content in FTS5 knowledge base for later search.
40
+ 1. **GATHER**: `context-mode_ctx_batch_execute(commands, queries)` — Primary tool. Runs all commands, auto-indexes output, returns search results. ONE call replaces 30+ individual calls.
41
+ 2. **FOLLOW-UP**: `context-mode_ctx_search(queries: ["q1", "q2", ...])` — Query indexed content. Pass ALL questions as array in ONE call.
42
+ 3. **PROCESSING**: `context-mode_ctx_execute(language, code)` | `context-mode_ctx_execute_file(path, language, code)` — Sandbox execution. Only stdout enters context.
43
+ 4. **WEB**: `context-mode_ctx_fetch_and_index(url, source)` then `context-mode_ctx_search(queries)` — Fetch, chunk, index, query. Raw HTML never enters context.
44
+ 5. **INDEX**: `context-mode_ctx_index(content, source)` — Store content in FTS5 knowledge base for later search.
45
45
 
46
46
  ## Output constraints
47
47
 
@@ -7,41 +7,41 @@ You have context-mode MCP tools available. These rules are NOT optional — they
7
7
  ### curl / wget — FORBIDDEN (hook-enforced)
8
8
  Do NOT use `curl` or `wget` in any `bash` command. Pi's `tool_call` hooks block these at the tool level. Even if they weren't blocked, they dump raw HTTP responses directly into your context window.
9
9
  Instead use:
10
- - `mcp__context-mode__ctx_fetch_and_index(url, source)` to fetch and index web pages
11
- - `mcp__context-mode__ctx_execute(language: "javascript", code: "const r = await fetch(...)")` to run HTTP calls in sandbox
10
+ - `ctx_fetch_and_index(url, source)` to fetch and index web pages
11
+ - `ctx_execute(language: "javascript", code: "const r = await fetch(...)")` to run HTTP calls in sandbox
12
12
 
13
13
  ### Inline HTTP — FORBIDDEN
14
14
  Do NOT run inline HTTP calls via `node -e "fetch(..."`, `python -c "requests.get(..."`, or similar patterns. They bypass the sandbox and flood context.
15
15
  Instead use:
16
- - `mcp__context-mode__ctx_execute(language, code)` to run HTTP calls in sandbox — only stdout enters context
16
+ - `ctx_execute(language, code)` to run HTTP calls in sandbox — only stdout enters context
17
17
 
18
18
  ### Direct web fetching — FORBIDDEN
19
19
  Do NOT use any direct URL fetching tool. Raw HTML can exceed 100 KB.
20
20
  Instead use:
21
- - `mcp__context-mode__ctx_fetch_and_index(url, source)` then `mcp__context-mode__ctx_search(queries)` to query the indexed content
21
+ - `ctx_fetch_and_index(url, source)` then `ctx_search(queries)` to query the indexed content
22
22
 
23
23
  ## REDIRECTED tools — use sandbox equivalents
24
24
 
25
25
  ### bash (>20 lines output)
26
26
  `bash` is ONLY for: `git`, `mkdir`, `rm`, `mv`, `cd`, `ls`, `npm install`, `pip install`, and other short-output commands.
27
27
  For everything else, use:
28
- - `mcp__context-mode__ctx_batch_execute(commands, queries)` — run multiple commands + search in ONE call
29
- - `mcp__context-mode__ctx_execute(language: "shell", code: "...")` — run in sandbox, only stdout enters context
28
+ - `ctx_batch_execute(commands, queries)` — run multiple commands + search in ONE call
29
+ - `ctx_execute(language: "shell", code: "...")` — run in sandbox, only stdout enters context
30
30
 
31
31
  ### read (for analysis)
32
32
  If you are reading a file to **edit** it → `read` is correct (edit needs content in context).
33
- If you are reading to **analyze, explore, or summarize** → use `mcp__context-mode__ctx_execute_file(path, language, code)` instead. Only your printed summary enters context. The raw file stays in the sandbox.
33
+ If you are reading to **analyze, explore, or summarize** → use `ctx_execute_file(path, language, code)` instead. Only your printed summary enters context. The raw file stays in the sandbox.
34
34
 
35
35
  ### grep / find (large results)
36
- Search results from `grep` or `find` can flood context. Use `mcp__context-mode__ctx_execute(language: "shell", code: "grep ...")` to run searches in sandbox. Only your printed summary enters context.
36
+ Search results from `grep` or `find` can flood context. Use `ctx_execute(language: "shell", code: "grep ...")` to run searches in sandbox. Only your printed summary enters context.
37
37
 
38
38
  ## Tool selection hierarchy
39
39
 
40
- 1. **GATHER**: `mcp__context-mode__ctx_batch_execute(commands, queries)` — Primary tool. Runs all commands, auto-indexes output, returns search results. ONE call replaces 30+ individual calls.
41
- 2. **FOLLOW-UP**: `mcp__context-mode__ctx_search(queries: ["q1", "q2", ...])` — Query indexed content. Pass ALL questions as array in ONE call.
42
- 3. **PROCESSING**: `mcp__context-mode__ctx_execute(language, code)` | `mcp__context-mode__ctx_execute_file(path, language, code)` — Sandbox execution. Only stdout enters context.
43
- 4. **WEB**: `mcp__context-mode__ctx_fetch_and_index(url, source)` then `mcp__context-mode__ctx_search(queries)` — Fetch, chunk, index, query. Raw HTML never enters context.
44
- 5. **INDEX**: `mcp__context-mode__ctx_index(content, source)` — Store content in FTS5 knowledge base for later search.
40
+ 1. **GATHER**: `ctx_batch_execute(commands, queries)` — Primary tool. Runs all commands, auto-indexes output, returns search results. ONE call replaces 30+ individual calls.
41
+ 2. **FOLLOW-UP**: `ctx_search(queries: ["q1", "q2", ...])` — Query indexed content. Pass ALL questions as array in ONE call.
42
+ 3. **PROCESSING**: `ctx_execute(language, code)` | `ctx_execute_file(path, language, code)` — Sandbox execution. Only stdout enters context.
43
+ 4. **WEB**: `ctx_fetch_and_index(url, source)` then `ctx_search(queries)` — Fetch, chunk, index, query. Raw HTML never enters context.
44
+ 5. **INDEX**: `ctx_index(content, source)` — Store content in FTS5 knowledge base for later search.
45
45
 
46
46
  ## Output constraints
47
47
 
@@ -7,41 +7,41 @@ You have context-mode MCP tools available. These rules are NOT optional — they
7
7
  ### curl / wget — FORBIDDEN
8
8
  Do NOT use `curl` or `wget` in any shell command. They dump raw HTTP responses directly into your context window.
9
9
  Instead use:
10
- - `mcp__context-mode__ctx_fetch_and_index(url, source)` to fetch and index web pages
11
- - `mcp__context-mode__ctx_execute(language: "javascript", code: "const r = await fetch(...)")` to run HTTP calls in sandbox
10
+ - `mcp:context-mode:ctx_fetch_and_index(url, source)` to fetch and index web pages
11
+ - `mcp:context-mode:ctx_execute(language: "javascript", code: "const r = await fetch(...)")` to run HTTP calls in sandbox
12
12
 
13
13
  ### Inline HTTP — FORBIDDEN
14
14
  Do NOT run inline HTTP calls via `node -e "fetch(..."`, `python -c "requests.get(..."`, or similar patterns. They bypass the sandbox and flood context.
15
15
  Instead use:
16
- - `mcp__context-mode__ctx_execute(language, code)` to run HTTP calls in sandbox — only stdout enters context
16
+ - `mcp:context-mode:ctx_execute(language, code)` to run HTTP calls in sandbox — only stdout enters context
17
17
 
18
18
  ### Direct web fetching — FORBIDDEN
19
19
  Do NOT use any direct URL fetching tool. Raw HTML can exceed 100 KB.
20
20
  Instead use:
21
- - `mcp__context-mode__ctx_fetch_and_index(url, source)` then `mcp__context-mode__ctx_search(queries)` to query the indexed content
21
+ - `mcp:context-mode:ctx_fetch_and_index(url, source)` then `mcp:context-mode:ctx_search(queries)` to query the indexed content
22
22
 
23
23
  ## REDIRECTED tools — use sandbox equivalents
24
24
 
25
25
  ### Shell (>20 lines output)
26
26
  Shell is ONLY for: `git`, `mkdir`, `rm`, `mv`, `cd`, `ls`, `npm install`, `pip install`, and other short-output commands.
27
27
  For everything else, use:
28
- - `mcp__context-mode__ctx_batch_execute(commands, queries)` — run multiple commands + search in ONE call
29
- - `mcp__context-mode__ctx_execute(language: "shell", code: "...")` — run in sandbox, only stdout enters context
28
+ - `mcp:context-mode:ctx_batch_execute(commands, queries)` — run multiple commands + search in ONE call
29
+ - `mcp:context-mode:ctx_execute(language: "shell", code: "...")` — run in sandbox, only stdout enters context
30
30
 
31
31
  ### File reading (for analysis)
32
32
  If you are reading a file to **edit** it → reading is correct (edit needs content in context).
33
- If you are reading to **analyze, explore, or summarize** → use `mcp__context-mode__ctx_execute_file(path, language, code)` instead. Only your printed summary enters context. The raw file stays in the sandbox.
33
+ If you are reading to **analyze, explore, or summarize** → use `mcp:context-mode:ctx_execute_file(path, language, code)` instead. Only your printed summary enters context. The raw file stays in the sandbox.
34
34
 
35
35
  ### grep / search (large results)
36
- Search results can flood context. Use `mcp__context-mode__ctx_execute(language: "shell", code: "grep ...")` to run searches in sandbox. Only your printed summary enters context.
36
+ Search results can flood context. Use `mcp:context-mode:ctx_execute(language: "shell", code: "grep ...")` to run searches in sandbox. Only your printed summary enters context.
37
37
 
38
38
  ## Tool selection hierarchy
39
39
 
40
- 1. **GATHER**: `mcp__context-mode__ctx_batch_execute(commands, queries)` — Primary tool. Runs all commands, auto-indexes output, returns search results. ONE call replaces 30+ individual calls.
41
- 2. **FOLLOW-UP**: `mcp__context-mode__ctx_search(queries: ["q1", "q2", ...])` — Query indexed content. Pass ALL questions as array in ONE call.
42
- 3. **PROCESSING**: `mcp__context-mode__ctx_execute(language, code)` | `mcp__context-mode__ctx_execute_file(path, language, code)` — Sandbox execution. Only stdout enters context.
43
- 4. **WEB**: `mcp__context-mode__ctx_fetch_and_index(url, source)` then `mcp__context-mode__ctx_search(queries)` — Fetch, chunk, index, query. Raw HTML never enters context.
44
- 5. **INDEX**: `mcp__context-mode__ctx_index(content, source)` — Store content in FTS5 knowledge base for later search.
40
+ 1. **GATHER**: `mcp:context-mode:ctx_batch_execute(commands, queries)` — Primary tool. Runs all commands, auto-indexes output, returns search results. ONE call replaces 30+ individual calls.
41
+ 2. **FOLLOW-UP**: `mcp:context-mode:ctx_search(queries: ["q1", "q2", ...])` — Query indexed content. Pass ALL questions as array in ONE call.
42
+ 3. **PROCESSING**: `mcp:context-mode:ctx_execute(language, code)` | `mcp:context-mode:ctx_execute_file(path, language, code)` — Sandbox execution. Only stdout enters context.
43
+ 4. **WEB**: `mcp:context-mode:ctx_fetch_and_index(url, source)` then `mcp:context-mode:ctx_search(queries)` — Fetch, chunk, index, query. Raw HTML never enters context.
44
+ 5. **INDEX**: `mcp:context-mode:ctx_index(content, source)` — Store content in FTS5 knowledge base for later search.
45
45
 
46
46
  ## Output constraints
47
47
 
@@ -3,7 +3,7 @@
3
3
  "name": "Context Mode",
4
4
  "kind": "tool",
5
5
  "description": "OpenClaw plugin that saves 98% of your context window. Sandboxed code execution in 11 languages, FTS5 knowledge base with BM25 ranking, and intent-driven search.",
6
- "version": "1.0.42",
6
+ "version": "1.0.44",
7
7
  "sandbox": {
8
8
  "mode": "permissive",
9
9
  "filesystem_access": "full",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "context-mode",
3
- "version": "1.0.42",
3
+ "version": "1.0.44",
4
4
  "type": "module",
5
5
  "description": "MCP plugin that saves 98% of your context window. Works with Claude Code, Gemini CLI, VS Code Copilot, OpenCode, and Codex CLI. Sandboxed code execution, FTS5 knowledge base, and intent-driven search.",
6
6
  "author": "Mert Koseoğlu",