Greptile raised a $50M Series B led by Menlo Ventures.

Read the announcement

The State of AI Coding

A study of engineering workflows and AI software development.
Q2 2026 edition.

By Greptile Research · Published

Download PDF
Table of Contents

Navigate the Report

Introduction

What changed in AI coding in Q2 2026

A year ago, the median pull request changed 68 lines of code. By June 2026, it changed 122. Over the same twelve months, lines changed per developer grew 3.5x, from 6,032 to 20,972. Anthropic's SDK reached 164 million monthly downloads, and OpenAI's download lead over Anthropic narrowed from 3.7:1 to 2.3:1 in six months.

The State of AI Coding: Q2 2026 tracks these shifts across engineering velocity, AI tool adoption, model provider trends, and the research shaping today's coding agents. It draws on Greptile's internal data and public npm and PyPI registries. Together, these signals show how quickly the way teams write, review, and ship code is changing, and what engineering leaders should watch next.

Section 01

Engineering Team Velocity

Measuring productivity gains across development workflows.

Chart 1.1

PRs Are Getting Bigger

Median PR size grew 79% from June 2025 to June 2026, rising from 68 to 122 lines changed per PR.

Captured from Greptile internal data engineering team velocity

View chart data
PRs Are Getting Bigger
MonthMedian lines changed per PR
2025-Jun68
2025-Jul69
2025-Aug72
2025-Sep71
2025-Oct80
2025-Nov82
2025-Dec89
2026-Jan96
2026-Feb106
2026-Mar101
2026-Apr113
2026-May125
2026-Jun122
Chart 1.2

Developer Output

Lines of code per developer grew 3.5x over the past year, from 6,032 to 20,972, a steady climb as AI coding tools act as a force multiplier.

Captured from Greptile internal data engineering team velocity

View chart data
Developer Output
MonthLines changed per developer
2025-Jun6,032
2025-Jul6,801
2025-Aug6,132
2025-Sep6,184
2025-Oct7,380
2025-Nov7,562
2025-Dec8,228
2026-Jan10,349
2026-Feb12,277
2026-Mar14,338
2026-Apr16,511
2026-May19,322
2026-Jun20,972
Chart 1.3

Medium Teams Output

Medium teams (6–50 devs) more than tripled output, from 7,576 to 27,584 lines per developer.

Captured from Greptile internal data engineering team velocity

View chart data
Medium Teams Output
MonthLines changed per developer
2025-Jun7,576
2025-Jul9,207
2025-Aug8,697
2025-Sep8,331
2025-Oct10,846
2025-Nov10,272
2025-Dec9,780
2026-Jan12,141
2026-Feb14,105
2026-Mar21,333
2026-Apr25,694
2026-May25,608
2026-Jun27,584
Chart 1.4

Lines Changed Per File

Median lines changed per file grew from 21 to 30 as PRs become denser.

Captured from Greptile internal data engineering team velocity

View chart data
Lines Changed Per File
MonthMedian lines changed per file
2025-Jun21
2025-Jul21
2025-Aug21.5
2025-Sep21.3
2025-Oct23
2025-Nov23
2025-Dec24
2026-Jan24.9
2026-Feb25.3
2026-Mar25
2026-Apr27
2026-May29.3
2026-Jun29.7

Section 02

AI Tool Adoption

Tracking the rise of AI-powered development tools.

Chart 2.1

AI Memory Packages

mem0 accounts for 58% of downloads among the five memory packages measured. LangMem slipped while Letta and Supermemory gained ground.

PyPI + npm monthly downloads, May 2026

View chart data
AI Memory Packages: share of selected package downloads
PackageMay 2026 (%)March 2026 (%)Change (percentage points)
mem058.357.90.4
Zep21.321.20.1
LangMem11.314.7-3.4
Supermemory4.13.11
Letta53.21.8
Chart 2.2

Vector DB Developer Installs

faiss and pgvector lead on developer installs. Weaviate sits mid-pack at 11% after excluding automated uv-installer traffic that had inflated its raw download count.

Open-source vector DBs, PyPI pip installs, June 2026. Automated uv-installer traffic excluded.

