On this page
Sommatic Docs
Open portal

Isolation and sandboxes

Where a node runs and where its code runs: workers in the service process or in their own thread, expressions in a separate JavaScript context, code nodes in their own context or process.

View as Markdown
Open in

Node workers run inside the orchestrator process: the Link Loom SDK’s default isolation (process). Each step gets a new worker instance that only sees the context it receives (ctx), never another step’s memory, and is removed when the step ends. The SDK also has a threaded mode (one worker thread and V8 heap per worker), but workflow nodes do not use it: in that mode the worker’s result does not travel back to the engine.

Expressions are evaluated apart from the worker’s own code: each node resolves its {{ }} values in a separate JavaScript context (a vm context of its own), with only the variables and helpers of the expression API, no require, process, network or timers, and 100 ms per expression. The code nodes also run their program in a context of their own: code.js in a separate vm context with its own time limit, code.python in a separate process (see Code nodes).

Summary

What runsWhereLimit
The node’s workerThe orchestrator process, one new instance per stepThe node’s own timeouts
{{ }} expressionsA separate JavaScript (vm) context per node100 ms per expression
code.jsA separate vm context (default)Its timeout_ms, 5000 ms by default
code.pythonA separate Python processIts own timeout

What an expression can read and call is listed in the expression API reference, and what it cannot (Node APIs, network, timers) in JavaScript Globals.

Next steps

Install agent tools

Give your coding agent the official Sommatic AI docs: skills, the docs MCP server and Markdown pages, so it never has to scrape the site.

Skills only. They do not update by themselves; run it again to refresh.

npx skills add https://docs.sommatic.ai
How agents read these docs