Files
deepseek-harness/packages/code-runtime
Chinesezjc 3057f3bb1b docs(code-runtime-python): state the empty invariant's real reason
packages/AGENTS.md:18 requires a package-specific "No runtime invariant:"
reason on an empty installer. This one described a process-boundary
implementation and real-subprocess integration tests that the package does
not carry — it ships the wire-protocol codec and its Python mirror, covered
by protocol.spec.ts and protocol-mirror.e2e.ts.
2026-08-17 18:32:18 +08:00
..
2026-08-13 19:52:05 +08:00

code-runtime/ — code-execution capability family

English | 中文

The code-execution capability seam (see capability seams): a runtime Service Definition for executing one model-written program against host-provided async bindings, capturing what it printed and returned; replaceable providers; and the tool registry's Code Mode Consumer (tools: { mode: code } — the run_code tool and the SDK generated in the loaded runtime's language). Design is in the Code Mode Agent Note. Product packages.

Package Role ctx key
code-runtime/ Service Definition and shared vocabulary ctx.codeRuntime
code-runtime-worker/ Worker-thread backend registers ctx.codeRuntime

Providers register the service without changing its Consumer. The child READMEs own language, isolation, and execution-budget details.

The subsystem reference — run requests/results, binding namespaces, the failure taxonomy — is docs/subsystems/code-runtime.md.