View chart data
Vector DB Developer Installs: share of selected package downloads
PackageJune 2026 (%)March 2026 (%)Change (percentage points)
faiss23.831-7.2
pgvector18.612.46.2
ChromaDB16151
Qdrant15.814.51.3
Weaviate11.510.51
LanceDB9.58.31.2
Milvus4.98.4-3.5
Chart 2.3

AI Rules Files

CLAUDE.md present in 80% of Greptile orgs that use an AI rules file. AGENTS.md climbed to 63%, while Cursor Rules slid to 34%.

About 18% of orgs use all three formats, roughly flat since December (17%), even as CLAUDE.md and AGENTS.md adoption climbed

View chart data
AI Rules Files: independent adoption rates
Rules fileJune 2026 (% of orgs)March 2026 (% of orgs)Change (percentage points)
CLAUDE.md80755
AGENTS.md635310
Cursor Rules3439-5
Chart 2.4

AI SDK Growth

Anthropic SDK reached 164M monthly downloads by June 2026 (npm + pip). OpenAI Agents climbed to 17M.

PyPI (pip installer) + npm monthly downloads, Apr 2025 – Jun 2026

View chart data
AI SDK Growth: monthly downloads in millions
MonthAnthropic SDKVercel AI SDKLlamaIndexPydantic AIInstructorLangChain JSOpenAI AgentsCrewAI
2025-Apr11.454.532.310.31.363.310.20.48
2025-May12.285.761.990.391.493.520.340.55
2025-Jun14.787.221.930.611.343.830.520.55
2025-Jul17.168.652.150.811.354.460.640.71
2025-Aug23.719.92.260.971.444.690.790.74
2025-Sep22.4112.172.691.341.944.970.910.84
2025-Oct24.4717.212.871.212.085.341.290.91
2025-Nov24.9119.973.31.342.465.071.41.05
2025-Dec26.6820.52.541.392.825.371.751.07
2026-Jan35.0726.052.441.713.486.212.451.81
2026-Feb48.331.882.321.963.116.893.552.54
2026-Mar80.3844.432.514.153.289.75.844.16
2026-Apr116.4149.232.494.394.519.197.174.61
2026-May143.655.984.854.546.59.3214.0611.27
2026-Jun163.763.94.943.47.510.1816.988.21
Chart 2.5

LLMOps Top 5

LiteLLM's pip installs overtook LangSmith, reaching 191M/month by June 2026.

PyPI downloads via pip installer (uv/CI traffic excluded), Jun 2025 – Jun 2026

LangSmith is bundled with LangChain installs.

View chart data
LLMOps Top 5: monthly pip downloads in millions
MonthLangSmithLiteLLMMLflowLangfuseBraintrust
2025-Jun99.925.9517.671.270.08
2025-Jul102.477.8318.881.560.14
2025-Aug99.159.1418.831.630.2
2025-Sep94.2115.5219.921.710.75
2025-Oct97.8818.1120.552.091.13
2025-Nov94.321.2121.062.190.59
2025-Dec94.325.1121.162.450.81
2026-Jan91.6520.621.882.650.59
2026-Feb35.6438.2621.253.220.79
2026-Mar44.9153.924.484.950.71
2026-Apr44.8772.124.794.60.72
2026-May49.71128.4426.145.760.86
2026-Jun53.45191.1627.596.180.94

Section 03

Model Growth Trends

How AI models have scaled and evolved.

Chart 3.1

LLM Provider SDK Downloads

OpenAI reached 150M monthly pip installs by June 2026. Anthropic surged to 66M. Google (legacy SDK) trails at ~10M.

PyPI downloads via pip installer (uv/CI traffic excluded), Jan 2022 – Jun 2026

