Skip to content

Add per-instance run success/step-count stats — a stats or dashboard view over agent_loop_runs history #789

Description

@proagentstore

Feature request from a voice/chat operating session.

Problem: agent_loop_runs already stores, per run, the objective, how many iterations it actually took (iteration/max_iterations), and how it ended (status/stop_reason: done, failed, max_iterations, cancelled, etc). But nothing rolls this history up into a usable view. Right now the only way to see a run's outcome is to read individual run records one at a time via check_work/coding_loop_status — there's no aggregate.

Requested behavior: a per-instance stats view (new read tool and/or a console dashboard panel) built from the existing agent_loop_runs table, showing at minimum:

  • Success rate: proportion of runs that ended 'done' vs 'failed' vs 'max_iterations' vs 'cancelled', per instance.
  • Step-count distribution: how many iterations runs actually took before finishing, so it's visible whether an instance/objective type tends to finish early, or routinely burns to its cap.
  • Ideally viewable per instance, so each coding agent's own track record is visible on its own (e.g. 'this agent finishes done in a median of 6 steps' vs 'this agent hits max_iterations 40% of the time').

This is read-only reporting over existing data — no new run-time behavior, no changes to how the loop itself runs. Just make the historical outcome data collected in agent_loop_runs queryable/visualizable in aggregate instead of only one row at a time.

Use case that surfaced this: wanting a rough steady-state read on each coding agent — is it usually completing cleanly, and in roughly how many steps, or is it routinely running out of budget — without manually reading through run after run.

Activity

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions