Skip to content

Idea: Iteration progress visibility: peek into active agent output #41

@kraenhansen

Description

@kraenhansen

Problem

When an iteration takes a long time, there's no way to know what the agent is doing or how far along it is. You're left staring at a spinner with no feedback.

Proposed solutions

Two complementary approaches (could implement either or both):

Option A: Show/hide toggle for live output

A keybinding (e.g., p for peek) that toggles streaming the agent's stdout in real-time:

  • Press once — start streaming the agent's output below the status line
  • Press again — hide the output and return to the compact TUI view

This gives full visibility when you want it without cluttering the default experience.

Option B: Structured progress tags

Instruct agents to emit structured progress markers that the TUI renders as a progress bar:

<progress current="23" total="100">Updating file 23 of 100</progress>

The TUI would parse these from the agent's output stream and render something like:

⠿ Iteration 4  [████████░░░░░░░░] 23/100  Updating file 23 of 100

This is opt-in from the prompt side — agents that don't emit <progress> tags just show the existing spinner. Agents that do get a richer display.

Considerations

  • Option A is simpler to implement (just pipe/unpipe stdout) and works with any agent
  • Option B requires prompt cooperation but gives a cleaner UX
  • Both could coexist: the progress bar shows by default, and the toggle reveals raw output for debugging

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions