Gap's Devin AI agent finds and fixes ecommerce site issues
Gap Inc. uses Devin, Cognition's AI software engineering agent, to hunt for technical issues on its ecommerce sites and draft tested code fixes that its engineers review and deploy.
- millions in salesSales recovered that could otherwise have been lost to downtime2Estimate
- much fasterDiagnosis and resolution of ecommerce issues2, 1Estimate
Gap Inc.United StatesSpecialty retailIn productionWho built it Vendor product (Cognition)Human oversight People approve each outputUse case Alert triage and investigationScenario Production alert triage and incident investigationBusiness function IT operationsOrganization EnterpriseAI types Generative AI, Agentic AI
- Who built it
- Vendor product (Cognition)
- Human oversight
- People approve each output
- Use case
- Alert triage and investigation
- Scenario
- Production alert triage and incident investigation
- Business function
- IT operations
- Organization
- Enterprise
- AI types
- Generative AI, Agentic AI
tl;drGap estimates its Devin agent has recovered millions in sales that downtime could have cost.See the results
Gap Inc. uses Devin, an AI software engineering agent from Cognition, to hunt for technical issues on its ecommerce sites and draft tested code fixes1, 2. Gap’s engineers review, validate and publish each fix1.
In November 2026, ahead of the holiday peak, Gap estimated that Devin had recovered millions in sales that could otherwise have been lost to downtime2. Problems that previously might have taken days to diagnose and resolve are now addressed much faster2.
Before the deployment
Gap Inc. operates a portfolio of global apparel brands, and its engineers keep the ecommerce systems behind them running2. The load on those systems peaks in the holiday season:
- During the nine-day 2025 holiday shopping period, the ecommerce sites handled more than 75 million shopping sessions and over 5 million orders2.
- At the 2025 holiday peak, Gap processed more than 1,500 online orders per minute2.
- At that scale, even relatively infrequent ecommerce errors can affect thousands of shoppers2.
- Each shopping experience runs on interconnected applications and services, from product discovery and inventory availability to shopping bags, payments and checkout2.
Diagnosing and resolving issues across multiple applications took engineers time, and some problems could take days2. Sven Gerjets, Gap’s chief technology officer, describes the job as getting “the paper cuts out of your website”1.
What was built
Devin investigates technical problems on Gap’s ecommerce sites, identifies their root causes and develops tested code fixes2. Gap runs it alongside its other AI agents and its software engineers2.
- Daily site monitoring: Gap checks its ecommerce sites every day for signs of customer friction and system issues2.
- Devin: Hunts for online technical issues and traces each one across the interconnected applications and services to its underlying cause1, 2.
- Fix and test: Devin writes the code fix and tests it before an engineer sees it1, 2.
- Engineers: Review the fix, validate it and deploy it1, 2.
“It’s just a lot of work on these large, complex sites, and having an agent that’s watching your site 24/7 and is able to do the coding work, so that when the engineer gets engaged, they’re just making sure the fix is valid.”
Rollout
Getting Devin up and running started with a proof of concept test with a small cohort of workers1. By November 2026, Gap had relied on Devin for roughly half a year1.
Technology and architecture
Devin is an autonomous AI software engineer that can write, run and test code3. It works in a workspace of developer tools, and people can follow its work and take over in the embedded IDE3. At Gap, its ability to work across interconnected applications and services lets engineers pinpoint causes that span multiple systems and coordinate fixes2.
| Layer | What they used | Role |
|---|---|---|
| Task agent | Devin | Hunts for site issues, traces root causes across applications and writes tested code fixes1, 2, 3 |
| Sensors and telemetry | Daily site monitoring | Watches the ecommerce sites for signs of customer friction and system issues2 |
| Business or operational system | Ecommerce applications and services | Product discovery, inventory, shopping bags, payments and checkout, where the fixes land2 |
| Review workbench | Engineer review | Engineers review, validate and publish each fix Devin drafts1, 2 |
Devin works from two kinds of data:
- Site signals: Signs of customer friction and system issues on the ecommerce sites, from the daily checks2.
- Application code: The code of the applications and services behind each shopping experience, where Devin finds causes and makes its fixes1, 2.
Results
In November 2026, Gap estimated that Devin had recovered millions in sales since it was implemented2.
| Metric | Before | After | Scope and timeframe |
|---|---|---|---|
| Sales recovered that could otherwise have been lost to downtime | millions in sales2 | Since implementing Devin, to November 2026 | |
| Diagnosis and resolution of ecommerce issues | Days | much faster2, 1 | Ecommerce issues spanning multiple applications |
- Named incidents: Gerjets cited a TikTok Shop landing page that erroneously blocked users, and a similar failure involving a PayPal site, as issues Devin helped the team solve faster. Such issues can add up to become “multi-million-dollar problems”1.
- Engineering time: Daily checks with Devin let Gap’s engineers spend less time on repetitive troubleshooting and more time strengthening the systems customers use2.
Lessons learned
Starting small won over the doubters. Colleagues were skeptical of Devin’s autonomous features until a proof of concept with a small cohort of workers convinced them the features were helpful1.
The division of work answers the problem Gap described. Devin does the investigation and the coding, and engineers only check that the fix is valid, which keeps a person on every change that reaches the live sites1, 2.
The sales and speed results are Gap’s own estimates, published in Cognition’s customer story, and the Fortune account rests on an interview with Gap’s chief technology officer1, 2.
Case study scorecard
Sources by publication date
- Vendors and partners 2
- Press, academic, and regulators 1
Build this solution yourself
Analysis
What you need
- An agent with access to every application in the path: Gap’s issues span applications from product discovery to checkout, and Devin’s value came from tracing causes across them2.
- A daily signal of customer friction: Devin’s work starts from signs of friction and system issues on the live sites, so you need monitoring that surfaces them2.
- Engineers who own every release: Each fix goes to an engineer who reviews, validates and publishes it, so you need a review step your engineers trust1.
Reference architecture
Alert triage and investigation
Gathers the evidence behind each alert that your monitoring and detection tools raise, and tells whoever is on duty what it found.
- Operational data platform
- Intake agent (used in this case study)
- Connectors to operational tools
- Investigation agents
- Language model
- Knowledge retrieval
- Diagnostic checks and actions
- Action limits
- Channel to the people on duty
- Outcome record
Others who built it
- Lloyds Banking Group: Lloyds' AI agents top 90% accuracy on debit card fraud. Lloyds' fraud agents reached more than 90% decision accuracy after 10,600 live cases.
- Verizon: Verizon's AI agents fix network faults in under two minutes. Verizon's network agents resolve issues in less than two minutes that once took engineers hours.
- AT&T: How AT&T's AI avoided 3.1 million technician dispatches. AT&T's incident AI avoided 3.1 million dispatches and more than 12 million hours of downtime.
- China Mobile: China Mobile's NOC agents cut network repair time by 30%. Average repair time for network faults and complaints fell 30% once China Mobile's agents went live.
- Grafana Labs: How Grafana Labs uses AI agents to debug its own incidents. In one Grafana Cloud incident, AI agents found the root cause 3.5x faster than the on-call team.
- Verisk: How Verisk uses AWS DevOps Agent to triage production alerts. Weekly alerts fell about 59% and incident resolution time nearly 50% at Verisk.
Cite this case study
Enterprise AI Case Studies. "Gap's Devin AI agent finds and fixes ecommerce site issues." Updated Dec 2, 2026. https://case-studies.ai/case-studies/engineering-and-research/ER-102-ecommerce-issue-fixing-agent-gap/
@misc{csai-er-102,
author = {{Enterprise AI Case Studies}},
title = {{Gap's Devin AI agent finds and fixes ecommerce site issues}},
year = {2026},
note = {Updated 2026-12-02},
url = {https://case-studies.ai/case-studies/engineering-and-research/ER-102-ecommerce-issue-fixing-agent-gap/}
}Sources
The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership
- Source 1:
How CIOs are already preparing for the next big outage
Supporting excerpts (9)
For roughly half a year, the apparel retailer has relied on Devin, an AI software engineering agent developed by the AI lab Cognition, to hunt for online technical issues, identify the root causes of any issues, and develop tested code fixes that human engineers review, validate, and publish.
Sven Gerjets, Gap's chief technology officer
when a TikTok Shop landing page erroneously blocked users from the site, or when a similar technical failure that involved a PayPal site recently occurred
Devin has been able to accelerate the team's ability to solve these issues that can add up to become
multi-million-dollar problems
Every e-commerce company is constantly focused on how you get the paper cuts out of your website so that everybody has a great experience
It's just a lot of work on these large, complex sites, and having an agent that's watching your site 24/7 and is able to do the coding work, so that when the engineer gets engaged, they're just making sure the fix is valid.
Gap, which processes more than 1,500 orders every minute during peak demand spikes
Getting Devin up and running involved a proof of concept test with a small cohort of workers that later convinced skeptical colleagues that the tool's autonomous features were actually helpful.
- Source 2:
How Gap Inc. improves ecommerce reliability during peak shopping periods with Devin
Supporting excerpts (12)
Gap Inc. operates a portfolio of global apparel brands. During the nine-day 2025 holiday shopping period, its ecommerce sites handled more than 75 million shopping sessions and over 5 million orders.
At its 2025 holiday peak, Gap Inc. processed more than 1,500 online orders per minute.
At that scale, even relatively infrequent ecommerce errors can affect thousands of shoppers.
Behind every shopping experience is a complex network of interconnected applications and services, from product discovery and inventory availability to shopping bags, payments and checkout.
diagnosing and resolving issues across multiple applications takes time
Gap Inc. uses Devin alongside its other AI agents and software engineers to proactively identify and resolve ecommerce issues.
Every day, Gap Inc. monitors its ecommerce sites for signs of customer friction and system issues. Devin investigates technical problems, identifies root causes and develops tested code fixes for engineers to review, validate and deploy.
Devin's ability to work across interconnected applications and services helps engineers pinpoint the underlying causes of issues that span multiple systems and coordinate fixes.
Problems that previously might have taken days to diagnose and resolve can now be addressed much faster.
Since implementing Devin, Gap Inc. estimates it has recovered millions in sales that could otherwise have been lost to downtime.
daily checks with Devin help Gap Inc.'s engineers spend less time on repetitive troubleshooting and more time strengthening the systems customers rely on every day.
When millions of people are shopping at once, even small technical issues can have an outsized impact.
- Source 3:
Supporting excerpts (3)
Devin is an autonomous AI software engineer that can write, run and test code.
allows you to follow and take over Devin's development process in the embedded IDE
In Devin's Workspace, you'll find developer tools that Devin will use to complete your task.
Comments
Start the conversation.
Invited members of the library comment here. Sign in to join the conversation.