skip to main content
Atharv Kulkarni

Origa Labs · 02Human-controlled browser agent

Relay

A desktop app that fills in browser forms for you, then stops so you can check everything and press submit yourself.

A desktop agent that fills browser forms while keeping review and final submission under explicit human control.

ElectronReactViteNestJSSQLitePrismaSSEOpenAI Agents SDK
current statusverified
Prototype, public download. relay.origalabs.com is live and links version 0.1.0 desktop builds for macOS and Windows. The hosted sign-in service and a clean-machine install have not been re-verified. It has no users or sales.
intended user
People handling repetitive browser forms who want automation without handing an agent irreversible submission authority.

where to look

  • Product page with Download for macOS (Apple Silicon) and Windows (x64) buttons, install notes, an FAQ, privacy, terms, and a support email. The downloads are version 0.1.0 internal-channel builds from April 2026; signing and a clean-machine install were not re-verified, so a working install is not claimed.

    liveverified

  • Sign-in service

    The desktop app signs in through a hosted service that is not linked here. Its current availability was not verified.

    privateverified

desktop targets: macOS Apple Silicon and Windows x64
2
apps in one pnpm monorepo, plus a shared package
6
synthetic form-lab scenarios for repeatable runs
6
public synthetic boundary fixtures matched
24 / 24

02

How it works

The agent fills and verifies; only the person reviews and submits.

Relay form-fill harnessThe agent fills and verifies; only the person reviews and submits.Relay desktop apphumanPersonstarts, reviewsinterfaceElectron shellsupervises backendinterfaceReact rendererprogress and reviewdataSQLiteruns, jobs, eventsserviceLocal NestJSserviceloopback onlyagentPlanner agentproposes actionssandboxVisible browseracts, then verifiesexternalTarget web formany site in scopeagentReviewer agentbounded repaircontrolReview and submithuman onlysupervisesHTTP and SSEDOM statefindingsreviews and submitsfinal submit
Relay form-fill harnessThe agent fills and verifies; only the person reviews and submits.Relay desktop apphumanPersonstarts, reviewsinterfaceElectron shellsupervisesbackendinterfaceReact rendererprogress andreviewdataSQLiteruns, jobs,eventsserviceLocal NestJSserviceloopback onlyagentPlanner agentproposes actionssandboxVisiblebrowseracts, thenverifiesexternalTarget webformany site in scopeagentReviewer agentbounded repaircontrolReview andsubmithuman onlystarts a runsupervisesrun recordstask contextpage actionsfills fieldsfindingsreviews and submitsfinal submit

Components:

  • Person (human): starts, reviews
  • Electron shell (interface): supervises backend
  • React renderer (interface): progress and review
  • SQLite (data): runs, jobs, events
  • Local NestJS service (service): loopback only
  • Planner agent (agent): proposes actions
  • Visible browser (sandbox): acts, then verifies
  • Target web form (external): any site in scope
  • Reviewer agent (agent): bounded repair
  • Review and submit (control): human only

Connections:

  • Person to Electron shell (control): starts a run
  • Electron shell to Local NestJS service (control): supervises
  • React renderer to Local NestJS service: HTTP and SSE
  • Local NestJS service to SQLite: run records
  • Local NestJS service to Planner agent: task context
  • Planner agent to Visible browser (control): page actions
  • Visible browser to Target web form: fills fields
  • Visible browser to Reviewer agent: DOM state
  • Reviewer agent to Local NestJS service (return): findings
  • Person to Review and submit (human): reviews and submits
  • Review and submit to Target web form (control): final submit

Boundaries:

  • Relay desktop app: Electron shell, React renderer, SQLite, Local NestJS service, Planner agent, Visible browser, Reviewer agent

steps

03

Harness anatomy

The code around the model: what keeps calling it, what it may run, what reaches it, and what bounds it.

01 · loop
One run per form, held as a restart-aware local job. A planner session proposes page actions, a reviewer session checks the result, and a capped repair budget ends every run in a handoff.
02 · tools
Actions in a visible browser runtime, each followed by a DOM read that verifies what the page accepted. A local form lab supplies synthetic targets for development and tests.
03 · context
Planner and reviewer sessions keep the task context: source documents, observed controls, and compact run evidence. Runs, attempts, and step events persist in SQLite.
04 · controls
Final submission is a product rule, not a prompt: Relay never clicks submit. Server-owned policy blocks credentials, uploads, and challenges. Runs support cancellation and recovery; the service is loopback-only and diagnostics are redacted.
agentsOpenAI Agents SDK plannerOpenAI Agents SDK reviewerBuilt with Claude CodeBuilt with Codex

04Architecture

The component inventory behind the diagram: system boundaries and the paths between them.
The agent runs as a visible, restart-aware desktop workflow. The local service owns policy and durable state; model output proposes work but does not own the browser trust boundary or final submission.
  1. control

    Person

    Selects the form and source documents, observes progress, reviews the result, and submits manually.

  2. interface

    Electron desktop app

    Supervises the local backend and presents run status, warnings, recovery, and review state.

  3. service

    Local NestJS service

    Coordinates jobs, policy, documents, agent sessions, browser execution, and streaming updates.

  4. data

    SQLite and Prisma

    Persist settings, uploaded-document metadata, form-fill runs, jobs, attempts, events, and review state.

  5. agent

    Planner session

    Builds page-local actions from source evidence, observed controls, and durable run context.

  6. control

    Deterministic policy boundary

    Owns allowed-domain scope, blocked action classes, final-submit exclusion, and bounded execution rules.

  7. interface

    Visible browser runtime

    Executes allowed actions in an observable browser session and exposes the resulting page state.

  8. control

    Deterministic verification

    Reads control state after actions and records mismatches instead of trusting the planned sequence alone.

  9. agent

    Bounded reviewer

    Checks compact page and run evidence, requests limited repair when appropriate, and then stops.

  10. output

    Human handoff

    Surfaces unresolved items and returns the still-visible form without triggering final submission.

  • Person → Electron desktop app · starts and monitors a run
  • Electron desktop app → Local NestJS service · localhost HTTP and SSE
  • Local NestJS service → SQLite and Prisma · commits authoritative state
  • Local NestJS service → Planner session · provides compact run evidence
  • Planner session → Deterministic policy boundary · proposes actions
  • Deterministic policy boundary → Visible browser runtime · permits bounded actions
  • Visible browser runtime → Deterministic verification · returns observed DOM state
  • Deterministic verification → Bounded reviewer · provides findings
  • Bounded reviewer → Deterministic policy boundary · requests bounded repair
  • Bounded reviewer → Human handoff · stops after the review budget
  • Human handoff → Person · review and manual submission

05Evidence boundary

What this case study establishes, and what it deliberately does not claim.

verified

  • Desktop and local-service boundary

    Electron supervises a local NestJS backend; the React renderer uses loopback HTTP and SSE through a narrow desktop bridge.

    basis · Repository architecture, desktop runtime, renderer API, and service event implementation reviewed on 2026-08-03.

  • Durable run and recovery state

    SQLite and Prisma models plus a durable job runner cover form-fill runs, attempts, events, retries, and review state.

    basis · Persistence schema, accepted architecture decisions, job runner, and recovery tests reviewed on 2026-08-03.

  • Planner, verification, reviewer, and handoff

    The workflow uses separate planner and reviewer sessions, deterministic post-action checks, bounded repair, and an explicit human handoff before submission.

    basis · Accepted agent-workflow decisions, prompts, runtime modules, and tests reviewed on 2026-08-03.

  • Sensitive-action and diagnostics boundaries

    The documented v1 excludes credential entry, authentication challenges, security answers, browser file uploads, and final submission; diagnostics have a supported sanitization layer.

    basis · Policy, handoff, secure-storage, diagnostics, and support-redaction implementation reviewed on 2026-08-03.

not claimed

  • Private implementation

    Repository evidence can verify the implemented surfaces, but the source is not linked or reproduced publicly.

  • Availability not re-verified

    Past deployment work does not establish that the backend, installer, or complete flow is currently available.

  • No real-world outcome evidence

    No user, traffic, completion, time-saved, or commercial metrics are presented.

  • Synthetic benchmark scope

    The published benchmark checks a small public reference policy over handcrafted cases. It does not execute the private Relay runtime or an LLM.

06

Engineering decisions

The design choices, reasoning, and tradeoffs that shaped the system.

  1. Make final submission a product boundary

    Relay fills and verifies supported fields, then stops with the form visible for human review and manual submission.

    rationaleAn irreversible action should not depend on an instruction embedded only in a model prompt.

    tradeoffThe workflow is intentionally less autonomous and cannot promise unattended end-to-end completion.

  2. Keep browser execution visible

    Use a visible browser subsystem and check observed control state after actions.

    rationaleA planned click or fill is not proof that the page accepted the intended value. Visibility and post-action checks make failures inspectable.

    tradeoffVisible execution is less background-friendly and dynamic web controls still require conservative fallbacks.

  3. Separate planning from review

    Use a stateful planner for page work and a separate reviewer over compact evidence, with a bounded repair loop.

    rationaleIndependent review reduces self-confirmation while a strict retry budget prevents open-ended agent loops.

    tradeoffThe extra model pass adds latency and cost, so context is compact and the number of review turns is capped.

  4. Treat persisted state as authoritative

    Persist runs, jobs, attempts, step events, and review state in SQLite through Prisma instead of relying on process memory.

    rationaleThe Electron-supervised backend can restart without making completed work or unresolved handoff state disappear.

    tradeoffDurability adds schema and recovery complexity to a local desktop product.

  5. Keep safety scope server-owned

    Derive allowed-domain scope and enforce blocked action classes in the local service rather than accepting them from a renderer or planner request.

    rationaleThe component that executes browser actions should own the policy it must enforce.

    tradeoffCross-domain redirects and unusual form flows are more likely to stop for a person instead of being handled automatically.

07Reliability & safety

Controls that make failures visible, bounded, and recoverable.
  • Failure handling

    Restart-aware local jobs

    Electron supervises the backend lifecycle, while database-backed run and job records support recovery and keep prior attempts visible after a process restart.

  • Safety boundary

    Verify effects, not intentions

    The runtime reads browser control state after actions and carries verification findings into the reviewer and human handoff.

  • Failure handling

    Bounded review and repair

    Reviewer turns, navigation fallbacks, and repair attempts are capped so an uncertain page ends in an explicit handoff instead of an infinite loop.

  • Observability

    Durable, streamed progress

    Compact step events are persisted and streamed to the desktop over SSE, giving the live interface and restart recovery a shared source of truth.

  • Privacy

    Sanitized diagnostics

    The supported per-run diagnostics surface is structured and sanitized, with user-facing errors separated from raw local debugging detail.

  • Testing

    Synthetic form lab and automated tests

    Standalone local forms and synthetic documents exercise realistic multi-field scenarios without requiring personal or customer data. Unit and end-to-end suites cover key desktop, service, policy, persistence, and browser-workflow boundaries.

08

Synthetic evaluation

A deterministic public reference classifier was run against 24 handcrafted synthetic form actions. All 24 matched the fixture's expected boundary, including 12 ordinary or near-miss actions marked automatable and 12 credential, challenge, upload, or finalization actions marked human-required.

Synthetic human-control boundary checksynthetic · not production or customer data

Fixture conformance
24 / 24
All handcrafted expectations passed for this public reference classifier.
Human-required recall
12 / 12
Every synthetic credential, authentication challenge, knowledge factor, file-transfer, and final-submit case was routed to a person.
Automatable-action specificity
12 / 12
Every synthetic ordinary or intentional near-miss action remained automatable in the reference classifier.
Fixture version
v1
The result is bound to fixture SHA-256 a7fa597a47d3d61295b459dffd0e571fabadab996a15567a922850d90816ce9c.

set · 24 handcrafted synthetic form-action fixtures

method · Create synthetic action records with only a control kind, field type, and label. No forms, documents, browser sessions, or private runtime data are used. Label each fixture as automatable or human-required based on the documented public safety boundary. Run the public deterministic classifier and compare its output with every expected disposition. Write a result file containing totals, category counts, failed case IDs, and a SHA-256 hash of the exact fixture file.

limits · This is a policy-conformance check for public case-study code, not a benchmark of Relay's private planner, reviewer, browser execution, or verification runtime. The 24 fixtures are handcrafted and intentionally narrow. Passing them does not establish coverage of arbitrary websites or adversarial control labels. The result is not a completion-rate, model-accuracy, latency, time-saved, safety, reliability, user, or production metric.

09State, material, next

Where the project stands, what can be shown publicly, and what comes next.

current state

  • The product page at relay.origalabs.com is live and links version 0.1.0 internal-channel installers for macOS Apple Silicon and Windows x64.
  • The hosted sign-in service the desktop app needs has not been re-verified, so a working end-to-end install is not claimed.
  • There are currently no users, sales, or validated adoption metrics; the repository remains private.

demo & public material

  • Twenty-four handcrafted form-action cases with expected automatable or human-required dispositions.

  • A small Node.js script that reproduces the published policy-conformance result without dependencies.

  • Machine-readable totals, category counts, failed case IDs, and the exact fixture hash.

  • Private source repositorynot public

    Source code is not published. Public materials are limited to disclosure-reviewed architecture, explanations, and synthetic artifacts.

  • Synthetic walkthroughplanned

    A recorded end-to-end demo should be published only after every frame and diagnostic artifact passes disclosure review.

next steps

  1. 01Verify sign-in, the local backend and a full form-fill run from a clean machine using the public installers.
  2. 02Sign and notarize the builds, publish them to the stable channel, and point the product page at it.
  3. 03Test with a small set of real form workflows while preserving the manual submission boundary.