diff --git a/README.md b/README.md index e4c3025..14eb70f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@
Run, monitor, and safely deliver work from Claude Code, Codex CLI, Antigravity, and your own agent CLIs.
-Desktop GUI · CLI automation · Local daemon · Persistent Task Run history
+Turn AI CLI work into durable, inspectable, reviewable workflows.
+Tasks · Projects · Artifacts · Review gates · Routines · Desktop GUI · CLI · Local daemon
-
+
Monitor Relay health, search and filter Task Run history, and inspect selected work from the desktop dashboard.
-> **Reliability boundary:** Relay-agent validates process completion, result-file creation, encoding, schema, artifact paths, and delivery. It does not verify the factual accuracy or reasoning quality of AI-generated content. +> **Reliability boundary:** Relay validates execution, result-file creation, encoding, schemas, artifact paths, isolation, and delivery. Optional review gates help a human or a configured Project Orchestrator inspect a candidate before publication, but Relay does not claim that AI-generated content is factually correct or reasoning-quality verified. ## Contents -- [Why Relay-agent](#why-relay-agent) +- [Why Relay](#why-relay) +- [The Relay workflow](#the-relay-workflow) +- [Core concepts](#core-concepts) - [Requirements](#requirements) - [Quick start: desktop GUI](#quick-start-desktop-gui) - [Portable and CLI-only installation](#portable-and-cli-only-installation) - [Desktop workflow](#desktop-workflow) - [CLI workflow](#cli-workflow) +- [Projects, review gates, and Project Runs](#projects-review-gates-and-project-runs) +- [Routines and scheduled work](#routines-and-scheduled-work) - [Safe work in a real folder](#safe-work-in-a-real-folder) - [Custom Agent Apps](#custom-agent-apps) - [Automation with OpenClaw or Hermes](#automation-with-openclaw-or-hermes) - [Results, security, and operations](#results-security-and-operations) - [Documentation](#documentation) -## Why Relay-agent +## Why Relay + +AI CLIs are excellent workers, but a serious workflow also needs a place to define the work, connect outputs, observe attempts, preserve evidence, and decide whether a result is ready to use. Relay provides that control and delivery layer locally. + +- **Durable work model:** Turn instructions into reusable Tasks, then compose them into explicit Project DAGs with named Artifact inputs and outputs. +- **Evidence, not just output:** Preserve attempts, progress diagnostics, logs, events, receipts, result files, Artifact metadata, and immutable lineage in one local history. +- **A deliberate publication boundary:** Keep successful candidates in review until a human or configured Project Orchestrator confirms them; add feedback and rerun when the result needs work. +- **Human and agent parity:** Use the desktop GUI, CLI, or authenticated daemon API without creating separate execution semantics or histories. +- **Safe file delivery:** Run in an isolated working copy, validate the changed-file set, and apply only verified changes to a requested real folder while retaining Artifact copies. +- **Operational automation:** Run Tasks or Projects on timezone-aware Schedules/Routines, inspect operational status, handle approvals and attention items, and consume machine-readable receipts. +- **Worker flexibility with guardrails:** Use Claude Code, Codex CLI, Antigravity, or manifest-backed custom Agent Apps with deep capability tests, model discovery, fallback controls, and per-Agent security settings. +- **Bounded agent assistance:** Let a Project Orchestrator narrate failures and make run-scoped, budgeted repairs without mutating the registered Project or Task definition. + +## The Relay workflow + +```text +Define → Run → Inspect → Decide → Reuse or repeat +Task/Project Worker CLI attempts, logs, candidate result confirm Artifact, +review rules or Routine files, lineage, and evidence give feedback, + Project pipeline rerun, or stop +``` + +The same lifecycle is available from the GUI and from automation: + +1. Define a Task or Project and its input/output contracts. +2. Run it with a built-in or custom Agent App, manually or through a Routine. +3. Follow progress and inspect the result, generated files, attempts, and Artifact lineage. +4. If a review gate is enabled, confirm the candidate—or leave a comment and rerun it. +5. Reuse only confirmed Artifacts in later work, or inspect the full receipt when diagnosing a failed run. + +## Core concepts -Relay-agent adds a durable control and delivery layer around powerful AI CLIs. +| Concept | What it means | +| --- | --- | +| **Task** | A reusable instruction and delivery contract for one unit of AI work. | +| **Task Run** | One execution record, including inputs, attempts, status, logs, result, and delivered files. | +| **Project** | A persistent multi-step workflow that connects Tasks through explicit Artifact roles. | +| **Project Run** | One execution of a Project, shown as a pipeline with step state, attempts, reviews, and evidence. | +| **Artifact** | A delivered result with an immutable UID that can be inspected, traced, and reused safely. | +| **Review gate** | An optional publication checkpoint: human or Orchestrator confirms, rejects, or requests a bounded rerun. | +| **Routine** | A timezone-aware schedule for running a Task or Project through the local daemon. | +| **Agent App** | A registered local AI CLI with a validated manifest, capabilities, model options, and environment policy. | -- **Desktop task control:** Create Task Runs with task text or a Markdown file, local attachments or delivered files selected by Task Run ID, Agent and model selection, profiles, fallback behavior, time limits, result paths, and artifact folders. -- **One shared Task Run history:** GUI, CLI, and external-agent work appears in the same searchable history with status, source, timestamps, Attempts, and output locations. -- **Detailed inspection:** Review Overview, Task, Progress, Answer, Result, Files, Logs, and Events without digging through Relay's internal database or workspaces. -- **Non-interrupting progress checks:** Inspect process state, recent activity, stalls, and common error signals without sending another message to the running Agent. -- **Useful Task Run controls:** Stop active work, run completed work again, copy task text, and open result or Artifact folders. -- **Built-in and custom Agents:** Use Claude Code, Codex CLI, and Antigravity, or register manifest-backed Agent Apps for other local CLIs. -- **Safe working-folder delivery:** Let an Agent work on an isolated copy, validate the changed-file set, then apply only those changes to a requested real folder. -- **Persistent receipts:** Store Task Run metadata, Attempts, failures, and output paths in local SQLite history. -- **Compatibility safety:** GUI write actions are disabled if the desktop app and daemon do not agree on the supported API or Relay Home. -- **Automation-ready:** Submit background Task Runs, deduplicate external requests, wait for completion, and consume machine-readable receipts. +Relay's reliability guarantee is about the boundary around AI execution: did the worker run, did it produce the requested contract, and was the result delivered safely? Review gates make readiness explicit without pretending that a process check is a quality guarantee. ## Requirements @@ -156,7 +192,7 @@ Select **+ New Task** and provide as much or as little configuration as needed: - external request ID and duplicate-control options
-
+
The New Task form exposes the same Agent, model, fallback, file, result, and working-folder controls available through the CLI.
@@ -227,6 +263,70 @@ relay result