Calcium-Ion/dsh-ptc-moejs ↗★ 6

dsh-ptc-moejs

PTC runtime for the DeepSeek Harness that runs model-written programs in moejs, a pure-Go JavaScript engine, inside a long-lived sidecar process under dsh's file sandbox 适合需要在安全隔离的沙箱环境中执行模型生成的JS代码的运行任务。

Package
dsh-ptc-moejs
Compatibility
Unverified
Harness peer range
>=0.2.1-rc.2 <0.3.0
Cordis peer range
~4.0.5
Version
0.1.3
License
MIT
Last updated
Oct 23, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Calcium-Ion/dsh-ptc-moejs

Configuration

Options go on the ptc-moejs row of the same patch:

- id: ptc-moejs
  disabled: false
  config:
    memoryLimitMb: 1024
    timeoutMs: 300000
OptionDefaultMeaning
timeoutMs120000Deadline of a run in milliseconds when the model asks for none. Tool calls and approvals count toward it.
maxTimeoutMs600000The longest deadline a run may ask for.
memoryLimitMb512MiB a run may allocate over its whole life, garbage included. Past it the run stops with timeout and a message that names the budget.
maxLogBytes16 MiBBytes of console output a run keeps, counted as the JSON array dsh stores. Output past it is dropped, a marker line ends the logs, and the run goes on.
maxValueBytes16 MiBBytes of the returned value as JSON. A larger value fails the run with output-limit. Error messages are cut to this size.
maxPendingCalls128Tool calls a run may have in flight at once. One more fails the run with protocol.
maxFrameBytes64 MiBThe largest message between dsh and the sidecar: a program, the arguments of a tool call or one tool result. A larger tool result reaches the program as a rejected call.

The deadline defaults follow dsh's Node runtime. dsh spills tool results longer than 12,500 tokens to a file, so the log and value budgets are limits on memory use.