hub_usage
Track work costs per project and agent over a window, separating client-supplied metrics from hub-measured activity to avoid mixing observed data with estimates.
Instructions
What the work cost, over a window, per project and per agent — with a hard line between SUPPLIED (seconds/tokens/money, reported by clients through hub_usage_add, since the hub cannot see them) and MEASURED (closed-task spans and journal events, the hub's own arithmetic). The split is the point: a cost number that mixes an observed span with a guessed rate gets quoted later as if someone had counted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | default 7 | |
| agent | No | ||
| project | No |