Skip to main content

Configuring AI Classification Thresholds

Use Classification Thresholds to control how LinearB classifies commits and pull requests as AI-assisted. These settings affect how AI activity is labeled in the product and how AI Analytics metrics…

Steven Silverstone
Updated by Steven Silverstone

Use Classification Thresholds to control how LinearB classifies commits and pull requests as AI-assisted. These settings affect how AI activity is labeled in the product and how AI Analytics metrics are interpreted across dashboards and reports.

Important:
Changing these thresholds can affect AI-assisted commit and pull request classification, which may change how AI adoption and usage metrics appear in LinearB.

Overview

LinearB evaluates AI activity at the commit level first, and then uses that result when classifying pull requests.

The Classification Thresholds settings let you define:

  • Commit AI-Assistance Threshold – when a commit is marked as AI-assisted
  • PR AI-Assistance Threshold – when a pull request is marked as AI-assisted based on its commits

Where to configure classification thresholds

  1. In LinearB, go to Settings.
  2. Open the AI Tools tab.
  3. Select Classification Thresholds.
  4. Adjust the threshold values as needed.

The Classification Thresholds settings appear as shown below:

Screenshot description

Commit AI-Assistance Threshold

The Commit AI-Assistance Threshold determines when a commit is classified as AI-assisted.

A commit is marked as AI-assisted when AI activity meets or exceeds the configured percentage of total commit activity.

For example, if the threshold is set to 50%, a commit is marked AI-assisted only when AI activity accounts for at least 50% of that commit’s total activity.


PR AI-Assistance Threshold

The PR AI-Assistance Threshold determines when a pull request is classified as AI-assisted based on the commits included in that PR.

LinearB first classifies each commit individually. It then evaluates the pull request using the configured PR threshold.

Example:

  • If a pull request contains 10 commits
  • and 1 or more of those commits are classified as AI-assisted
  • then the pull request is marked AI-assisted when the PR threshold is set accordingly
Thresholds affect classification and analytics labeling. They do not enforce behavior or restrict developer workflows.

How classification works

  • AI activity is measured per commit.
  • Commit classification is based on the Commit AI-Assistance Threshold.
  • PR classification is based on the share of AI-assisted commits in the PR.
  • Thresholds affect how data is labeled in AI Analytics and related reporting.

Example

Suppose the following thresholds are configured:

  • Commit AI-Assistance Threshold: 50%
  • PR AI-Assistance Threshold: 10%

If a pull request contains 10 commits and 1 of those commits is classified as AI-assisted, the pull request is marked as AI-assisted because 1 out of 10 commits = 10%.


How this affects AI Analytics

Classification thresholds directly affect how LinearB reports AI-assisted work in:

  • AI adoption metrics
  • AI usage metrics
  • AI-assisted commit counts
  • AI-assisted pull request counts

If you change the thresholds, the same engineering activity may be classified differently than before.


When to adjust thresholds

Consider adjusting these settings if:

  • Your team uses AI tools heavily but wants a stricter definition of AI-assisted work
  • Your commits are typically very small or very large, which may affect how AI contribution is interpreted
  • You want AI Analytics to better reflect your organization’s development practices

Metric interpretation note:
Changing classification thresholds does not change developer behavior or historical activity. It only changes how LinearB classifies commits and pull requests as AI-assisted. After updating a threshold, previously ingested commits may be reclassified in analytics views, which can cause AI adoption or AI usage metrics to appear higher or lower than before.

How did we do?

AI Rule Files

Configuring Claude Code

Contact