GitChameleon 2.0: Evaluating AI Code Generation Against Python Library Version Incompatibilities

Diganta Misra, Nizar Islah, Victor May, Brice Rauby, Zihan Wang +7 more
7/16/2025
cs.SEcs.AIcs.PL

Official code: mrcabbage972/GitChameleonBenchmark (8 stars, Apache-2.0, last commit 2026-04-17).

Abstract

The rapid evolution of software libraries poses a considerable hurdle for code generation, necessitating continuous adaptation to frequent version updates while preserving backward compatibility. While existing code evolution benchmarks provide valuable insights, they typically lack execution-based evaluation for generating code compliant with specific library versions. To address this, we introduce GitChameleon 2.0, a novel, meticulously curated dataset comprising 328 Python code completion problems, each conditioned on specific library versions and accompanied by executable unit tests. GitChameleon 2.0 rigorously evaluates the capacity of contemporary large language models (LLMs), LLM-powered agents, code assistants, and RAG systems to perform version-conditioned code generation that demonstrates functional accuracy through execution. Our extensive evaluations indicate that state-of-the-art systems encounter significant challenges with this task; enterprise models achieving baseline success rates in the 48-51% range, underscoring the intricacy of the problem. By offering an execution-based benchmark emphasizing the dynamic nature of code libraries, GitChameleon 2.0 enables a clearer understanding of this challenge and helps guide the development of more adaptable and dependable AI code generation methods. We make the dataset and evaluation code publicly available at https://github.com/mrcabbage972/GitChameleonBenchmark.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

GitChameleon 2.0, a version-conditioned coding benchmark

83Python, MakefileMay 27, 20256 months agoApache-2.0
benchmarkpython

Similar Papers

Cite this paper

@article{misra2025gitchameleon,
  title  = {GitChameleon 2.0: Evaluating AI Code Generation Against Python Library Version Incompatibilities},
  author = {Diganta Misra and Nizar Islah and Victor May and Brice Rauby and Zihan Wang and Justine Gehring and Antonio Orvieto and Muawiz Chaudhary and Eilif B. Muller and Irina Rish and Samira Ebrahimi Kahou and Massimo Caccia},
  year   = {2025},
  eprint = {2507.12367},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.12367v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.12367.svg)](https://codeofpaper.com/paper/2507.12367)

Discussion