Key Takeaways
- 32% of organisations have skipped a software purchase because AI coding agents let them build it in-house (McKinsey, 2026).
- Coding agents cut the cost of writing software, not the cost of owning it: maintenance, security, compliance and run-time AI costs remain.
- Run every request through five tests: differentiation, three-year ownership cost, named owner, regulatory exposure and exit.
- There is a third answer besides build and buy: a managed partner when you need speed but lack an in-house team.
- Present the decision to the CFO as a portfolio with a three-year total cost and pre-agreed stopping rules.
McKinsey's latest State of AI survey contains a number that should change how your next software budget is discussed: nearly a third of organisations have already decided not to buy at least one software product or feature, because they could build it themselves with AI coding agents.
That is a real shift in the economics of enterprise technology. It is also an easy way to swap a predictable subscription for an unpredictable maintenance burden. The question is no longer whether your team can build it. It is whether your organisation should own it.
Why is the build vs buy decision changing in 2026?
AI coding agents have cut the time and cost of writing working software from months to days for many internal tools. McKinsey's 2026 survey found 32% of organisations have dropped at least one purchase as a result. Writing code is now cheap; owning, securing and running it is not.
According to McKinsey's The State of AI in 2026, about two in ten organisations are already scaling software coding agents, rising to 31% at enterprises with more than US$1 billion in revenue. AI high performers are even more aggressive: nearly half have replaced a planned purchase with an internal build.
The same survey carries a warning. One in five respondents say AI operating costs, including token costs, already constrain their AI use, and enterprise-level EBIT impact has not moved since 2025: 37% report any impact at all.
Gartner sees the same tension from the CIO's chair. In its 2027 CIO and Technology Executive Agenda survey, 51% of CIOs expect AI to increase the total cost of ownership of technology solutions, and only 13% say their enterprise has realised significant value from AI so far. Gartner's Alicia Mullery summed it up: volume is not value.
For a Hong Kong enterprise, the practical effect is that every department head can now produce a working prototype. The leadership job is deciding which of those prototypes deserve to become systems the organisation runs for years.
What is the five-test framework for build, buy or partner?
Run each software request through five tests in order: does it differentiate you, what does it cost to own for three years, who owns it by name, how much regulatory exposure does it carry, and how would you exit? Build only when it passes all five; otherwise buy or use a partner.
Test 1: Differentiation
Ask whether this capability is how you win customers or simply how you keep the lights on. A pricing engine tuned to your logistics network may be worth owning. A leave-approval workflow is not. If a competitor could buy the same thing tomorrow and lose nothing, buy it.
Test 2: Three-year ownership cost
Coding agents compress the first 10% of the cost curve. The other 90% is still there: hosting, monitoring, security patching, upgrades when an API changes, testing, documentation and the model calls the tool makes every day. Gartner notes that AI costs are probabilistic and set at run time, unlike a fixed SaaS licence. Model all of it for three years before comparing against a subscription.
Test 3: A named owner
Every internal build needs one person accountable for it in 18 months, not a team that built it in a sprint. If you cannot name that person and the budget line for their time, the build is an orphan waiting to happen.
Test 4: Regulatory exposure
Commercial software often arrives with security certifications, audit logs and contractual data commitments you would otherwise have to create yourself. If the tool touches personal data, your build must meet the Personal Data (Privacy) Ordinance on its own. The PCPD's August 2026 guidance on agentic AI makes clear that accountability stays with the organisation, whoever wrote the code.
Test 5: Exit
Agree in advance what would make you stop. Gartner found only 31% of CIOs have rules for stopping an AI pilot before production, and only 17% have rules for retiring a low-value initiative already in production. Write the stopping rule before the first line of code.
| Result | Decision |
|---|---|
| Passes all five tests | Build in-house with coding agents, under normal software governance |
| Fails differentiation or exit | Buy a commercial product |
| Passes differentiation but fails owner or cost | Partner: a managed provider builds and runs it for you |
| High regulatory exposure, no in-house compliance capacity | Buy or partner; do not build |
When should an enterprise hand the work to a partner instead?
Choose a partner when a capability matters enough to customise but your organisation cannot staff its ownership. A managed provider delivers the speed of a build and the accountability of a purchase, with a contract, service levels and someone else carrying the maintenance load.
Most build vs buy debates ignore this middle path, yet it fits the typical Hong Kong mid-market firm best. Gartner reports that only 4% of CIOs have explicit plans to redesign roles for a combined human and agent workforce. Few organisations of 50 to 500 staff can hire and keep the engineering depth that a portfolio of internal AI tools requires.
A partner arrangement works when three conditions hold:
- The process is specific to you, but the underlying capability (customer service, document handling, reporting) is well understood.
- You need results within a quarter, not after a hiring cycle.
- You want data residency, access control and audit trails specified in a contract rather than rebuilt internally.
The trade-off is control: you depend on the partner's roadmap and pricing. Mitigate it with data export rights and a clear exit clause, which also satisfies Test 5.
How does the framework work in a real Hong Kong enterprise?
Apply it request by request, not as a blanket policy. In practice one organisation will often build one tool, buy another and partner on a third in the same quarter, because each request scores differently on differentiation, ownership and regulatory exposure.
Consider a regional logistics group with 300 staff that received three requests in one budget cycle.
A shipment exception dashboard. Operations wanted a view that flags late containers using its own routing rules. It differentiates service, touches no personal data and has an obvious owner in the operations analytics lead. Verdict: build, with a stopping rule tied to a measurable fall in late-delivery complaints.
An HR onboarding portal. A coding agent could produce one in a week. But it handles staff identity documents, offers no competitive edge and has no natural owner. Verdict: buy an established HR platform and spend the saved effort elsewhere.
Customer enquiry handling across WhatsApp and email. It matters to customers and needs the company's own rate cards and policies, yet the firm has no team to run a 24-hour AI service. Verdict: partner with a managed provider, with Hong Kong data hosting written into the contract.
What mistakes do leaders make with AI-built internal software?
The most common mistakes are counting only the build cost, letting business units ship tools without security review, replacing certified software with uncertified code, and treating a demo as a production system. Each one turns a cheap build into an expensive liability within a year.
- Comparing a one-off build cost with an annual licence. Always compare three-year totals, including the people who will maintain the tool.
- Shadow builds. When anyone can generate an app, apps appear outside IT's view. Require registration of every internal tool that touches company or client data.
- Losing compliance by accident. Cancelling a SaaS product can also cancel its audit logs, encryption commitments and certifications. List what the vendor provided before you switch it off.
- Mistaking a prototype for a product. A demo that works for five users rarely survives 500 users, staff turnover and an API change. Budget for hardening before launch.
- No exit plan. Without a stopping rule, weak internal tools linger and quietly consume engineering time.
How do you present a build vs buy decision to the CFO or board?
Present it as a portfolio, not a single verdict. Show each request's score on the five tests, a three-year total cost for each option, the named owner and the stopping rule. CFOs approve decisions they can audit later, not enthusiasm about how fast a prototype was built.
A one-page board paper should answer four questions:
- What are we building, buying and partnering on, and why? One line per request, linked to the five tests.
- What will it cost over three years? Build, run, maintain and model-usage costs side by side with subscription or partner fees.
- Who is accountable? A named owner for each build and each partner contract.
- When would we stop? The metric and threshold that would trigger retirement or a switch.
This format also answers the question Gartner says most organisations cannot: what value each AI initiative is expected to deliver, defined before the money is spent.
Own what makes you different, and nothing else
AI coding agents have given every enterprise a new option, and that is good news. The discipline is in using it selectively. Build where you differentiate and can name an owner, buy where the market already solves the problem, and use a partner where speed matters but ownership would stretch your team.
The leaders who get this right will not be the ones who built the most. They will be the ones whose portfolio still makes sense in three years.
Empowering AI. Centered on you.
Not sure which requests to build, buy or hand over?
Start with a free AI staff configuration assessment. We'll walk you through every step, from scoring your requests against the five tests to deploying an AI staff member for the roles you choose not to build, with data kept in Hong Kong.
Frequently Asked Questions
Can AI coding agents replace our SaaS subscriptions?
Some, not most. McKinsey found 32% of organisations have dropped at least one purchase in favour of an AI-built tool. That usually means a narrow feature, not core platforms such as ERP, HR or finance systems.
Is code written by AI coding agents secure enough for production?
It can be, but only with the same review, testing and security scanning you apply to human-written code. Treat AI output as a first draft from a fast junior developer, not as finished work.
Who owns the intellectual property in AI-generated code?
It depends on the coding tool's licence terms and the law where you operate. Check the vendor's commercial terms and take legal advice before building anything you plan to sell or license.
Does PDPO apply to tools we build ourselves?
Yes. The Personal Data (Privacy) Ordinance applies to how personal data is handled, not to who wrote the software. An internal build carries the same obligations as a purchased system.
How long should a build vs buy review take?
For a single request, the five tests can be answered in one working session with the requester, IT and finance. The three-year cost model is the part that usually needs the most preparation.