View chart data
LLM Provider SDK Downloads: monthly pip downloads in millions
MonthOpenAIAnthropicGoogle GenAI
2022-010.0900
2022-020.100
2022-030.1400
2022-040.1700
2022-050.1500
2022-060.2400
2022-070.1500
2022-080.1600
2022-090.1600
2022-100.1600
2022-110.1800
2022-120.3900
2023-010.6800
2023-021.1800
2023-032.1500
2023-043.290.010
2023-055.470.030.01
2023-067.010.070.01
2023-076.510.160.03
2023-088.070.240.04
2023-099.260.210.05
2023-1010.280.250.07
2023-1111.240.290.07
2023-1212.160.280.15
2024-0117.390.320.21
2024-0216.760.420.32
2024-0318.510.690.44
2024-0420.361.060.53
2024-0521.211.50.68
2024-0621.661.680.94
2024-0723.651.871.12
2024-0826.482.021
2024-0932.932.241.17
2024-1036.752.581.49
2024-1136.352.751.83
2024-1233.382.91.62
2025-0137.173.482.01
2025-0237.525.082.46
2025-0345.216.252.93
2025-0445.936.293.13
2025-0548.386.364.05
2025-0647.617.34.76
2025-0755.298.755.61
2025-0861.9114.325.94
2025-0968.7312.597.04
2025-1078.6713.67.32
2025-1176.3313.037.5
2025-1270.6113.387.88
2026-0176.4817.848
2026-0285.7424.248.42
2026-03113.539.6310.37
2026-04124.9552.610.82
2026-05141.4658.239.75
2026-06150.4466.1510.05
Chart 3.2

The Gap is Closing

OpenAI-to-Anthropic ratio kept narrowing, from 3.7:1 (Dec 2025) to 2.3:1 (June 2026).

Peak: 47:1 (Jan 2024)
Now: 2.3:1

PyPI monthly downloads ratio, Jul 2023 – Jun 2026

View chart data
OpenAI-to-Anthropic download ratio
MonthOpenAI downloads per Anthropic download
2023-0737.4
2023-0829.3
2023-0938.7
2023-1036.5
2023-1134.5
2023-1237.9
2024-0147
2024-0234.1
2024-0323.7
2024-0417.1
2024-0513.7
2024-0612.6
2024-0711.9
2024-0811.9
2024-0913.4
2024-1011.5
2024-1110.6
2024-129.7
2025-017.4
2025-025.6
2025-035.5
2025-046
2025-056.1
2025-065.4
2025-074.8
2025-083.6
2025-094.1
2025-104.2
2025-114.2
2025-123.7
2026-013.5
2026-023.2
2026-032.8
2026-042.5
2026-052.4
2026-062.3

Section 04

Research & Content

Surfacing recent research that shaped how 2026 tools handle compression, context, multimodality, and long-horizon agents, so teams can interpret and apply it to their own systems.

Foundational Model Advances

TurboQuant: Online Vector Quantization with Near-optimal Distortion Rate

TurboQuant is an online, data-oblivious quantization method for KV-cache compression and vector search that targets both mean-squared error and inner-product distortion.

It randomly rotates vectors so coordinates are easier to quantize, then applies scalar quantizers coordinate-wise instead of relying on slower vector quantization schemes.
To correct the inner-product bias of MSE-optimal quantization, it adds a 1-bit Quantized Johnson-Lindenstrauss step on the residual; the paper reports quality-neutral KV-cache compression at 3.5 bits per channel and stronger recall than product-quantization baselines in vector search.
Long-context inference and retrieval depend on compression schemes that preserve the geometry attention and nearest-neighbor search actually use, not just on storing vectors in fewer bits.

Recursive Language Models

RLMs treat the prompt as external state, letting the model inspect, partition, and recursively call itself over snippets instead of feeding everything through one context window.

The model works inside a Python REPL where the prompt is stored as a variable, letting it inspect slices of the input, execute code, and recursively call itself over selected snippets.
Across CodeQA, BrowseComp-Plus, and OOLONG, RLMs can handle inputs up to two orders of magnitude beyond base context windows and outperform direct model calls and retrieval-style scaffolds.
Long-context scaling may come less from ever-larger windows and more from giving models programmable ways to search, decompose, and recurse over external state.

Titans: Learning to Memorize at Test Time

Titans is a family of long-context architectures that pairs limited-window attention with a neural long-term memory that keeps learning at test time.

Its memory module writes surprising inputs into its weights using gradient-based updates, then uses momentum and weight decay as a learned forgetting mechanism.
The paper instantiates the design as Memory as Context (MAC), Memory as Gating (MAG), and Memory as Layer (MAL); across language, reasoning, needle-in-a-haystack, time series, and genomics tasks, the authors report stronger results than recent recurrent and hybrid baselines, with MAC doing best on longer dependencies.
Overall, long-context modeling may benefit more from explicit write/forget/retrieve memory systems than from relying on ever-larger attention windows alone.

Kimi K2.5: Visual Agentic Intelligence

