The Build Temptation: How Agentic Coding Tools Are Pushing Companies to Rethink Software Purchases and the Hidden Costs of Doing It Themselves

Key Takeaways
- 32% of McKinsey respondents skipped buying software because it could be built internally with agentic coding tools.
- Building is cheaper to start but not to own: maintenance, security and support remain.
- Buy commodity, build internal glue, and treat differentiating software as real engineering.
For two decades, the question facing a company that needed new software was simple: buy it or build it. Buying won almost every time. Custom development was slow, expensive, and risky, and software vendors spread their costs across thousands of customers. In 2026 a new factor has entered the calculation. Agentic coding tools are making building cheaper, and some companies are acting on it.
The New Economics of Custom Software
McKinsey's 2026 State of AI survey offers a measure of the shift. Nearly a third of respondents, 32 percent, said their organisation had decided against buying one or more software products or features because they could be built internally with agentic coding tools. About two in ten respondents say their organisations are scaling software coding agents, rising to 31 percent at larger enterprises. This is no longer a fringe experiment.
Duolingo offers a vivid example. According to Entrepreneur, the company held a vibe-coding day in which every employee, from engineers to HR staff, had to build an app by prompting AI. Chief executive Luis von Ahn said two employees with no chess or programming background built the first prototype of the company's chess course. They produced a full curriculum and app prototype in about six months last year, and chess is now Duolingo's fastest-growing course, with seven million daily active users.
The Hidden Costs of Ownership
So should every company start building its own software? Not quite. The tools lower the cost of writing the first version. They do not remove the cost of owning the result.
Consider what a purchased product includes that a quick build does not: - **Ongoing Maintenance**: Codebases age, underlying frameworks shift, and browser APIs deprecate. - **Security & Patching**: Custom code lacks the rigorous security auditing and penetration testing that enterprise SaaS vendors provide across thousands of customers. - **Orphaned Knowledge**: When the employee who prompted the software moves on, the company inherits an undocumented codebase. - **Token Expenses**: About 20 percent of McKinsey respondents say operating costs, including token prices, constrain their AI usage, with 28 percent allocating over a tenth of tech budgets to AI compute.
The Three-Tier Decision Framework
A practical way to decide is to sort software needs into three groups:
1. **Commodity Infrastructure (Buy)**: Payroll, core accounting, identity management, and cloud security. The vendor's scale, security posture, and compliance certifications are impossible to match economically. 2. **Internal Workflow Glue (Build)**: Custom dashboards, departmental approval pipelines, and bespoke data connectors. The cost of failure is modest and tailoring the system to exact internal processes delivers high ROI. 3. **Differentiating Competitive Advantage (Engineer Seriously)**: Core customer-facing capabilities that distinguish your brand. Building here makes sense, but it must be governed as a professional software engineering initiative with peer review, automated testing, and dedicated maintenance budgets.
Frequently Asked Questions
Why are companies reconsidering the 'build vs. buy' software decision in 2026?
Agentic software development tools and AI coding assistants have drastically lowered the initial development barrier, enabling non-technical teams and small engineering units to assemble prototypes and internal tools in days.
What are the hidden costs of internally built AI software?
While initial code generation is inexpensive, long-term software ownership costs—such as security patches, API maintenance, compliance audits, documentation, and continuous model token consumption—often exceed commercial vendor license fees.



