Skip to main content

How it works

The output score for a PR is the answer to the question: “how long would this PR take an expert engineer to complete?” The result is a standard unit to quantify output. It’s consistent and comparable across individuals, teams, languages, and organizations. Unlike flawed metrics like lines of code or number of PRs, our algorithm analyzes source code changes. It understands the meaning and impact of every change.

Video explanation

Understanding code output

Examples

What does that look like in practice? Here are some example PRs from open source teams:

PostHog/posthog#25056

Adds backend, frontend, and tests for a new feature62 commits across 2 weeks
Output: 15.3

microsoft/vscode#222315

Refactors code to use a new service and adds new tests6 commits across 3 days
Output: 8.4

facebook/react#27977

Small change with extensive, high effort testsApproximately 1 day of work for expert engineer
Output: 5.8

Technical details

Weave’s code output algorithm combines the world knowledge of an LLM with static analysis and a custom ML model.
It was trained on a large proprietary data set of PRs, hand labelled by the expert engineers that wrote them.
Some PRs receive a score of 0 because the changes don’t register as meaningful code output. Common reasons include: the PR was flagged as an ignored PR, all files match your ignored paths (documentation, config, lock files, generated code), or all changes are file moves or renames.
Yes. Test code is scored the same way as any other code: by how long the work would take an expert engineer. There’s no fixed weight for test files versus production code. Thoughtful tests that cover tricky logic can score as high as a feature, while large sets of repetitive or templated tests score lower than their line count suggests, because each extra file of the same pattern adds little effort.
Output doesn’t scale with lines changed. A PR with tens of thousands of added lines can score below a much smaller one when most of those lines follow one repeated pattern, while the smaller PR needed more original work per change.

Total output

Total output is a person’s code output plus their code review output for the selected date range. Both use the same expert-engineer-hour unit, so total output shows the combined authoring and reviewing work someone did. It appears as a column in the individual and team report tables.

How output is attributed

No. Weave estimates output from the final diff of the merged PR (or GitLab MR), so squashing, rebasing, or rewriting commits doesn’t change its score. Individual commits only decide how a PR’s output is split between its contributors, such as commit authors, co-authors, and AI tools.
Output is dated by the PR’s merge date, not by when the commits were written. If you open or merge a PR weeks after doing the work, its output appears in the period it was merged.
Not by default. Commits pushed directly to a branch without a PR don’t count toward output. For teams that work without PRs, Weave staff can enable commit mode on a repository, which estimates output from commits instead. Contact support to discuss commit mode.
When you merge a PR into a feature branch and later merge that branch into main, both PRs count by default. To count the work once, add a base branch whitelist for your integration branch, such as main, under branch whitelists.
When you connect a code platform, Weave imports PRs from about the last 6 months by default. Older PRs aren’t included unless Weave support sets an earlier start date.

1 Source: Weave research, 2026

Last modified on November 26, 2026