Calcium-Ion/dsh-ptc-moejs

A PTC runtime for DeepSeek Harness that runs the model's TypeScript programs in moejs, a JavaScript engine written in Go — a fresh runtime per run inside one long-lived sidecar, instead of starting a Node process per program.

Each program gets a fresh moejs runtime inside one sidecar process that stays up between programs, so the model's code cannot leak state from a previous run while the process startup cost is paid once. TypeScript is handled on the Go runtime rather than through Node's toolchain, and the runtime is shipped as one static binary. Limits are enforced per run (deadline and memory budget), and the README lists what a program sees — the tool surface — separately from what it can reach.

Development & Runtime ★ 3
View on GitHub ↗

Install

dsh plugin --profile web add dsh-ptc-moejs

The npm line from the README's quick start; the package resolves on the public registry and its registry metadata points back at this repository. The sidecar is a static Go binary that dsh starts as a plain child process.

Compatibility

PTC mode is dsh's mode where the model answers with a TypeScript program that calls tools. The README's own measurement: a program with three tool calls takes 0.18 ms here and 95 ms on dsh's Node runtime, because that runtime starts a Node process per program. Every effect a program has on the machine is still a tool call, so dsh's own policy, approvals and sandbox apply; a run stops at its deadline even in an endless loop, and when it passes its memory budget. The README also documents the differences from the Node runtime and a configuration section for the sidecar.

Details

Alternatives

xxiaoxiong/dsh-prometheus · labmimors/dsh-mcp-lens · JFWaskin/dsh-git-nexus

More plugins in Development & Runtime

Browse more in Development & Runtime

Guides for Development & Runtime plugins