Kimi K2.5 is an open-source multimodal agentic model that jointly optimizes text and vision, with a parallel-agent execution framework layered on top.

It mixes vision tokens early during pretraining, uses a native-resolution MoonViT-3D encoder for images and video, and follows with zero-vision SFT plus joint multimodal RL.
Agent Swarm uses a trainable orchestrator to spawn frozen specialist subagents and run heterogeneous subtasks concurrently; the paper reports 76.8% on SWE-Bench Verified and large gains on BrowseComp with 3–4.5× lower execution time at target quality.
Agentic performance may come less from a single monolithic model doing everything in sequence and more from jointly trained multimodal foundations paired with learned orchestration over parallel specialist work.

VeriCache: Turning Lossy KV Cache into Lossless LLM Inference

VeriCache is an inference framework that keeps the throughput of compressed KV caches while producing the exact outputs of full-KV decoding.

It uses the compressed KV cache to draft tokens and then verifies them against the full KV cache, which is held outside GPU memory and swapped in on demand so that verification overhead stays low.
The paper reports up to 4x higher throughput than full-KV inference while producing identical outputs, targeting the divergence that makes lossy compression risky for code generation and tool calling as more tokens are decoded.
For long-context coding agents, the useful frontier for KV compression is not just a smaller memory footprint but behavior that stays correct across long generations, tool calls, and code paths.

M2A: Synergizing Mathematical and Agentic Reasoning in Large Language Models

M2A is a model-merging method for adding mathematical reasoning to a coding agent without disrupting its agentic behavior.

The paper argues math reasoning (closed-world, single-response logic) and agentic reasoning (multi-turn interaction with external environments) are misaligned, so joint multi-task training yields unstable behavior and limited gains; M2A instead works in parameter space, identifying the feature subspace critical for agent behavior and merging the mathematical reasoning task vector only along its null space so reasoning is injected in directions that do not perturb agent behavior.
The merge needs no additional gradient updates and exposes the merging coefficient as a knob for reasoning length; applied to a fine-tuned Qwen3-8B coding agent, it raises SWE-Bench Verified resolved rate from 44.0% to 51.2% without retraining the model.
As coding agents grow more tool-driven, the question shifts from whether a model can reason harder to whether new reasoning skills can be added without breaking the interaction patterns that make agents useful.

Application-Layer Innovations

Chroma Context-1: Training a Self-Editing Search Agent

Context-1 is a 20B agentic search model derived from gpt-oss-20B that is designed to act as a retrieval subagent rather than answer the question directly.

It decomposes a task into subqueries, searches over multiple turns, and selectively prunes its own context to remove irrelevant documents.
Trained on more than 8,000 synthetic tasks with a curriculum that shifts from recall-heavy exploration toward higher-precision retention, it sits on the report's cost-latency frontier and improves prune accuracy from 0.824 to 0.941.
Multi-hop retrieval may work best as a specialized agent problem, where small purpose-trained models learn to plan, explore, and actively edit context instead of relying on single-pass RAG pipelines.

Composer 2 Technical Report

Composer 2 is a domain-specialized model for agentic software engineering, built to handle long-horizon coding tasks while staying efficient enough for interactive use.

Its training recipe combines continued pretraining on a code-heavy mix and a 256k context extension with targeted coding SFT, then follows with large-scale reinforcement learning in Cursor's production tool-use harness.
The report introduces CursorBench, an internal benchmark drawn from real engineering sessions rather than curated public repos; Composer 2 scores 61.3 on CursorBench-3 and is positioned on a strong accuracy-cost frontier relative to larger general-purpose models.
Coding agents improve most when the model, training environment, reward design, and evaluation all match the actual software-engineering workflow.

GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learning

GEPA (Genetic-Pareto) is a reflective prompt-evolution method that optimizes instructions using execution traces instead of updating model weights.

The system samples rollouts, has the model analyze its own traces in natural language, and proposes new prompts; a Pareto front keeps multiple candidates that perform well on different subsets of data.
Across four tasks, GEPA matches or beats GRPO-style RL with up to 35× fewer rollouts.
The work treats prompts as an external optimization layer, using natural-language reflection rather than heavyweight RL.

Dockerless: Environment-Free Program Verifier for Coding Agents

Dockerless is an agentic patch verifier that evaluates coding-agent outputs without running repository-specific test environments.

