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
Analytics: track and display per-project agent time #541
We don't track how much actual agent compute time each project consumes. Wall clock time tells us how long a project took end-to-end, but agent time tells us how much AI work was involved.
What we need
Agent time = total time the builder's AI agent was actively working on a project.
Instrumentation needed
Options:
Terminal session duration — Tower already manages builder terminal sessions. Track cumulative active time per builder terminal.
Consultation duration — MetricsDB already tracks per-consultation duration. Sum by project ID.
Show avg agent time per protocol alongside avg wall clock time in the Activity section:
Protocol
Count
Avg Wall Clock
Avg Agent Time
SPIR
25
2.5h
45min
Bugfix
78
35min
12min
Phase 1 (consultation-based estimate)
Sum consultation durations per project from MetricsDB as an approximation of agent time. This underestimates (doesn't include non-consultation work) but is available now.
Phase 2 (terminal session tracking)
Add session duration tracking to Tower terminal management. When a builder terminal is destroyed or cleaned up, record the total active duration.
Activity
waleedkadous commentedon Feb 24, 2026
On it! Working on a fix now.
Fix #541: Track and display per-project agent time in analytics
Fix #541: Update dashboard test mock with avgAgentTimeHours field
Merge pull request #555 from cluesmith/builder/bugfix-541-analytics-t…