Sourcegraph has launched Agentic Batch Changes, a new AI-powered tool designed to automate codebase migrations and updates. Unlike most coding agents that charge based on token usage or session time, Sourcegraph now prices its service on outcomes: users only pay when a generated code change is merged into their repositories.
What Happened
Agentic Batch Changes is now available to enterprise customers. The service enables teams to automate large-scale code migrations—such as updating dependencies or refactoring legacy code—by generating and managing pull requests. Crucially, Sourcegraph has shifted from traditional usage-based pricing to an outcome-based model. This means that users are charged only for changesets that are successfully merged into their codebases.
Key Facts
- Sourcegraph now prices Agentic Batch Changes on actual merges, not on token consumption or time spent.
- Teams only pay for pull requests that are merged, not for those that remain open or are rejected.
- As of September 2026, the tool has been tested in beta by teams like Canva, where it helped manage over 50 pull requests during a library migration.
- Internal feedback from engineering leaders indicates that traditional AI tool pricing—based on compute or token usage—often fails to reflect real value delivered.
Background: How It Works
Agentic Batch Changes is not a general-purpose AI assistant. It is a specialized agent, deliberately scoped to solve one specific problem: large-scale, repetitive code migrations. Unlike broader AI tools that may generate code for vacation planning or open-ended tasks, this agent is designed to generate, review, and submit pull requests for code changes with a clear endpoint: merging into a repository.
The agent operates within a tightly defined system prompt and set of permissions. It does not generate code for every possible use case. Instead, it focuses on executing a well-defined workflow—such as updating a library dependency across dozens of repositories—where the outcome is measurable and verifiable.
When a team initiates a migration, the agent generates a series of pull requests. Each one is tracked in the UI, with status updates showing whether it has been reviewed, approved, or merged. The financial cost is tied directly to the number of merged changesets. This structure ensures that the cost of the tool reflects actual progress, not effort or time spent in development environments.
Why It Matters
For engineering teams, this pricing model represents a significant shift in how AI tools are evaluated and justified in budgeting decisions. Historically, AI tools have been priced on compute usage or per-seat access—metrics that do not reflect whether the work actually contributed to the codebase or improved software quality.
As Dan Adler, a Sourcegraph product lead, notes, “Producing pull requests just isn’t that hard. Code is cheap. Following through is what the teams I talk to struggle with.” The real challenge lies in managing stakeholder approvals, resolving conflicts, and closing work that sits in a backlog for months. Outcome-based pricing directly addresses this by aligning financial responsibility with tangible progress.
At Canva, a Senior Software Engineer named William L. described the experience: “We used Agentic Batch Changes to raise and merge 50+ pull requests across our repos as part of a library migration. The web UI made it easy to track each PR and its status. Without it, we would have been managing either huge PRs or spreadsheets; instead, Agentic Batch Changes made the process easier for both reviewers and me.”
This model gives teams greater transparency and control. It allows engineering leaders to justify AI investments with concrete, measurable results—something that was previously difficult with traditional pricing models.
Limitations and Open Questions
While the outcome-based model is a significant innovation, it is not without limitations. First, it assumes that every generated change is of sufficient quality to be merged—this may not always be true, especially in complex or legacy systems where code changes could introduce regressions.
Second, the model relies on team processes to actually merge the changes. If a team fails to review or approve pull requests, the cost remains zero—yet the work may still have been done. This could create a disconnect between effort and accountability.
Third, the model may not scale well for highly dynamic or rapidly changing codebases where changes are frequently rejected or rolled back. In such environments, the outcome metric may underrepresent the actual value delivered.
Finally, the pricing model is currently limited to specific use cases—such as library migrations—rather than broader AI coding tasks. This means it may not be applicable to all types of development work.
What to Watch Next
As more AI tools adopt outcome-based pricing, organizations will begin to evaluate AI investments not by compute usage, but by measurable outcomes. Sourcegraph’s model sets a precedent for how AI tools can be designed to deliver value that is both visible and accountable.
Looking ahead, we may see more tools that tie pricing to real-world results—such as code quality improvements, bug resolution rates, or deployment frequency. This could lead to a broader shift in how AI tools are integrated into enterprise workflows.
For teams managing large codebases, the ability to track and justify AI-driven progress is critical. Sourcegraph’s Agentic Batch Changes offers a practical example of how AI tools can be built with both technical precision and financial accountability.
Learn more about how AI is transforming software maintenance in our The Autonomous Codebase article.
For a deeper look at how AI agents can streamline code reviews, see How GitHub Copilot’s App Simplifies AI Code Review.
Explore how AI is being used to automate software operations in Automating Dependabot Triage.
Original source: Sourcegraph Blog

