Skip to content

feat: containerRuntime 'local' — run agents as plain processes - #41

Merged
melvincarvalho merged 1 commit into
gh-pagesfrom
issue-38-local-runtime
Jun 11, 2026
Merged

melvincarvalho merged 1 commit into
gh-pagesfrom
issue-38-local-runtime

Conversation

@melvincarvalho

Copy link
Copy Markdown
Contributor

Fixes #38

  • containerRuntime: "local" + localRunner: <path> (env: JSCLAW_LOCAL_RUNNER) spawns the runner directly with node — no container engine required
  • Same ContainerInput/ContainerOutput contract; workspace + IPC dirs delivered as JSCLAW_WORKSPACE / JSCLAW_IPC_BASE (agent-micro reads these natively)
  • Lifecycle: kill via the held child-process handle (SIGTERM → SIGKILL after 5s); idle timeout unchanged; orphan reaping via pidfiles under data/local-runners/ (live orphans killed, stale pidfiles swept, prefix respected)
  • Guards: clear errors when localRunner is unset/missing; additionalMounts ignored with a warning
  • README documents the mode with the no-isolation warning; docker stays the default

Tests: 4 new (env wiring, guards, timeout-kill preserving last output, orphan reaping) — 123/123 total. Verified live: the resident instance now runs on this mode with stock config, replacing the docker-impersonating shim it previously needed.

Spawns the runner entrypoint (config.localRunner) directly as a node
child process: same stdin/stdout contract and _close lifecycle, mounts
become JSCLAW_WORKSPACE / JSCLAW_IPC_BASE env vars. Kill goes through
the held process handle (SIGTERM, SIGKILL after 5s); orphan reaping
uses pidfiles under data/local-runners/. additionalMounts are ignored
with a warning. NO isolation — documented as trusted-workloads-only;
docker remains the default.
@melvincarvalho
melvincarvalho merged commit 00ccff5 into gh-pages Jun 11, 2026
@melvincarvalho
melvincarvalho deleted the issue-38-local-runtime branch June 11, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Built-in 'local' runtime: run agents as plain processes, no container engine

1 participant