TLDR overview
- The AC/DC is a disciplined operating model that directs AI coding agents, validates their output, and feeds verified results back into agent instructions and engineering standards.
- AI agents now assist in generating more than 40% of committed enterprise code, and pull requests have grown from roughly 300 lines to 3,000 or more, so manual review alone cannot keep pace.
- Enterprise adoption succeeds when agents operate inside machine-enforceable feedback loops that hold speed, security, maintainability, and developer accountability in balance.
- SonarQube acts as an automated code-quality and security control point in these workflows, using quality gates to give agents and pipelines a clear signal for whether code is ready to move forward.
Coding agents have changed the pace and volume of code changes in a way traditional development cadence was never built to absorb. A developer who once reviewed a 300-line pull request now faces batches ten times larger, generated asynchronously while they work on something else. The question for engineering organizations is no longer whether to adopt agentic development, but how to do it without weakening the controls that keep software secure, maintainable, and accountable.
This page explains the AC/DC: what it is, why enterprises need it now, the core stages of the workflow, where automated verification fits, a practical adoption path, governance guardrails, how to measure success, and the pitfalls that derail early adopters.
What is the AC/DC?
The AC/DC is a disciplined development operating model in which AI coding agents propose code, tests, documentation, and fixes within controlled context, and every change is validated through automated feedback loops before it progresses. It directs agent-driven work, verifies that work against engineering standards, and continuously improves both the agents and the standards from validated outcomes.
In practice, AC/DC coordinates five participants: developers who set intent and own risk decisions, agents that generate work within defined guardrails, repositories that hold the code and its context, CI/CD systems that carry changes forward, and quality platforms that enforce objective standards. Each has a role, and none is optional.
The cycle rests on a simple premise. Agents accelerate engineering work, but they do not replace engineering standards. The standards do not loosen because an agent wrote the code instead of a person; they become something a machine can check continuously, at the speed and volume agents produce.
Why do enterprises need AC/DC now?
The volume of generated code has outrun the capacity to review it. AI agents now assist in generating more than 40% of committed enterprise code, and 55% of developers regularly use AI coding agents. As pull requests swell from hundreds of lines to thousands, the validation demand rises faster than any team can staff against with manual review.
The risk is not only volume. Inconsistent prompts, permissions, and tool access across an organization create governance gaps that are hard to see and harder to audit. One team's agent may have write access to a sensitive repository that another team would never grant. Without a common standard, every agentic workflow becomes its own island of undocumented decisions.
This is why existing quality practices have to become machine-enforceable feedback loops. A coding standard that lives in a wiki cannot keep pace with agent output. The same standard, expressed as an automated check that runs on every change, can. Research from Carnegie Mellon found that the velocity spike from AI adoption fades within three months, replaced by a persistent increase in issues and code complexity that drags velocity back down. AC/DC exists to keep the early gains from reversing into technical debt.
What are the core stages of an enterprise AC/DC workflow?
An enterprise AC/DC workflow moves through five stages. Each produces something the next depends on, and the final stage feeds back into the first.
Define
The workflow starts by translating product intent into scoped, testable tasks and guardrails. A vague goal produces vague output; a precise task with clear acceptance criteria and explicit constraints gives the agent a game it can actually win. This is where you set the boundaries an agent must respect.
Generate
Agents propose code, tests, documentation, and fixes within controlled context. The quality of this stage depends heavily on the context supplied in Define. An agent with access to the right architecture, standards, and codebase history produces output that fits; an agent flying blind produces code that is structurally valid but contextually wrong.
Validate
Automated analysis, static code analysis, tests, and policy checks run before a change progresses. This is the stage that breaks down most often in immature workflows, and it is the one that carries the consequences when it does. Validation is not optional in AC/DC; it is the control that makes everything else safe.
Review
Human ownership is preserved for architecture, risk, and business intent. Automated validation handles the mechanical questions, which frees developers to make the judgment calls machines cannot: whether a design is sound, whether a tradeoff is acceptable, whether the change actually serves the business. The developer remains accountable for shipping something that works.
Learn
Validated findings and outcomes feed back into agent instructions and engineering standards. A failure in one cycle becomes a guardrail in the next. This closing loop is what makes AC/DC self-improving rather than merely repetitive, and it is why a clean codebase compounds in your favor over time.
How does automated verification fit into the cycle?
Automated verification is the mechanism that turns the Validate stage from an aspiration into an enforced control. It applies consistent code verification to every change, regardless of which agent or developer produced it, and it does so fast enough to keep up with agent output.
The distinction that matters here is between a review that depends on a person reading the code and a check that runs deterministically on every change. Manual review scales with headcount; automated verification scales with compute. When agent pull requests arrive ten times larger and far more frequently, only the second approach keeps the gap between code produced and code validated from widening. That gap, left unmanaged, is where unverified issues accumulate.
Verification also has to stay independent of the tool that generated the code. A single AI model reviewing another model's output shares the same blind spots and cannot serve as an objective control. An independent layer, using a different method than generation, is what makes the result auditable and trustworthy across every agent an organization runs.
Where does SonarQube fit in the cycle?
SonarQube acts as an automated code-quality and security control point in agentic workflows. It analyzes every change against your defined standards and produces a clear, objective signal for whether that code is ready to move forward, holding agent-generated and AI-generated code to the same bar.
That signal comes through quality gates: customizable thresholds that determine whether a change is acceptable to merge and deploy. A quality gate gives agents and pipelines an unambiguous go or no-go. When a change fails to meet the defined criteria, the gate fails the build and stops the code from merging, which turns your engineering standards into an enforced checkpoint rather than a guideline.
The feedback SonarQube returns is actionable and specific. It surfaces issues across code quality, vulnerabilities, security hotspots, and maintainability, with the exact rule, location, and remediation guidance attached, so an agent or a developer can fix the finding rather than guess at it. Analysis runs across more than 40 programming languages, and native integration with GitHub, GitLab, BitBucket, and Azure DevOps decorates pull requests with that feedback directly where developers and agents work.
One design choice makes continuous adoption practical: the focus on new code. Teams can hold every new change to a strict standard and improve continuously without being blocked by the legacy debt already in the codebase. You raise the bar going forward instead of stopping work to pay down the past.
To get started, connect SonarQube to your repository and define a quality gate that every change must pass before merge.
What is a practical adoption path for AC/DC?
Most organizations cannot move from traditional CI to a full AC/DC workflow overnight. A staged path turns a large transition into a sequence of measurable steps.
- Start with one bounded use case, language, or team. A single pilot gives you a controlled environment to learn in before the stakes scale.
- Establish a baseline and define non-negotiable quality expectations. Decide what "good" looks like, and express it as standards that apply to all code, not a separate and weaker policy for agent output.
- Connect analysis to pull requests and CI. Feedback has to arrive where developers and agents already work, inside the CI/CD pipeline, not in a separate dashboard no one checks.
- Require agents to address relevant findings before requesting human review. This keeps the Validate stage ahead of the Review stage and stops low-quality output from consuming scarce review time.
- Expand based on measurable outcomes. Grow usage as quality, delivery, and developer-experience metrics justify it, team by team and repository by repository.
How do you govern agents in enterprise use?
Governance is what keeps agentic velocity from turning into uncontrolled risk. It starts with scope: define which repositories, environments, and actions agents may access, and grant nothing by default that a sensitive change would require.
Keep approvals proportionate to risk. A low-risk change in a sandboxed service does not need the same gate as a change to a payment system. Do not automate sensitive changes blindly; reserve human approval for the actions where the cost of a mistake is high, and let automation carry the rest.
Treat rules, quality gates, and coding standards as policy-as-code for the development lifecycle. When your standards live as version-controlled, machine-enforceable policy, they apply consistently across every tool and team, and the same standard governs Copilot, Claude Code, Cursor, and any agent that follows. Maintain auditability through pull requests, CI results, and clear ownership practices, so you can prove at any time which standards were enforced and who was accountable. This is what makes compliance with frameworks like SOC 2, HIPAA, and the Cyber Resilience Act defensible rather than aspirational.
How do you measure success with AC/DC?
Measuring AC/DC adoption means balancing speed metrics against confidence metrics. A workflow that ships faster but introduces more issues has not succeeded; it has borrowed against the future.
Track three dimensions together:
- Adoption: the number of teams, repositories, and workflows using the cycle. This tells you whether AC/DC is becoming the default or remains an experiment.
- Flow: time to feedback, review time, and rework. These reveal whether automated verification is absorbing the volume or whether review is still the bottleneck.
- Outcomes: quality gate pass rate, issues introduced on new code, vulnerability remediation, and maintainability trends. These tell you whether the code moving through the cycle is actually getting better.
The discipline is in holding speed and confidence in view at the same time. A rising quality gate pass rate alongside falling time-to-feedback is the signal that adoption is working. Speed without the confidence metrics is how the three-month velocity reversal sets in unnoticed.
What are the common pitfalls, and how do you avoid them?
Early AC/DC adopters tend to fail in the same recognizable ways. Naming them is the first step to avoiding them.
- Treating generated code as inherently correct. Plausible code is not verified code. The fix is to make validation mandatory for all code, with no exemption because an agent produced it.
- Applying agents to poorly defined work without enough repository context. An agent without context produces output that ignores your architecture and conventions. Invest in the Define and Guide stages before blaming the agent for poor results.
- Adding tools without integrating quality feedback into the agent loop. A verification tool that runs somewhere off to the side does nothing for the agent. Feedback has to reach the loop where code is generated and corrected.
- Measuring output volume rather than trustworthy software outcomes. Lines of code generated is a vanity metric. Track accepted, verified, value-producing change instead, and judge the cycle by what ships safely, not by how much it produces.
How can SonarQube help you scale agentic delivery with trust?
Enterprise adoption of agentic development succeeds when agents operate inside clear engineering feedback loops, and it falters when they do not. SonarQube is the automated verification layer those loops depend on, holding every change, agent-generated or developer-written, to one consistent and auditable standard.
With quality gates enforcing your standards at the pull request, actionable feedback on quality and security guiding each fix, and new-code analysis letting you improve continuously without being blocked by legacy debt, SonarQube makes agent-produced code consistently high-quality, secure, and maintainable. That is what turns the speed of agentic development into an advantage you can trust rather than a risk you absorb.
Next steps
- The future is AC/DC: the AC/DC—the foundational explanation of how Sonar thinks about agentic development and the Guide, Verify, and Solve pillars.
- What is the agentic SDLC?—a companion learn page on how the software development lifecycle changes in the agentic era.
- Quality gates explained—how to define the pass or fail standard every change must meet before it moves forward.
- Get started managing your architecture with SonarQube—a practical guide for giving agents the architectural context the Define and Generate stages depend on.
- Agentic coding: the autonomous AI development guide—background on how AI agents plan, write, and test code, and the verification debt that comes with it.