Instead of executing unit tests inside per-repository Docker images, it judges patch correctness from evidence gathered through agentic repository exploration, rather than matching candidate patches against references.
On a verifier evaluation benchmark it outperforms the strongest open-source verifier by 14.3 AUC points, and when used as both the SFT trajectory filter and RL reward in a fully environment-free post-training pipeline the resulting model reaches 62.0% on SWE-bench Verified, 50.0% on Multilingual, and 35.2% on Pro.
As coding-agent training becomes bottlenecked by verification cost, agents that can reliably judge patches without rebuilding every target environment make post-training loops faster, cheaper, and easier to scale.

MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agents

MEM1 is an RL framework that trains LLM agents to operate over long multi-turn tasks while keeping memory usage nearly constant.

At each step, previous memory and new observations are merged into a compact internal state token (IS) and older context is discarded; a masked-trajectory RL scheme reconstructs valid trajectories for PPO without feeding the entire history.
MEM1-7B matches or beats much larger baselines on tasks with up to 16 sequential objectives while reducing memory use by ~3.7×.
Long-horizon behavior can come from learned internal state handling rather than expanding context windows or bolting on external memory.

SWE-Explore: Benchmarking How Coding Agents Explore Repositories

SWE-Explore is a benchmark that isolates the repository-exploration step of coding agents by scoring how well they find the relevant code before any fix is attempted.

Given a repository and an issue, it asks an explorer to return a ranked list of relevant code regions under a fixed line budget, and scores that output along coverage, ranking, and context-efficiency dimensions.
The benchmark spans 848 issues across 10 programming languages and 203 open-source repositories, with line-level ground truth derived from independent agent trajectories that solved the same issue; agentic explorers form a clear tier above classical retrieval, and while file-level localization is already strong, line-level coverage and efficient ranking remain the axes that differentiate state-of-the-art explorers.
Repository-scale coding agents are limited not only by generation quality but by how well they spend a fixed context budget on the specific files and lines a correct patch depends on.
Methodology

Methodology and Sources

How each chart was measured, and what the data can and cannot show.

Figures are as of June 2026 unless a chart specifies another month. The Q2 edition was published in July 2026. June engineering-velocity measurements were provisional when collected at the end of June.

Section 01

Engineering team velocity

Pull request size uses Greptile’s internal merge-request dataset, a fixed March 2025 repository cohort, merged and closed pull requests, and nonzero additions plus deletions. Measurements are grouped by the pull request’s source creation date. Developer output is lines added plus deleted per distinct non-bot author, with per-pull-request values clamped from 1 to 16,000. Medium teams have 6–50 distinct authors per month. Lines changed per file uses the fixed cohort, nonzero diffs, and at least one changed file, across all pull request states.

Lines changed measure code activity, not software quality, business value, or a causal effect of AI. Greptile-connected teams are the observed population, not a representative sample of all developers.

Sections 02 and 03

Package downloads and rules-file adoption

Download charts use public PyPI and npm registry data. PyPI pip-installer counts are used where noted to exclude uv-installer traffic; this does not remove every automated or CI download. npm counts do not provide the same installer breakdown. Downloads are not counts of unique developers or organizations.

Memory-package shares cover five selected packages in May 2026; Zep includes graphiti-core. Vector-database shares cover seven selected open-source packages in June 2026 and exclude Pinecone. These are shares within the measured package set, not total-market adoption.

Rules-file adoption measures resolved CLAUDE.md, AGENTS.md, and Cursor rules files among Greptile-connected organizations that use at least one AI rules file, as of June 2026. Each percentage is independent: one organization can use several formats. March percentages provide the comparison baseline.

The provider chart measures the legacy google-generativeai package alongside OpenAI and Anthropic Python SDKs. The provider-ratio chart retains the edition’s historical PyPI download-ratio series; its counting basis differs from the pip-only provider chart.

Sources
  • PyPI and PyPI Stats: Python package downloads.
  • npm: JavaScript package downloads.
  • Engineering velocity and rules-file detection: Greptile internal datasets.
  • Research selection: the 12 original papers linked in Section 04. Their findings are attributed to the authors.

Read the tables below each chart for the exact values used to draw it.

Download the Q2 2026 report PDF

Automatically review PRs with your team's standards