Skip to content

Progress lines on stderr #10

Closed
Closed

Description

@JacobStephens2

Parent

#2

What to build

Progress on stderr. While a 10–40 minute run is going, thirdshift condenses each session's stream-json output into short stderr lines (skill invoked, tool calls, commits, pushes) and prints its own deterministic steps (worktree created, pushing, checking the PR, merging the Base branch, waiting for CI, starting a Repair, cleaning up). stdout stays reserved for the PR URL.

Acceptance criteria

  • A fake session emitting stream-json events produces one short, readable stderr line per notable event
  • thirdshift's own steps each print a stderr line
  • stdout still contains only the PR URL
  • Unknown or malformed stream events don't crash the run; they're skipped

Blocked by

Activity

  1. JacobStephens2 commented on Sep 25, 2026

    @JacobStephens2
    OwnerAuthor

    Finding from the first real run of the walking skeleton (vacation#3 → JacobStephens2/vacation#13):

    A single implement session's stream contained 4 result events, not one. The agent ended a turn while its /thirdshift:code-review Standards and Spec sub-agents ran in the background ("I'll wait for both before addressing findings"). Their completions then resumed it. The skeleton was unaffected because it waits for claude to exit, not for a result event. The progress lines should handle this too:

    • A result event doesn't mean the session finished. Only the process exiting does, so don't print a "done" line on the first result.
    • total_cost_usd is cumulative across those events, so report the value from the last result, not a sum. For scale, this run took about 5.5 minutes of session time, 34 turns and $1.82 as reported. On a claude.ai subscription that figure is the API-price equivalent, not a charge (apiKeySource: "none" in the init event).
    • The stream also has one system/init event per resumption, so the "session started" line should come from the first one only.
  2. added a commit that references this issue on Sep 25, 2026
  3. added a commit that references this issue on Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agentFully specified, ready for an AFK agent

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions