Chain Future

Solidity, smart-contract development, developer tools and explained protocol engineering

Stacks Labs puts AI agents on first-pass code review for Bitcoin layer 2 upgrades

Reviewing security-sensitive changes to Stacks, a Bitcoin layer 2 network, is the task behind an internal “AI software factory” that Stacks Labs is building. The aim is to move upgrades through development faster while giving engineers more time to examine critical code.

Stacks Labs CTO Adriano Di Luzio outlined the workflow in a November 17, 2026, blog post. When Diego Almada Lopez reported on the project on December 5, 2026, at 09:50 EST, the factory was still under development.

The workflow has three parts: AI-assisted code generation, review by multiple AI agents, and benchmarks and automated checks. Several agents examine a proposed change before sign-off. Stacks Labs describes their role as similar to that of junior team members: they do the first pass, then human engineers focus on the most sensitive sections.

The team also tests the tools themselves. It uses a basic agent as a baseline and requires a more complex tool to outperform it on actual Stacks engineering tasks before adding it to the workflow.

The factory is part of Stacks’ 2026 roadmap, which calls for protocol upgrades, better Bitcoin staking capabilities and capacity for up to 10,000 active AI agents on the network. That figure is a target, not a measured count. The number of active agents on Stacks reportedly rose from 105 to 766 in one week in early 2026.

Possible projects for the factory include improvements to Clarity, the language developers use to write Stacks smart contracts, and to sBTC, the network’s native Bitcoin-backed asset that lets applications use BTC. Neither was described as a completed upgrade.

Stacks Labs was established after the community approved Stacks Improvement Proposal SIP-031. Funded through the Stacks Endowment, the organization identifies engineering quality and growth across the Stacks ecosystem as its priorities.