Repository navigation
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
Historical Claude Code imports now reconstruct activity metrics alongside token/cost usage and repository attribution. Tool activity is emitted from matching successful results, and usage deduplication remains independent of individual tool calls so split assistant responses retain their usage and all completed actions.
Behavior
-Cand-c, multiple completed commits, and string or array tool-result content. Session commands are never executed.type=cli. Update the README availability table and import documentation with reconstruction limits and the full-import versus incremental-watch distinction.v2.10503.1tov2.10505.0and its bundled bindings tov0.10505.0. This includes the upstream pointer-alignment fix for reading non-inlined strings under-race/checkptr. Add VARCHAR/BLOB boundary regression coverage.Scope and limitations
Activity reconstruction is available through full
import; the watcher continues to import transcripts and token/cost usage. PR links are a proxy for PR activity, not proof of creation. Session counts describe imported session files, and turn durations do not include user typing/reading time. Missing or ambiguous tool results are omitted. These limits and the relevantreconstructionattributes are documented indocs/import.md.The branch includes the repository-attribution work from #7 and has current
mainmerged into it, preserving the existing contributor commits.Validation
648e318: tests, Linux/macOS/Windows builds, and the full backend race suite on macOS.go test ./...,go vet ./..., andgo test -race ./... -timeout 120spassed with Go 1.26.8 on macOS arm64 and isolated session paths.-race, including the originalTestStateManagerreproducer. The new VARCHAR/BLOB test crashes with the old driver at the 13-byte boundary and passes with the upgraded driver; pointer checks remain enabled.