← All posts

November 29, 2026

When an agent stops while you're away

When a harness rejects a login, Scout names the problem and sends the sign-in command to your phone.

One of our Claude Code sessions stopped while we were away from the desk. When we came back, the terminal said Failed to authenticate. API Error: 401. Nobody had known to sign in again.

Nothing was wrong with the work. The fix was one command. The time went because nothing said the session had stopped.

Scout recorded a success

Scout reads every harness session it runs and turns each harness's output into one session model: turns, blocks, actions, errors. The runtime builds Inbox items from that model, and a failed turn becomes an item to look at.

This failure never got that far. Claude Code returned subtype: "success" and is_error: true for the same turn. Scout read the first field and marked the work complete. There was no failed turn to put in the Inbox.

Scout now checks the error flag, marks the turn as failed, and keeps the reported error on it.

Name the problem, send the command

A failed turn usually goes into the Inbox quietly, because most failures need a person to read them. A stack trace is not a phone alert. A rejected login is different. The cause is clear, and the fix is one command that someone can start from anywhere.

Scout checks the reported error for a login failure. When it finds one, three things change:

  • The Inbox names the problem. "Claude login expired" replaces "Session turn failed".
  • The detail is the fix, in the harness's own commands. For Claude Code, run claude /login on the host where the session ran. For unattended runs, claude setup-token creates a long-lived token to supply as CLAUDE_CODE_OAUTH_TOKEN. For Codex, run codex login on the affected host.
  • The phone rings. The plain-text alert says only "A local agent stopped: its login expired." The fix travels in the notification detail, sealed to the paired phone. Other failures stay quiet.

The Inbox keeps the error summary alongside the fix. Scout does not sign in or retry the work.

Not an approval

Scout already decides when to interrupt for permissions. If an agent tries to run a script it just downloaded, the permission watcher can ask the operator before the script runs. A rejected login is different: the turn has already failed, and there is nothing to approve. Scout reports the cause and the command, and the operator decides.

While the login works, Scout says nothing about setup. When the harness rejects it, Scout shows the command and leaves the sign-in to the operator.

All posts →
  1. Moving OpenScout to native post-quantum encryptionCloud transcripts, phone-to-Mac Noise pairing, push notifications, Iroh P2P QUIC links, and mesh node identities now use hybrid ML-KEM-768 and ML-DSA-65 on native platform crypto.
  2. Running a real fix through a Vercel BoardWe ran a real change to Scout's board CLI through a Vercel Board: a plan, two builders in parallel, reviews, a decision the operator answered, and a fan-in. The board held up. Scout's side of it broke in ways we could name.
  3. How Scout runs a Vercel Board plan with Claude and Codex agentsScout joins Vercel Board instead of building its own task board. A plan fans out to Claude and Codex agents, a final task waits for all of them, and the run shows live in a Chat room.