Gap Uses Cognition's AI Agent Devin to Detect and Fix E-commerce Site Issues: How 'Site Scan' Protects Holiday Sales
Gap Inc. is using the AI agent Devin in a 'site scan' process that monitors issues from product discovery to payments and checkout and drafts fixes. We explain site reliability in the age of agentic commerce and why human review stays in the loop.

Contents
Key Takeaways
- Gap Inc. has built Cognition’s AI software engineering agent Devin into “site scan,” a process that finds and fixes problems on its e-commerce sites. It monitors across product discovery, inventory availability, shopping bags, payments and checkout, investigates root causes and hands tested code fixes to engineers
- Gap estimates it has recovered “millions” in sales since adopting Devin, but it has not disclosed the amount or how it was calculated. For a company that processed more than 1,500 orders a minute at peak, even small unresolved glitches can mean large lost sales
- Gap has also said it will support purchases from AI Mode and the Gemini app through Google’s UCP. The more orders arrive from outside AI agents, the more the availability of the transaction flow itself matters. Speeding up fixes while keeping human review in place is an operating model other e-commerce teams can borrow
Gap puts an AI engineer on the front line just before Black Friday

Gap Inc. is leveraging agentic AI to monitor signals of user struggle and system problems on its e-commerce sites.
chainstoreage.comIn late November 2026, with the peak of the holiday season days away, Gap Inc. revealed that it had placed an AI agent behind its e-commerce sites. The agent is Devin, an AI software engineering agent developed by the San Francisco startup Cognition. According to Retail Technology Innovation Hub, the goal is to keep the sites running through the peak period from Black Friday through Cyber Week.
Spanish fashion trade outlet Modaes reports that Devin has already begun rolling out inside the company and will step up its support starting with Black Friday. Gap Inc., which operates Gap, Old Navy, Banana Republic and Athleta, is the largest specialty apparel company in the US, and Chain Store Age framed the move as part of the company’s enterprise-wide AI transformation.
Devin drew wide attention when it was unveiled in March 2024 as “the first AI software engineer.” According to Fortune, Cognition is valued at $48 billion and its annualized revenue run rate passed $1 billion in September 2026. How does a major retailer use a code-writing AI in places tied directly to revenue? Gap offers a concrete answer.
What “site scan” actually does
At the center of the announcement is a proactive inspection process Gap calls “site scan.” Its starting point differs from the traditional approach, in which people get paged after something has already broken.
Putting the Chain Store Age and Retail Technology Innovation Hub reports side by side, Devin’s work breaks down as follows.
| Stage | Devin's role | Human engineers' role |
|---|---|---|
| Monitoring | Watches for signals of user struggle and system issues on the e-commerce sites (including daily checks) | Not described in the announcement |
| Investigation | Investigates technical issues and identifies root causes | Not described in the announcement |
| Fix drafting | Develops tested code fixes | Not described in the announcement |
| Release | Not described in the announcement | Review, validate and publish the fix to the site |
What stands out is what it watches. Beyond system-side indicators such as server health, it also looks for “signals of user struggle.” Gap has not disclosed which specific metrics it uses, but the intent appears to be catching moments when shopping stalls even though no error screen appears.
The other notable feature is that its scope is not confined to one application. In Gap’s description, product discovery, inventory availability, shopping bags, payments and checkout are made up of many interconnected applications and services. Devin is valued for its ability to understand how those systems connect and trace problems across them, and it also helps coordinate fixes for issues that span multiple applications.
Retail Technology Innovation Hub reports that problems that might otherwise take days to diagnose and resolve can be addressed much faster. No figure for how much faster has been published, however. Devin works alongside Gap’s other agents and engineers and also runs daily checks. As a result, the company says, engineers spend less time on repetitive troubleshooting and more time strengthening the systems customers rely on every day.
1,500 orders a minute: why small glitches become big problems
Why invest this much in inspection? The answer lies in the traffic figures Gap has shared.
During the nine-day holiday shopping period in 2025, Gap Inc. recorded more than 75 million online shopping sessions and over five million online orders. At its peak it processed more than 1,500 orders every minute (Retail Technology Innovation Hub). At that scale, even relatively infrequent errors can affect thousands of customers.
Chief Technology Officer Sven Gerjets put it this way.
When millions of people are shopping at once, even small technical issues can have an outsized impact.Source: Sven Gerjets, CTO, Gap Inc.
The result Gap points to is an estimate that it has recovered “millions” in sales that would otherwise have been lost to downtime. This needs careful reading. It is Gap’s own estimate, and neither the specific amount nor the basis for counting sales as “recovered” has been disclosed. Nor has Gap shared figures on how much the time from detection to fix has shrunk.
The direction is still clear. In peak-season e-commerce, shortening the time from detection to fix matters as much to revenue as reducing the number of incidents. Gap has handed that time reduction to an AI agent.
There is a business backdrop as well. According to Modaes, Gap’s third-quarter fiscal 2026 sales (period ended October 31) were $4.011 billion, up 2% year over year, but the company lowered its full-year outlook to roughly flat. As growth slows, reducing missed sales during the peak carries more weight.
Reading it as an agent that protects the transaction flow
To be clear from the start, Devin is not a shopping agent. It does not talk to consumers or choose products. Its role is software maintenance.
It is still worth viewing through the lens of agentic commerce, because the territory Devin monitors overlaps exactly with the path an AI agent takes when it buys something. In a March 2026 announcement, Gap said it would support Google’s UCP (Universal Commerce Protocol, a common standard connecting AI agents with retailers’ systems for transactions). The announcement said customers would be able to buy Gap products while using AI Mode in Google Search and the Gemini app.
In that announcement, Gerjets said “We are not pursuing AI for novelty,” stressing that the company had built an AI-ready foundation across the enterprise. Old Navy and Banana Republic have also introduced conversational tools that suggest products when shoppers describe what they want in natural language.
One reading follows from this. In a world where outside AI agents check inventory, add items to carts and proceed to payment, a glitch in inventory display or checkout stops orders placed through agents, not just those from human shoppers. A human who notices something wrong on screen can come back later, but there is no guarantee an agent will behave the same way. The more a retailer opens its front door to AI, the more important the systems that keep the back end available become.
Gap itself has not tied this announcement directly to its UCP support. The fair reading is as a combination of facts: Gap is opening its storefront to AI and using AI to protect site reliability at the same time.
Keeping human review in the loop, and the risks of AI-written code
One point not to overlook in Gap’s setup is that it does not ship Devin’s fixes straight to production. Fixes arrive tested, and engineers review and validate them before publishing them to the site. Modaes also reports that the aim is not to replace engineering teams but to expand their capacity.
There is good reason for that caution. A study published in December 2025 by CodeRabbit, which sells code review tools, analyzed 470 open-source pull requests and found that changes involving AI had about 1.7 times as many issues as human-only changes. Logic and correctness issues were 75% more common, and gaps in error handling were nearly twice as common.
The study has limits. It could not directly confirm whether each change was written by AI, so it treated changes without signs of AI involvement as human-written. The publisher also sells AI code review, which should be factored in. Even so, in areas such as payments and checkout, where mistakes hit revenue directly, keeping a review gate is a reasonable choice.
Cognition takes a similar view. Speaking to Fortune, CEO Scott Wu said code written by its agents runs through the same tests as human-written code, and each team decides which changes require human review. Low-risk edits, such as changing a button’s color, can be set for automatic approval. On adoption, Citigroup’s CEO said on the bank’s earnings call that 14,000 of its engineers use Devin.
What e-commerce teams can take away
Even without Gap’s scale, there are ideas here worth borrowing.
First, shift the unit of monitoring from “servers” to “the transaction flow.” Without metrics showing where shopping stalls, whether in product search, inventory display, cart, payment or order confirmation, adding an AI agent leaves open the question of what it should watch.
Next, decide up front what the AI handles and what humans decide. Gap’s split, with AI investigating causes and drafting fixes and humans releasing them to production, is an easy starting point.
Finally, consider how to measure impact. Gap’s “millions” has no disclosed basis and cannot be verified from outside. If you adopt something similar, deciding in advance how you will measure time from detection to fix and how you will estimate orders lost during incidents gives you material for investment decisions.
Conclusion
Gap’s adoption of Devin shows AI agents moving beyond the shopping side into protecting the path that shopping travels. For a retailer preparing to accept AI purchases through UCP, using agents to safeguard the reliability behind that door is a logical pairing.
At the same time, the results are still a self-reported estimate, and the final call on fixes stays with humans. Whether Gap shares more concrete figures on detection-to-fix time and recovered sales once the holiday season ends is the next thing to watch.


