• Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools
Back to blog

October 22, 2026 · 11 min read

Checking dependency upgrades for changed defaults

A library upgrade can change your application without changing its code. We tested agents that compare default settings in the old and new releases.

Upgrading a library can change what your application does even when your own code stays the same. Suppose a network request uses the library’s default timeout because you never set one. If a new release changes that default, the request may start failing sooner or waiting longer.

A dependency bump is a change to the library version your project uses. Reviewing one often means checking a small change in a dependency file. The setting that affects your application may be several layers away, inside the library.

We built an agent to look for these changes. It reads the old and new releases, then checks which calls in the application rely on a default that changed. GitHits provides access to both versions without installing them in the agent’s environment.

We tested six models on 81 real upgrade pull requests. All six found more of the changed defaults when they could read both releases through GitHits. The sections below explain what we asked them to find, how we scored their answers, and where they still missed changes.

The task

Consider a pull request (PR) upgrading the Python redis package from 5.x to 8.0. The application calls into the package without setting connection options such as socket_timeout or ssl_check_hostname. Those calls rely on the library to supply the values.

We give the agent the application’s call sites: the places where its code calls a function or creates an object from the package. Each includes the file, line, call, and imports. The agent must identify each call that omits a parameter whose declared default changed between releases.

A finding therefore has two parts: the affected call site and the parameter it leaves unset. We excluded added, removed, and renamed parameters to keep the experiment focused on changed defaults. A changed declaration can deserve review even when it has no practical effect in a particular application.

What the agent is allowed to read

We kept the prompt, agent workflow, and self-check the same while changing the available information:

  • Memory only: the model answers without tools, using what it learned during training.
  • Installed version: the agent can search and read the old release installed in Python’s site-packages directory. A helper also shows function parameters and defaults. This represents an environment where the proposed release hasn’t been installed yet.
  • GitHits, both releases: the agent uses equivalent tools through the API to inspect the old and new releases, such as pypi:redis@5.0.1 and pypi:redis@8.0.0.

The self-check asks the model to reconsider an answer when it lists an unknown call site, flags a parameter the application explicitly sets, or reports identical old and new defaults. It uses the supplied calls and the agent’s answer. It has no access to the answer key.

How we built the benchmark

We used 81 Dependabot upgrade PRs from 81 public repositories, covering 29 packages from PyPI, the Python package registry. Dependabot opens PRs to update dependencies. For each project, we read the last commit before its upgrade PR opened and confirmed the installed version.

The dataset contained 914 call sites, about 11 per PR. We found 150 call-site and parameter pairs that relied on a changed default. In 24 of the 81 upgrades, none of the supplied calls relied on a changed default. Those cases test whether an agent raises false alarms. Thirty-eight upgrades changed the package’s major version.

We built the answer key by downloading both releases from PyPI and examining their code with Python’s ast parser. It reads the structure of Python code without running it. We extracted function parameters and defaults, resolved named constants and simple arithmetic, and followed imports and aliases to connect each application call to the library function.

This matters when two expressions look different but have the same value. A renamed constant shouldn’t count as a changed default. A change from 2**16 to 2**18 should. We counted a finding when the default value changed and the application supplied no value for that parameter, either by name or by position.

What we found

We report precision and recall as percentages, and F1 on a 0–100 scale:

  • Precision: of the changes the agent flagged, how many were real?
  • Recall: of the changes in the answer key, how many did it find?
  • F1: a combined score that rewards both precision and recall. We show it on a 0–100 scale; 100 means every required finding and no false alarms.

“Upgrades fully right” means the entire answer for a PR matched the answer key. Model cost is per 1,000 reviews and excludes GitHits API fees. Some setups were repeated three times and others once; the limits section explains which.

F1 against model cost per 1,000 reviews, on a log scale, for six models. Color shows what the agent could read: memory only, the installed version, or GitHits with both releases. Error bars show the spread over three runs where we ran three.

ModelWhat it could readPrecisionRecallF1Upgrades fully rightModel cost / 1,000
Gemma 4 31BMemory only100.00.91.831%$0.15
Gemma 4 31BInstalled version87.53.16.035%$1.01
Gemma 4 31BGitHits, both releases87.065.674.868%$1.94
DeepSeek V4.1 FlashMemory only0.00.00.030%$0.15
DeepSeek V4.1 FlashInstalled version29.21.63.031%$2.64
DeepSeek V4.1 FlashGitHits, both releases90.473.681.174%$4.42
gpt-oss-120bMemory only9.71.32.326%$0.10
gpt-oss-120bInstalled version15.46.49.128%$0.30
gpt-oss-120bGitHits, both releases84.256.967.958%$0.58
Qwen3.5-122BMemory only26.72.74.833%$12.42
Qwen3.5-122BInstalled version19.510.013.233%$14.97
Qwen3.5-122BGitHits, both releases80.686.083.275%$22.53
Kimi K2.6Memory only9.69.39.525%$3.21
Kimi K2.6Installed version9.314.011.221%$37.54
Kimi K2.6GitHits, both releases60.582.769.967%$38.00
Codex gpt-6.1-sol (low)Memory only79.423.135.846%$4.03
Codex gpt-6.1-sol (low)Installed version86.040.955.456%$13.27
Codex gpt-6.1-sol (low)GitHits, both releases93.498.095.791%$58.43

