feat(importer): add Claude Code activity metrics#8
Conversation
|
Hey, thanks for the PR! I pushed some changes on |
a89847e to
cd3ec91
Compare
|
Thanks for the work on this. The feature direction looks useful: bringing Claude Code historical imports closer to the activity metrics shown from live telemetry would make reporting and dashboards more valuable. Before merging, I think a few correctness details should be tightened so the imported metrics do not mislead users:
Overall, I would support landing this after those points are addressed. The product value is solid, but these metrics will likely be used for reporting, so it is important that their semantics are either accurate or explicitly documented as reconstructed estimates. |
Summary
Adds Claude Code activity metrics to the local JSONL importer.
claude_code.lines_of_code.countfrom Edit, Write, and MultiEdit tool calls.claude_code.pull_request.count,claude_code.commit.count,claude_code.session.count, andclaude_code.active_time.total.Impact
Claude Code imports expose repository-aware activity metrics that can be used for reporting and dashboards.
Stack
This branch is stacked after
pr-repository-attribution; this PR targetsmainper request, so its diff includes the repository attribution commit until the first PR merges.Validation
GOROOT=/opt/homebrew/Cellar/go/1.26.1/libexec go test ./internal/importerNote: plain
go testcurrently fails locally becausegoreports 1.26.1 whileGOROOTis set to a mise 1.24.0 install.