Skip to content

Record usage and time per delegated run (estimate vs actual) #315

Closed

Description

@scuttletoby

Today nothing records how much a delegated agent run cost or how long it took, so the orchestrator cannot compare its estimates with what really happened, or tune which model and effort fit which kind of task.

Wish: for every delegated run (local or on a linked machine), store one small record when it ends:

  • model, effort, role (writer / lens / other), task kind (free text label from the delegate call)
  • start, end, wall time, end status
  • tokens and cost as the provider reports them (input, output, cache read/write, total_cost if given)
  • the parent's estimate if one was passed (optional field on the delegate call)

Plus a weekly summary: runs per kind, median time and tokens, estimate vs actual.

Build on upstream: the provider adapters already see the final result message (which carries usage and cost for Claude runs); store it next to the run instead of dropping it. Keep it a thin add-on in the fork's own files; no new service.

State question: a run that stops half-way (no final message) gets a record with end status "cut off" and whatever usage was seen; a re-run is a new record; old runs without records are simply absent from the summary.

General vs project: general (any fork user); no project facts.

🤖 Generated with Claude Code

Activity

  1. scuttletoby commented on Nov 17, 2026

    @scuttletoby
    OwnerAuthor

    not a lens: owner agreed (11-17). Aim: collect the data now so later decisions (models, effort, task sizing, review rounds) rest on measurements. General: every agent run of any kind and project (writers, lenses, audits, orchestrators, local and linked machines), not just fork work; project and task labels are fields, not code paths. Keep the raw records (append-only, never pruned automatically) so new questions can be asked of old data.

    🤖 Generated with Claude Code

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions