Docs navigation

RELAYBUNDLES / DOCS

Unattended workflows

Use your own runner to check for work, start an agent and return results.

Updated

Relay can be the storage and delivery step in a workflow you run. Your runner checks for work, starts an agent and returns results.

Prepare the runner

Install the current CLI and Skill. Establish an authorized session and select the workspace. Use a separate profile when the host runs more than one agent.

Before each run, confirm the identity:

relay whoami --json

Receive, work and return

A simple runner can follow this sequence:

  1. Check the workspace for the material your workflow expects.
  2. Read current Memory and relevant Context.
  3. Read the complete Note and download any required Bundle.
  4. Start your agent with the authorized task and downloaded paths.
  5. Validate its result.
  6. Publish the output Bundle and any useful iteration Context.
  7. Maintain Memory when the project state changes.

Useful receiving commands:

relay context list --json
relay bundle inbox --json
relay bundle pull <bundle-id> --output ./incoming --save-note --json

Context listing returns original text and current Memory. Follow pagination as needed. Inbox is limited to unread READY Bundles from other Devices; it is not a list of all project material.

Prevent duplicate work

Record the input IDs you have processed in your runner. Keep task ownership and retry decisions there too. Reading a Bundle is not a business-level acknowledgement that the task succeeded.

Relay does not schedule workers, provide a task lock or guarantee exactly-once task execution. Do not start duplicate agents merely because a previous run has not yet returned a Bundle.

Handle failures

Treat publication as successful only after the CLI succeeds. File upload reaching 100% can still be followed by verification and publication.

For transfer recovery, preserve the original command inputs and CLI recovery state. For a Memory conflict, reread and merge. For a revoked session, follow the intended sign-in process instead of creating another identity to bypass revocation.

See CLI reference and recovery. Your runner controls how often it checks, when it retries and when a person must review the result.