feat: add native Devin agent harness
Devin agent steps currently fall through to the custom-wrapper protocol. Add a native print-mode adapter using a private prompt file, optional --model, noninteractive workspace trust, and isolated XDG credentials. Return the printed response without a JSON flag. Preflight checks provider authentication/model access, rejects Devin llm use, and warns that print mode cannot measure token or dollar spend. Broker login isolation and skill installation include Devin.
Hosted operators supply a Devin CLI-login token in FLOW_DEVIN_API_KEY; a compatible launcher maps it to the runtime DEVIN_API_KEY. Local runs use DEVIN_API_KEY directly or an existing CLI login. A Devin REST API key is a different credential. The FLOW_ aliases landed in Cloud #5930. Hosted replacement-token authentication remains unverified; the existing ordinary REST secret is preserved for other flows.
The pinned CLI is 3000.11.234. Authenticated headless/compiled-worker success was exercised on macOS. Linux x64 evidence covers env-only rejection, credential-file pickup, and non-root execution of the companion image install block; it does not claim an authenticated Linux worker or full hosted-flow run. Cloud image installation landed in Cloud #5927.
Probe diagnostics preserve shared redaction first, then mask overlapping supplemental shapes and short credentials together using bounded byte coverage, without per-match span lists. A 900,000-character fixture exercises both probe drivers. The prerequisite land and issue-swarm model-pin fixes landed in #692. This PR is rebased onto main; land, issue-swarm, and gate files are absent from its diff.
Literal commands and captured results: runtime, auth, mutation and Linux evidence, credential regressions, latest overlap regressions, typechecks, example tests and remaining failure. Historical pre-rebase model-pin failures are captured in that report. Independent Codex review at exact head f210041752c7229f0220344f22d3207b6035f871 found no new integration findings. Fresh local validation with literal commands and captured output includes the full shipped-source model-pin test and both typechecks. All checks are successful or skipped at f210041752c7229f0220344f22d3207b6035f871, including the Linux artifact job, with zero unresolved review threads: readiness receipt.
Portable live reproduction: set RELAYFLOWS_REAL_DEVIN_CLI to the absolute path of Devin 3000.11.234 and supply a CLI-login token through secure DEVIN_API_KEY environment setup. From packages/sdk, run node node_modules/vitest/vitest.mjs run tests/real-devin-adapter.test.ts. TMPDIR is optional and must exist when set.
Human merge is required. A relayflows release is then needed for relay-desktop/hosted consumers to pin; no npm publish or Cloud deployment is included.
Agent Relay sessions
codexsession01a19dbc· opened viagh pr create· last active 2026-11-02