context-mode 0.5.25 → 0.6.0
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/hooks/hooks.json +16 -0
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +2 -24
- package/build/server.js +424 -92
- package/build/store.d.ts +5 -0
- package/build/store.js +20 -0
- package/package.json +1 -1
- package/skills/context-mode/SKILL.md +8 -42
- package/server.bundle.mjs +0 -261
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "Context-mode tool routing — injects MCP tool instructions into subagent prompts",
|
|
3
|
+
"hooks": {
|
|
4
|
+
"PreToolUse": [
|
|
5
|
+
{
|
|
6
|
+
"matcher": "Task",
|
|
7
|
+
"hooks": [
|
|
8
|
+
{
|
|
9
|
+
"type": "command",
|
|
10
|
+
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/task-inject.sh"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"name": "context-mode",
|
|
14
14
|
"source": "./",
|
|
15
15
|
"description": "Claude Code MCP plugin that saves 98% of your context window. Sandboxed code execution in 10 languages, FTS5 knowledge base with BM25 ranking, and intent-driven search.",
|
|
16
|
-
"version": "0.5.
|
|
16
|
+
"version": "0.5.26",
|
|
17
17
|
"author": {
|
|
18
18
|
"name": "Mert Koseoğlu"
|
|
19
19
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "context-mode",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Claude Code MCP plugin that saves 98% of your context window. Sandboxed code execution in 10 languages, FTS5 knowledge base with BM25 ranking, and intent-driven search.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Mert Koseoğlu",
|
|
@@ -25,27 +25,5 @@
|
|
|
25
25
|
"args": ["${CLAUDE_PLUGIN_ROOT}/start.sh"]
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
-
"skills": "./skills/"
|
|
29
|
-
"hooks": {
|
|
30
|
-
"PreToolUse": [
|
|
31
|
-
{
|
|
32
|
-
"matcher": "Bash",
|
|
33
|
-
"hooks": [
|
|
34
|
-
{
|
|
35
|
-
"type": "prompt",
|
|
36
|
-
"prompt": "Always allow this Bash call to proceed. This is a routing reminder, not a blocker. Default to mcp__context-mode__execute for ALL Bash commands. ONLY use Bash for these guaranteed-small-output operations: file mutations (mkdir, mv, cp, rm, touch, chmod), git writes (git add, git commit, git push, git checkout, git branch, git merge, git pull, git rebase), navigation (cd, pwd, which), process control (kill, pkill), package management (npm install/publish, pip install), and simple echo/printf. Everything else — any command that reads, queries, fetches, lists, logs, tests, builds, diffs, inspects, or calls an external service — should use mcp__context-mode__execute instead. When uncertain, prefer context-mode for future calls."
|
|
37
|
-
}
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"matcher": "Task",
|
|
42
|
-
"hooks": [
|
|
43
|
-
{
|
|
44
|
-
"type": "prompt",
|
|
45
|
-
"prompt": "Always allow this Task call to proceed. This is a routing reminder, not a blocker. The subagent inherits MCP tools but NOT skill instructions. When the subagent prompt involves fetching URLs, running CLI commands, or processing large files, include these tool names in the prompt so the subagent uses them: mcp__context-mode__execute (language, code, intent), mcp__context-mode__fetch_and_index (url, source), mcp__context-mode__search (query, source), mcp__context-mode__execute_file (path, language, code). Also tell the subagent: do NOT use Bash, Read, or WebFetch for large outputs."
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
}
|
|
28
|
+
"skills": "./skills/"
|
|
51
29
|
}
|