dsh-plugin-context-mode

原生支持 context-mode (mksglu/context-mode),通过 SQLite FTS5 拦截工具大输出并提供 BM25+RRF 搜索与会话连续性恢复。默认开启:超过 4 KB 的工具输出会被替换成简短预览,全文索引进 ~/.context-mode/context.db,并在系统提示里加一段说明。其 ctx_execute、ctx_batch 工具以 DSH 自身的权限和环境变量运行 shell / Node / Python / PowerShell / cmd 命令(没有沙箱),ctx_index 可读取任意本地文件路径或抓取任意 http(s) 地址。

插件介绍

原生支持 context-mode (mksglu/context-mode),通过 SQLite FTS5 拦截工具大输出并提供 BM25+RRF 搜索与会话连续性恢复。默认开启:超过 4 KB 的工具输出会被替换成简短预览,全文索引进 ~/.context-mode/context.db,并在系统提示里加一段说明。其 ctx_execute、ctx_batch 工具以 DSH 自身的权限和环境变量运行 shell / Node / Python / PowerShell / cmd 命令(没有沙箱),ctx_index 可读取任意本地文件路径或抓取任意 http(s) 地址。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:Domush/dsh-plugin-context-mode

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。