subprocess/

September 4, 2026 · View on GitHub

English | 中文

Summary

Every child process and terminal session the harness runs — bash commands, language servers, persistent shells, and out-of-process subagent backends — starts, observes, and terminates through one shared service (ctx.subprocess), with a local provider running them on the host machine. It is not a standalone product feature: the consuming capability seams decide what each process means, and command semantics, deadlines, and model-facing presentation stay with them. The group provides executable lookup, bounded output capture with spill recovery, whole-tree termination, and a scrubbed starting environment for every child.

Table of Contents


Packages

PackageRolectx key
subprocessDefines the child-process service: executable lookup, managed process spawns, and real terminal sessionsctx.subprocess
subprocess-localRuns those process and terminal spawns on the host machineregisters on ctx.subprocess
win32-processOwns the shared Win32 bindings for restricted process creation, stdio, Job assignment, waits, and handle cleanuplibrary — no ctx key

The service keeps process lifetime across consumer reloads; consumers own what a process means (a bash command, a language server) and every default that shapes one.



Dev Note

Working context for maintainers — click to expand

None.