name: openworker-harness-builder description: Build or adapt desktop apps, web apps and Node.js scripts using the OpenWorker Harness SDK, including custom tools, approvals, streamed sessions, model configuration, application packaging and Railway deployment. Use for OpenWorker integrations, not general website design or unrelated agent frameworks.
Build apps with OpenWorker
Help the developer build their product while OpenWorker owns the agent loop. Preserve their chosen UI framework, model and deployment target.
Choose the track
- Read SDK integration for the shared lifecycle and package contract.
- For custom tools, directory scope and tool-activity display, read Tools.
- For approval modes and the complete streaming/approval/resume loop, read Approvals.
- For a command-line demo or local utility without a frontend, read Node scripts.
- For provider configuration, retry-safe streaming, reasoning display, migrated history, auto-approver/compaction guidance or changing turn preferences, read Runtime options.
- For model-created child agents, read Standalone sub-agents and check its runtime-version gate before using the option.
- For optional turn traces, Langfuse export or evaluation evidence, read Observability and check its release gate.
- For desktop apps, read Desktop.
- For browser/server apps, read Web.
- For a Railway deployment, read Railway. Default to one Node service serving the frontend and HTTP API with a managed Rust harness.
These references are bundled with the skill; an OpenWorker repository checkout
is not required. If references/installation.json exists, it records the exact
SDK version this skill supports. For a source checkout, use the skill package's
openworkerSdkVersion. Skill releases can advance independently of the SDK.
Match the application's installed version before using these APIs;
do not silently upgrade an existing application. Use the installed package's
TypeScript declarations for APIs outside the bundled examples. For Rust, consult
the matching SDK version's API documentation or source when needed.
For an unpublished local candidate, use the provided SDK and native runtime archives. A manifest version is not proof that the package exists in a registry. Do not fall back to similarly named third-party packages.
Integration boundaries
- TypeScript starts a managed Rust subprocess in Electron's main process or the application server. Browser/renderer code uses the application's API or narrow IPC. Rust can embed the harness in-process.
- Keep model credentials in that trusted process. The application owns its UI, authentication, session ownership and lifecycle.
- Agent definitions are immutable within durable state. Changes to instructions, tools or approval mode require a new agent name. Keep the previous identity for existing sessions; use a separate fresh state directory for disposable demos.
- Select tools deliberately. The directory-summary and PDF examples supply their
own input, so use
tools: []and disable planning, memory and scheduling there. Other apps may need tools. Disabling optional memory does not disable history. - File and document content is untrusted data. Render model text safely. The directory reader's exclusions are not a secret scanner or an OS sandbox.
- The bundled examples select
sandbox: "off"for application-owned input. Application callbacks in that mode have application privileges.workspaceis not an OS sandbox. Enforce directory scope in the callbacks as shown in the bundled Tools reference. For strong isolation, use a supported sandbox execution backend; enabling one does not sandbox arbitrary Node callbacks.
Verify the integration
Test streaming and terminal status, errors, cancellation, restart and the packaged runtime path for the chosen product. A deterministic model fixture can verify transport and lifecycle without a live key; it does not establish answer quality. Only claim target-platform and deployment support actually exercised. Installing this skill does not publish an application or grant cloud-deployment permission.