Add process execution guide - #559
Conversation
Document kernel.browsers.process (exec, spawn, status, stdin, stdout-stream, resize, kill) as its own guide, and link the fx co-located agent cookbook from it and the cookbooks gallery.
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
…uage The spawn example bound port 8080, which is already taken inside every Kernel VM, so it failed immediately instead of running as documented. The resize example called resize() on a process that wasn't PTY-backed, which 400s. Verified end-to-end against a live browser. Also drops 'single-tenant' to match the plainer phrasing used on sibling browser guide pages.
There was a problem hiding this comment.
Stale comment
Risk assessment: Very Low
Decision: Keep existing approval (risk did not increase)
Re-evaluated after the
20d0213update. The PR is still documentation-only Mintlify content. Four files, +266 / −0:
browsers/process-execution.mdx— new user-facing guide forkernel.browsers.processcookbooks/fx-colocated-agent.mdx— 4-line external cookbook stubcookbooks.mdx— gallery carddocs.json— two sidebar entriesThe new commit only corrects docs examples (spawn no longer binds reserved port 8080; resize now uses a PTY-backed process) and drops “single-tenant” wording. No application logic, infrastructure, auth, CI, or config beyond docs nav. No
CODEOWNERSfile, so no codeowner review gate applies.Action: Risk remains Very Low. Prior approval stands; not re-approving.
Sent by Cursor Automation: Assign PR reviewers
There was a problem hiding this comment.
Risk assessment: Very Low
Decision: Keep existing approval (risk did not increase)
Re-evaluated after ef909bf ("Explain process execution use cases"). The PR remains documentation-only Mintlify content. Four files, +276 / −0:
browsers/process-execution.mdx— new user-facing guide forkernel.browsers.processcookbooks/fx-colocated-agent.mdx— 4-line external cookbook stubcookbooks.mdx— gallery carddocs.json— two sidebar entries
The new commit only expands the guide intro and adds a "common production patterns" section (and removes a shorter co-location example that that section supersedes). No application logic, infrastructure, auth, CI, or config beyond docs nav. No CODEOWNERS file, so no codeowner review gate applies.
Action: Risk remains Very Low. Prior approval stands; not re-approving.
Sent by Cursor Automation: Assign PR reviewers


Summary
/browsers/process-executiondocumentingkernel.browsers.process: synchronousexec, backgroundspawn,status,stdin,stdout-stream, PTYresize, andkill, with TypeScript and Python SDK examples plus CLI equivalents. Added to the "Working with your browser > Intermediate" sidebar group, next to File I/O.cookbooks/fx-colocated-agent) plus a card on the main/cookbooksgallery page for that same cookbook, matching the existing pattern for other cookbook entries.Test plan
docs.jsonis well-formed JSON.kernelCLI (--help) and thekernel-node-sdk/kernel-python-sdksource.mint dev/mint broken-linkslocally (blocked by sandbox permissions installing the Mintlify CLI); CI's broken-links workflow will cover this.Note
Low Risk
Documentation and site navigation only; no runtime or API behavior changes.
Overview
Adds a new Process Execution guide at
/browsers/process-executionthat documents running commands inside a browser VM viakernel.browsers.process: synchronousexec, backgroundspawn, and lifecycle APIs (status, SSEstdoutstreaming,stdin, PTYresize,kill), with TypeScript/Python examples, CLI snippets, production patterns, and links to File I/O, Playwright execution, and security context foras_root/as_user.Navigation and cookbooks:
docs.jsonnow lists the page under Working with your browser > Intermediate (after File I/O). The PR also surfaces the fx, Co-located integration via a cookbook stub (cookbooks/fx-colocated-agent), a Harnesses & Models nav entry, and a new card on/cookbooks, cross-linked from the process guide as an end-to-end co-located agent example.Reviewed by Cursor Bugbot for commit ef909bf. Bugbot is set up for automated code reviews on this repo. Configure here.