Platforms

Should you build or buy an agent platform?

Buy the loop and build the rules. The loop, model connections and tool plumbing are general parts a vendor will improve faster than you. The rules about what agents may see, what needs approval and what counts as done encode your company, and nobody can sell them to you.

Key takeaways

  • Rent anything that would look the same at your competitor. Own anything that would look different.
  • Vendor default permissions quietly become your policy if you never set your own.
  • Ask a vendor whether you can export your rules in a format a person can read.

See the platform these notes come fromOpen the portfolio

Buy the loop and build the rules. The loop, the model connections and the tool plumbing are general parts that improve every month, and a rented version will usually beat the one your team writes. The rules, meaning what agents may see, what needs a person's approval and what counts as done, encode how your company works, and nobody can sell them to you.

My claim: most companies get this split backwards. They build custom orchestration because it is the interesting engineering, then accept a vendor's default permissions because that part feels like configuration. Defaults written to fit every customer fit none of them well, and they quietly become your policy.

What is safe to rent?

Anything that would look the same at your competitor. The loop that calls a model and runs tools is the same problem everywhere. So is the connection to each model provider, the retry logic, the logging pipeline and the connectors to common systems. Where a standard exists for plugging tools into agents, use it.

Renting these parts has a second benefit. Vendors who sell them to thousands of companies find the edge cases faster than your team will. You get the fixes without staffing the people who find them.

What must be yours?

Anything that would look different at your competitor. Here is the split I would use.

PartRent or ownWhy
The agent loopRentSame problem at every company, improving fast
Model accessRentYou will want to change providers
Tool connectorsRent where a standard existsPlumbing, with no company knowledge in it
Permissions and scopesOwnThey encode who may see what in your company
Approval pointsOwnThey encode which actions carry risk for you
Definition of doneOwnOnly you know what proof you accept
Company context and decisionsOwnThis is what makes your agents yours

Owning a rule does not mean writing the code that enforces it. It means the rule is written down in your words, lives where you can read and export it, and changes only when someone on your side decides it should.

How did I draw the line when I built it?

When I built AlexDLY, I let outside AI connect to it through a remote MCP server that exposes 31 tools. I did not invent that plug. Model Context Protocol describes itself as an open-source standard for connecting AI applications to external systems, and using it meant I did not have to design a connection format of my own.

What I built was everything behind the plug. Sign in runs on OAuth 2.1. Every tool sits behind scopes that fail closed, so a missing or unclear scope means no. And outside AI can draft, but a draft waits at a person's approval gate before it goes anywhere.

That is the whole build or buy answer at small scale. The connection is the part anyone could provide. Who may do what through it, and who has to say yes first, is the part only the owner of the business can decide.

What does it cost to get the split wrong?

Get it wrong toward building and you spend a year writing loops and connectors that a vendor improves every month. Your best engineers maintain plumbing. When a better pattern arrives, you rebuild.

Get it wrong toward buying and your rules live in a vendor's settings screens, in the vendor's format, set to the vendor's defaults. Often nobody wrote them at all. When you leave, you leave them behind, and the next platform starts from someone else's defaults again.

The second mistake is quieter, which is why I worry about it more. Nobody notices a permission they never set until an agent uses it.

What should you ask a vendor?

Ask whether you can export your permission rules, approval points and agent definitions in a format a person can read. Ask whether you can require approval on one specific action without turning it on for everything. Ask what happens when a scope is missing: is the request allowed or refused? The answers tell you whether you are renting a loop or handing over your rules.

What would change my mind?

If agent platforms converge on a shared, portable format for permissions and approvals, the way identity systems did for sign in, owning the rules gets cheap and buying more of the stack becomes safe. I would also relax the advice for a company whose work carries so little risk that the vendor defaults are genuinely fine.

Sources

FAQ

Is open source a third option?

It is a way to rent the loop without a contract. It does not change the split. You still have to write and own the rules, and you take on running the software yourself.

Who in the company should own the rules?

The people who own the work the agent does, with security and legal reviewing. Engineering enforces the rules. It should not be the only team that can read them.

Can a small team build its own platform?

It can, if it rents the general parts and spends its time on the rules. A small team that tries to build the loop, the connectors and the rules at once usually finishes none of them.

See the platform these notes come from

I built AlexDLY as its only engineer, directing AI coding agents. The portfolio shows the six rules its code enforces, with the file behind each one.

Open the portfolio