← All articles

Measure engineering output beyond lines of code

Combine code-effort measurement with delivery, review quality, AI costs and developer feedback. Use Weave to identify specific improvements.

Published Updated Read Time: 12 min
On this page

Lines of code tell you how much text changed. They do not tell you how difficult the work was, whether it improved the product or how much review it needed. AI coding tools make that distinction more important because they can generate a large change quickly. Weave combines an effort-based output measure with review, delivery, AI costs and developer feedback, so teams can understand the work and decide what to improve.

Developer productivity frameworks

DORA, SPACE and value-stream measures answer different questions. Delivery measures show how reliably work reaches production. Developer feedback shows where the process creates friction. Code output adds an estimate of the technical work completed. Use them together rather than asking one metric to describe the whole team.

DORA Metrics

DORA's current framework measures software delivery performance with five metrics:

  • Deployment frequency: how often changes reach production.

  • Change lead time: the interval from a committed change to its production deployment.

  • Failed deployment recovery time: the time needed to recover from a failed deployment that requires intervention.

  • Change fail rate: the share of deployments requiring immediate intervention, such as a rollback or hotfix.

  • Deployment rework rate: the share of deployments made as unplanned responses to production incidents.

Together, they describe delivery throughput and instability for an application or service. Weave adds code-output and review measures so a team can see what work was delivered and how much review it required. Developer feedback adds context about interruptions, requirements and other conditions around that work.

Check out where DORA metrics fall short.

SPACE Metrics

Developed by GitHub and Microsoft Research to complement DORA metrics, the SPACE framework covers five dimensions at individual, team and system level:

  • Satisfaction and well-being

  • Performance

  • Activity

  • Communication and collaboration

  • Efficiency and flow

SPACE metrics are particularly valuable for clarifying whether an engineering organization is optimized for developer experience. For example, tracking interruptions that developers experience can indicate areas needing improvement.

Value Stream Metrics

Value stream metrics focus on the flow of work through the entire software development lifecycle. These metrics help identify bottlenecks and inefficiencies in the development process, allowing teams to optimize their workflows and deliver value more quickly.

Metrics to use together

Use output, delivery, review and stability measures together. Each describes a different part of the work and points to different follow-up.

Weave Code Output: effort represented by the code

Weave estimates the expert effort represented by code changes. Its Code Output documentation reports a 0.94 correlation with effort, compared with 0.34 for lines of code, citing Weave's own research.

Silk reads the intent, complexity, risk and dependencies in a change, then explains its estimate in expert hours. An engineer can inspect the reasoning and calibrate it with context the model missed. The unit describes the work represented by the code; it is not a timesheet or a claim that the author spent those hours.

This makes difficult work easier to discuss. A short fix may require knowledge of several services, while a large generated change may be routine. Engineers can use their own output history to understand that work mix and prepare a useful conversation about progress or support.

Cycle Time

Cycle time measures how long work takes to move through a defined process. Keep the start and end events explicit: PR open-to-merge, commit-to-deployment and active coding time describe different things. A shorter interval is useful only if you know which stage improved.

Weave puts delivery trends beside output, review rounds and rework. If output rises while review slows, inspect the review queue and the changes themselves. If cycle time falls because the work became more routine, the effort estimate helps explain that difference. The next action can then address the actual problem, such as reviewer load or repeated issues in generated code.

Inner/Outer Loop Time Analysis

A particularly effective approach to productivity improvement involves analyzing developer activities through two distinct loops:

  • Inner Loop: Activities directly related to creating the product (coding, building, unit testing)

  • Outer Loop: Tasks required to push code to production (integration, testing, releasing, deployment)

Inner-loop work creates and tests changes; outer-loop work integrates and releases them. Both are necessary. Track where engineers wait or repeat work, then ask which delay can be removed without weakening quality. A team doing critical release or reliability work should not look unproductive simply because its time is outside feature coding.

Pull Request Metrics

Several PR-related metrics serve as leading indicators of overall efficiency:

  • PR Size: Smaller PRs typically result in faster pickup times, quicker reviews, and shorter development cycles, ultimately delivering faster time to value. Weave estimates the expert effort represented by a code change and explains how intent, complexity, risk and dependencies affected the score.

  • PR Maturity: Minimizing back-and-forth in pull requests ensures quick and decisive reviews

  • Review Speed: How quickly team members respond to review requests

  • Review Cycles: Number of review iterations before approval

Stability Indicators

Stability metrics help teams balance speed with quality:

  • Code Churn and Rework: Measures how often code needs to be rewritten shortly after being committed

  • Change fail rate: the share of deployments that require immediate intervention

  • Failed deployment recovery time: how long recovery takes after a failed deployment

  • Deployment rework rate: the share of deployments needed as unplanned responses to production incidents

Read stability and speed together. A faster merge process accompanied by more reverts calls for a different response from faster delivery with stable quality. A revert is still only one signal: it will not capture every defect, abandoned approach or change in requirements.

Code review quality

The quality of code reviews significantly impacts both immediate code quality and long-term team knowledge sharing. Key indicators include:

  • Review quality: Weave rates submitted feedback for depth, communication, practicality and demonstrated impact; approval-only reviews are not scored.

  • Review depth: Weave classifies merged PRs as full review, rubber stamp or no human review.

Use review findings to improve the next change. Weave's review analysis helps managers examine depth and usefulness alongside review load and rounds. Recurring repository standards can become Weave Checks: Markdown rules that run locally or in GitHub Actions, comment on violations and resolve addressed threads after a successful rerun. This reduces the need for a reviewer to repeat the same instruction.

Code Turnover

Code turnover measures the percentage of a pull request that gets rewritten after being merged, serving as a key indicator of code quality and requirements stability:

  • Turnover Rate Thresholds: Establishing acceptable baseline rates for different components, as excessive turnover indicates rushed implementation, unclear requirements, or technical debt accumulation

  • Root Cause Patterns: Distinguishing between turnover caused by evolving business needs versus turnover resulting from bugs, architectural issues, or insufficient initial code quality

  • Author and Component Analysis: Identifying which developers or codebase areas consistently experience higher turnover rates to inform targeted mentoring, review processes, and refactoring priorities

Turnover needs context. Deleting a prototype, changing requirements and repairing a defect can all rewrite code for different reasons. Inspect the affected PRs before treating the rate as a quality problem. The useful result is a change to requirements, testing or review practice, not a target that discourages necessary refactoring.

Set up the measurement

A useful measurement plan starts with an operational problem. Pick the work you want to improve, collect the relevant evidence and involve engineers in interpreting it. Keep individual output in context with reviews, collaboration and work that Git does not capture.

Match the report to the problem

The report should show the work you want to improve and the records needed to investigate it:

  • Slow reviews: compare review load, pickup time and rounds, then inspect the affected PRs and comments.

  • Delayed releases: follow change lead time and deployment frequency for the application, with incident and recovery evidence beside them.

  • An AI rollout: compare code output, quality and tool costs to see whether higher usage accompanies more completed work.

  • Repeated code issues: examine review findings and rework, then add recurring repository requirements to Weave Checks.

  • Developer friction: ask custom survey questions about interruptions, unclear requirements or tool problems and compare the responses with delivery trends.

Weave's custom dashboards let managers save the relevant views together. That makes it easier to revisit the same problem after a process, tooling or training change.

Collect, define and review the data

A useful report needs reliable inputs and consistent definitions. Set up these parts before interpreting changes in the result:

  1. Connect the relevant tools. Include the repositories, reviews and Jira or Linear tasks for the team being measured.

  2. Check coverage and team membership. Confirm which records have been imported and when each integration began collecting data.

  3. Define the measurement. Record the team, dates and start and end events used for each delivery interval. Keep billed AI costs separate from usage estimates.

  4. Inspect the records. Weave's custom queries accept plain English or SQL and show result rows, so managers can examine the PRs or tasks included in an analysis.

  5. Save and revisit the report. Add the query to a dashboard, make the workflow change and review output, quality and delivery afterward.

These steps make the result easier to inspect and maintain[1].

Avoid Common Measurement Pitfalls

When implementing productivity metrics, be careful to avoid these common mistakes:

  • Using metrics punitively: Creating a culture of fear rather than improvement

  • Ignoring developer experience: Overlooking satisfaction and well-being factors

  • Setting arbitrary targets: Pushing for improvements without context

Connect the data and inspect the result

Weave collects engineering data from connected tools, calculates output and delivery measures, and lets the team inspect the records behind them. The setup should reflect your actual repositories, team membership and AI integrations so missing data does not look like low activity.

Integrated Analytics Platforms

Engineering analytics platforms connect to your repositories, issue trackers and coding tools to combine output, cost and delivery reports.

Weave links code output with reviews, delivery and AI usage. Wooly answers questions across those connected records and cites its sources. Managers can ask why a trend changed, inspect the PRs or reviews involved and save the analysis in a custom dashboard. Authorized users can add plain-English or SQL queries and check the rows before sharing a report.

Balancing Metrics With Developer Experience

Developer feedback fills gaps in repository data. A slowdown might reflect unclear requirements, interruptions or a difficult dependency rather than poor tool use. Weave's alpha developer-survey report supports custom questions and manually launched cycles. Admins select the audience and keep one cycle open at a time; the default two-week window can be changed. Responses can then be read beside the affected team's output and delivery.

Use the review measures to identify the next change

Size the work waiting for review

Weave's output waiting for review sums estimated code effort on open, non-draft PRs with pending reviewer or team requests. It distinguishes a small queue of difficult work from a larger queue of routine changes. Each pending request counts separately; the value is a current backlog measure, not a unique-PR total.

Check whether feedback is acted on

Comment resolution rate measures suggestion comments addressed by a later commit or a clear reply. It does not simply copy the code host's resolved-thread flag. The underlying exchange helps a reviewer see whether their advice changed the code, was answered with a reason or still needs attention.

Measure the effort contributed by reviewers

Code review output estimates the expert effort represented by the reviewer's actual comments and correctness reasoning. Human and AI reviews share the scale, while authoring output remains a separate measure. This makes substantial review work visible without rewarding a larger number of superficial comments.

Compare speed with usefulness

The review efficiency index combines turnaround, comment resolution and review quality after converting each to a percentile. The default weights are equal and can be configured by organization or team; a result requires all three components. Managers can inspect the components to see whether a change improved responsiveness, feedback quality or follow-through.

These measures lead to different actions. Pending effort and slow turnaround can justify changing reviewer assignments. Unaddressed suggestions can call for a clearer response process. Repeated standards violations can become Checks, while useful but demanding feedback deserves capacity in the team's plan.

Add AI cost and coaching to the same review

AI adoption introduces two additional questions: what the tool cost and how effectively engineers used it. Token Intelligence distinguishes configured subscriptions, provider charges and usage estimates. More tokens on a flat-rate plan do not necessarily mean a larger bill. Cost per output helps assess efficiency; the AI ROI report separately calculates Value from AI, Net savings and ROI from its selected Output or Payroll formula.

With AI Skills V2 and conversation capture enabled, Weave samples sessions and assesses human planning, context and verification where the interaction provides evidence. Ratings include a rationale and conversation location. A manager can discuss a specific decision with the engineer instead of setting a higher usage target.

For an expensive model-selection pattern, Weave Router is a separate product that changes which model serves coding requests. Weave reports 40% average token-spend savings with Router and 20–30% faster shipping for customers using the broader platform. Those outcomes are separate from an individual team's output estimate.

Use the measures to improve a specific part of the workflow

Start with the result that needs attention. Inspect the relevant code, review or delivery records, then discuss the cause with the team. A repeated review issue may need a Check; an unclear agent interaction may need coaching; a stalled project may need a smaller scope or different staffing.

See Weave's engineering reports for the full workflow.

See the work behind your AI spend

Compare code output, AI cost and quality, then inspect the work behind the trend.

Book a demo