Skills Plugins MCP Prompt Model 导航 博客 资讯 我的中心

dsh-code-runtime-kernels

为 DeepSeek Harness 提供持久 Python/JavaScript 内核的 run_kernel_code 工具。

hy-sde @hy-sde ⬇ 1 ★ 1 main

安装

dsh plugin --profile web add github:hy-sde/dsh-code-runtime-kernels
下载安装清单

需要可复现安装时,可在仓库后追加 #commit 固定提交。

为 DeepSeek Harness 提供持久 Python/JavaScript 内核的 run_kernel_code 工具。

该插件未提供要点说明,请参考仓库 README。

  1. 安装并启动 DeepSeek Harness:npx @deepseek-ai/dsh web
  2. 在终端执行上面的安装命令(CLI 会解析插件并核验来源)
  3. 用 dsh plugins list 确认已安装,必要时重启 Harness 生效

插件以当前 dsh 进程的权限运行,安装时可能执行代码。请先通读仓库源码与许可证,确认无破坏性命令与越权访问;本站只做索引,不对第三方插件安全性作担保。

代码仓库github.com/hy-sde/dsh-code-runtime-kernels
许可证未标注(见仓库)
主要语言main
下载量1
GitHub 星标1
最近推送2026-08-20
收录日期2026-09-19
分类工具与能力

事实信息来自公开插件目录快照(2026-10-01),介绍文案由本站再加工。

以下为插件仓库 README 全文(原始内容,由公开目录抓取整理)。

# dsh-code-runtime-kernels

**Persistent Python + JavaScript kernels for DeepSeek Harness** — a standalone
plugin repo hosting ONE package,
[`@hy-sde-org/dsh-code-runtime-kernels`](./packages/code-runtime-kernels/), that
gives the model a first-class `run_kernel_code` tool with `session`/`reset`
state, execution counts, and both languages — with **zero upstream harness
changes** required.

```
packages/code-runtime-kernels/
  src/
    core/           shared host driver: NDJSON protocol, `KernelHost`
                    (spawn+handshake, hostile-peer parsing, interrupt
                    escalation, shutdown), `SessionRegistry` (serialize,
                    reset, replace-and-retry), output ledger, binding
                    validation, invariant
    python/runner.ts   embedded self-contained Python kernel (stdlib only)
    nodejs/runner.ts   compiled self-contained Node.js kernel (builtins only)
    index.ts            plugin: config, KernelManager, run_kernel_code tool
  tests/            kernels.spec.ts + tool.spec.ts (real subprocesses,
                    36 tests)
  cordis.patch.yml  the bundle row deployments mount
```

Design decisions:
- **One plugin, two providers, one core.** Both kernels share the driver in
  `src/core/`; each language contributes only its runner and a
  `KernelRuntimeProfile`. Adding a language means a runner + a profile, not a
  driver fork.
- **Own tool surface.** Upstream `run_code` cannot carry sessions, so this
  plugin owns `run_kernel_code(language, code, session?, reset?)` and reuses the
  seam's result vocabulary (`error.kind` of `exception`/`timeout`/`abort`/
  `worker-exit`/`invalid-output`/`output-limit`), exactly like the sibling
  [`dsh-tool-ast`](https://github.com/hy-sde/dsh-tool-ast) owns `ast_grep`/
  `ast_edit`.
- **Process confinement, not a security boundary**, matching the harness's own
  `process` backends.

## Quick start

```bash
pnpm install
pnpm check     # tsc
pnpm test      # vitest — real python3/node subprocesses
pnpm build     # tsc → dist
bash scripts/release-public.sh --check
```

Mount the bundle (`@hy-sde-org/dsh-code-runtime-kernels` row from
`cordis.patch.yml`) into any deployment, and the model gets `run_kernel_code`.
Full docs in the [package README](./packages/code-runtime-kernels/README.md).

## License

MIT. Portions derived from
[oh-my-pi](https://github.com/can1357/oh-my-pi) (MIT, © 2025 Mario Zechner,
© 2025-2026 Can Bölük) — see
[THIRD-PARTY-NOTICES.md](./THIRD-PARTY-NOTICES.md).

数据来源:公开的 DeepSeek Harness 插件目录与各插件 GitHub 仓库。本站为独立第三方目录,与 DeepSeek、幻方(High-Flyer)及插件作者均无隶属或背书关系。

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。