Usage & cost
Where usage comes from
Section titled “Where usage comes from”| Source | How | Notes |
|---|---|---|
| Claude Code session logs | linetrail usage collect on developer machines |
Metadata only. A dry run unless you add --upload |
| Vendor exports | An admin uploads the file in the dashboard | Claude Code Analytics; GitHub Copilot user-day metrics, billing seats and seat activity |
- Collected: tool and version, model, session and message ids, timestamps and token counts. Never prompts, responses or code.
- An actor email (
--actor-email) and session-to-commit links (--links) are separate opt-ins. - An optional daily upload can be scheduled per user with
linetrail setup --usage-upload daily(off by default). - LineTrail never calls a vendor’s API. Usage is not collected in CI.
- Cursor and Copilot don’t keep a per-token log, so their usage comes only from vendor exports.
- Built-in list prices in USD apply from their effective date. Usage before that has no price, and is never shown as 0.
- Subscription plans (Cursor, Copilot) are unpriced.
- The Cost page breaks estimated spend down by model, person, team, repository and pull request. Allocated plus unallocated always equals the total, per currency; currencies are never added together.
- Incomplete or unpriced costs are labelled, never shown as 0.
- Repository and pull-request cost is split equally across linked commits, not weighted by lines.
- People and teams are resolved through the current mapping, so a later remap moves earlier cost too.
Forecast and budgets
Section titled “Forecast and budgets”- The forecast is advisory: a trailing daily average over 28 days, projected linearly. It needs at least 14 days of history.
- A day with no usage counts as zero, so a gap in collection looks like an idle day.
- Budgets show one of: on track, at risk, exceeded or insufficient data.
Adoption funnel
Section titled “Adoption funnel”The Usage page shows a funnel from generated to accepted, committed and merged.
- A stage with no data reads not measured or unavailable, never 0.
- LineTrail doesn’t measure acceptance itself; it comes from vendor exports.
- Ratios are computed only within one source.
- Survival to merge is merged AI lines ÷ committed AI lines, over merged pull requests whose notes cover every commit.
Privacy
Section titled “Privacy”For viewers and service tokens, counts of one or two people are hidden and individual contributors are merged into one group. Per-event lists are visible to members and admins only.