Skip
Ssbh#dev
← All articles
Article

// engineering · 5 min read

Build vs. buy when code is cheap: a CTO's decision framework

Coding agents made building faster, not free. Here's how I decide what to build, what to buy and what to glue together.

SBSharon Ben Haim·

A founder recently told me: 'With AI we can just build our own CRM.' They could. They'd also own it forever. Cheap code changed the cost of writing software, not the cost of running it.

The three questions

  1. Is this where we win? If customers choose you because of it, build it.
  2. Is it a solved problem with a mature market? If yes, buy it and configure it.
  3. Who maintains it in two years? If the answer is 'nobody', don't build it.

What to build

  • Your core domain logic: pricing, underwriting, matching, scheduling, whatever is your edge
  • The workflows that connect your tools in a way nobody else needs
  • AI features grounded in your own data

What to buy

  • Auth, payments, email delivery, observability
  • Accounting, HR, CRM (unless CRM is your product)
  • Model hosting, unless you have a very specific reason

The hidden third option: glue

Most small and mid-size companies get the best ROI from buying good SaaS and writing thin, well-tested integrations between them. AI agents are excellent at exactly this kind of code.

Count the full cost

CostBuildBuy
UpfrontLower than everSubscription
Security & complianceYoursMostly theirs
Upgrades & bugsYoursTheirs
Fit to your processExactApproximate

Build what makes you different. Buy what makes you the same as everyone else. Glue the rest.

Have an AI idea, or an AI mess?

30 minutes, no pitch. We'll look at your use case, your data and your team, and you'll leave with a clear next step.