Every model scored higher with access to both releases. Reading the installed version showed what the application had been using, but left the proposed defaults unavailable. With GitHits, F1 scores ranged from 67.9 to 95.7. With the installed version alone, they ranged from 3.0 to 55.4.

DeepSeek V4.1 Flash with GitHits reached 81.1 F1 at $4.42 in model cost per 1,000 reviews. Codex with GitHits reached 95.7 F1 at an estimated $58.43. Codex gave a fully correct answer on 91% of upgrades and raised no false alarms on the 24 upgrades with no relevant default changes. These results show the cost and accuracy choices within this experiment.

Most models with GitHits had precision between 81% and 93%; Kimi reached 61%. Missed changes were a larger problem for several models. Sometimes they skipped a called function or decided a changed default didn’t matter. Typer’s pretty_exceptions_show_locals was the most frequently missed setting.

The self-check improved F1 in the GitHits setup from 52 to 68 for gpt-oss-120b, 69 to 75 for Gemma, and 60 to 70 for Kimi.

What the agent caught

These examples show the kinds of defaults the agent compared. The linked releases contain the old and new declarations:

  • xgboost changed the setting for categorical data, such as named groups. In DMatrix, enable_categorical went from False to True (old release, new release). F1 across all models on xgboost went from 2 with the installed version to 99 with GitHits.
  • aiohttp changed how much data its HTTP client buffers while reading a response. ClientSession raised read_bufsize from 64 KiB to 256 KiB (old release, new release). F1 across all models on aiohttp went from 1 with the installed version to 88 with GitHits.
  • scipy changed a setting used in signal analysis. Its welch and stft functions changed window from 'hann' to 'hann_periodic' (old release, new release). F1 across all models on scipy went from 34 with the installed version to 94 with GitHits.
  • werkzeug changed its default password-hashing method. generate_password_hash moved method from pbkdf2 to scrypt (old release, new release). F1 across all models on werkzeug went from 64 with the installed version to 99 with GitHits.

Typer and redis had the lowest scores with GitHits. In Typer, the changed setting controls whether error reports show local variables. In redis, several connection settings changed at once, including timeouts and hostname checking.

The table combines results across models for packages with relevant changes. “Changed defaults in calls” counts the call-site and parameter pairs the agent needed to flag.

PackageUpgrade PRsChanged defaults in callsF1 (installed)F1 (GitHits)
aiohttp6200.688.1
fastapi3236.884.0
langchain-core1142.192.9
matplotlib210.080.0
pandas4626.968.5
polars71527.676.2
python-telegram-bot1331.053.6
redis72120.851.2
scikit-learn71023.672.3
scipy31233.693.5
tenacity764.275.1
typer41118.942.0
werkzeug7664.298.8
xgboost7362.298.7

Limits of the comparison

Codex ran through a ChatGPT subscription using codex exec. Its model costs are list-price estimates based on recorded transcript sizes. The other models’ costs are the amounts charged by OpenRouter.

Gemma, DeepSeek, gpt-oss, and Codex each ran three times. Qwen and Kimi ran once to stay within budget, so we can’t report their variation between runs. Eleven of the 3,402 runs exceeded the time limit and were scored as no answer.

We measured changes in declared defaults. Some have no effect for a particular configuration. For example, scikit-learn changing l1_ratio from None to 0.0 under an L2 penalty leaves the calculation unchanged. A finding is a reason to inspect the affected call, rather than proof that the application will behave differently.

The experiment covered Python, and the agent received the call sites in advance. It didn’t have to discover them. A complete review workflow would also need a way to collect those calls, such as a static analyzer that examines code without running it.

Running this yourself

For a similar review workflow, the experiment suggests testing a lower-cost model with access to both releases. DeepSeek with GitHits provided one useful balance of cost and accuracy; Codex with GitHits found more changes at a higher model cost. Your own dependencies and tolerance for missed findings should guide the choice.

The agent uses /v1/grep to find a function or class in a specific release, then /v1/read to read its source. It repeats those API calls for the old and new versions. The REST API is open for evaluation at https://api.githits.dev/v1; the v1 contract isn’t final yet.

If you want to add this check to an automated review workflow, book a call to discuss the integration.

Get started

GitHits in one command

Install GitHits or refresh an existing setup with the same command.

npx -y githits@latest init