With replScoped: true, persistent-in-memory runs each call as a separate VM Script in one retained context. Each call starts with copies of the top-level bindings left by earlier calls, so a later call may declare any earlier name again with any keyword while earlier functions and still-running code keep their values. Results, top-level await, errors and asynchronous failures follow the existing REPL evaluator; modules load only through dynamic import(), resolved from the environment's first working directory. The control protocol moves to version 3; the upgrade guide covers preinstalled bootstraps and the new PtcProgramFormat member. The Agent Note records the decision and its comparison with node:repl and vm-script, and the ptc-scoped-repl snapshot pins the model guidance.
description, kind
| description | kind |
|---|---|
| The workflow group map: model-authored orchestration scripts that fan out subagents, for users and maintainers navigating the group. | package-group |
packages/workflow
English | 中文
Summary
The workflow group lets an agent run orchestration scripts that delegate work to subagents and return a final value. The workflow tool supports scripted fan-out. Scripts use the shared PTC Node process runtime under the calling Session's file policy. Workflow hooks and child lifecycle remain owned by the workflow engine.
Table of Contents
Packages
| Package | Role | ctx key |
|---|---|---|
workflow |
Runs a model-written orchestration script that fans out subagents | ctx.workflowEngine |
workflow-ptc |
Runs workflow scripts through the shared sandboxed PTC Node process runtime | registers on ctx.workflowEngine |
tool-workflow |
Gives the model the workflow tool for scripted multi-agent orchestration |
registers on ctx.tools |
Related documentation
- Workflow subsystem — the seam's types, start request, and
workflow/*events. - Generated tool catalog — the
workflowtool schema the model receives. - Generated tool catalog — the
ralphtool schema the model receives. - Generated configuration catalog — every accepted engine config field.
- historical Dynamic workflows Agent Note — the seam design and its decisions.
- Harness-level goal-based execution reference — the fixed fresh-agent loop design and deferred work.
Dev Note
Working context for maintainers — click to expand
None.