π Insights Page β Feedback & Suggestions (Experimental Feature) #110
shahariaazam
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Insights Page β Share Your Feedback (Experimental Feature)
We recently shipped the Insights page under Analytics. It analyses your Claude Code session JSONL files and surfaces productivity and efficiency metrics.
Before diving in, we want to be fully transparent: this is experimental. The formulas below are our first attempt at quantifying something inherently qualitative β how productively you are using Claude Code. They may not fit every workflow. We plan to iterate based on your feedback.
How the metrics are currently calculated
All metrics are computed by replaying the event stream of each Claude Code session JSONL file through a pipeline of independent processors.
Turn Count & Steps per Turn
A turn is counted each time a genuine user message arrives (non-sidechain, non-
tool_resultreply). A step is any non-skipped event in the session.Known limitations: programmatic tool responses that look like user messages could inflate the turn count; very short sessions (1 turn) are treated the same as long ones.
Autonomy Score (0β100)
This is the most experimental metric. It tries to capture how much Claude ran on its own between human interruptions.
Interpretation: Fewer human turns + more steps per turn β higher score. A session where you sent one message and Claude ran 50 tool calls scores near 100. A back-and-forth conversation with many short turns scores low.
Known limitations: The
1/TurnCountfactor drops fast β 2 turns gives50ΓlogFactor, 5 turns gives20ΓlogFactor. A long productive session with many turns still scores poorly. Thelog(10)normalization is arbitrary and the formula does not account for session intent (pair-programming naturally has many turns).Tool Calls
The Top Tools chart shows the 10 most-called tools across all sessions in the selected period.
Tool Error Rate
Known limitations:
is_error: trueis set by Claude Code for certain tool failures, but not all failures set this flag. Some errors are silently retried and never appear in the stream.Duration & Thinking Time
For thinking time, the processor reads
system{"subtype":"turn_duration"}events when present. When those are absent, it falls back to:The 0.5 ms/character fallback is a rough heuristic with no empirical basis.
Known limitations:
TotalDurationMsincludes idle time if you left a session open.ThinkingTimeMsis unreliable whenturn_durationevents are missing.Cache Hit Rate
This comes directly from the
usagefield in assistant messages.Known limitations: Sessions with no caching (e.g. very short sessions) show 0%, which may not indicate a problem.
Cost Estimate
Pricing tiers (per 1M tokens, sourced from Anthropic API pricing, February 2026):
The model is inferred from the
modelfield on the first assistant message. Unknown models default to Sonnet pricing.Known limitations: Pricing is hardcoded and will become stale. Batch API discounts, free tier, and enterprise pricing are not accounted for.
Conversation Depth
Session Rhythm
Overall Productivity Score (frontend only, 0β100)
Computed in the browser from the aggregated summary:
Weight rationale (highly arbitrary): Autonomy gets 50% because it captures the core use-case of Claude running long tasks independently. Cache efficiency gets 30% because it directly correlates with cost and speed. Error-free sessions get 20% as a quality signal.
Known limitations: The weights have no empirical grounding. A session with high autonomy but many errors still scores well. The formula heavily penalises interactive/pair-programming workflows.
What we would like to know
All feedback β including "this metric is useless" β is genuinely helpful. Drop a comment below! π
All planned work are available #101
Beta Was this translation helpful? Give feedback.
All reactions