You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Record usage and time per delegated run (estimate vs actual) #315
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.
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.
Activity
scuttletoby commentedon Nov 17, 2026
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
feat(fork): record usage and time per agent run (#315) (#588)
feat(fork): record usage and time per agent run (#315) (#588)
feat(fork): record usage and time per agent run (#315) (#588)
feat(fork): record usage and time per agent run (#315) (#588)
feat(fork): record usage and time per agent run (#315) (#588)