What’s tracked
- Usage activity — engineers using Sourcegraph and their activity
- Code generation — AI-assisted code and lines generated
- Cost tracking — seat-based Sourcegraph cost
Prerequisites
- A Sourcegraph subscription with access to usage exports
- Admin access to your Weave organization
Setup
1
Export your Sourcegraph usage CSV
From your Sourcegraph admin tools, export the per-user usage report as a CSV.
2
Upload to Weave
Go to Data → Sourcegraph → Upload and upload the CSV. Weave parses it and attributes activity to your engineers.
3
Verify
Check that Sourcegraph activity appears in Weave’s AI metrics.
Metrics enabled
Once connected, you can track:- AI code LOC — Lines generated by Sourcegraph
- AI output percentage — Portion of output from Sourcegraph
- AI efficiency index — Impact on productivity
- AI tool costs — seat-based Sourcegraph cost
Cost tracking
The Sourcegraph usage CSV tracks activity, not dollar cost, so Sourcegraph cost is seat-based. Enter your Sourcegraph subscription in Settings → Financial → Tool subscription costs (seats × cost per user), and Weave allocates that flat cost across the engineers active in Sourcegraph during each period.Data privacy
Weave syncs only the aggregate usage metrics contained in the CSV you upload:- Per-user usage and code-generation counts
- Your source code content
- AI prompts or responses
- File names or project structure
Related integrations
- Cursor — AI IDE
- Cline — VS Code extension AI assistant
- Claude Code — CLI-based AI assistant
