Most teams frame the custom agentic workflow vs platform question as one decision for the whole company. It rarely is.
The first workflow you build shows what the surrounding machinery costs. The fifth one shows whether you built that machinery once or five times.
The agent logic is the small part. The harness around it decides whether the workflow survives its first bad day.
This post gives you a way to decide per workflow, a runnable control-plane sketch in Python, and a short score you can apply to your next candidate before you write any code.
Why is custom agentic workflow vs platform a per-workflow decision?
A custom agentic workflow vs platform choice looks like a company-level bet. In practice it gets made one workflow at a time, and the answers differ.
An agent is a prompt, a few tools and a loop. Everything else is the harness: state, retries, approvals, permissions, logs, tests, cost limits and rollback.
The first workflow pays for the whole harness. Later workflows pay only for what they cannot reuse.
That is why the surveys look split. Mayfield asked 266 technology leaders about build versus buy. Its 2026 report found that 65% run a hybrid of in-house and vendor tools, and only about 10% are vendor-only. The stated reason is control over core workflows with flexibility at the edges.
![Diagram: one shared control plane under several agentic workflows, with reuse shown as shared layers(https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/5nonp49h5bwhu7ar01q1.png)
What does the control plane actually have to do?
Eight jobs show up in almost every production workflow, whichever side of the custom agentic workflow vs platform line you land on.
The table below rates the effort to build each one for the first workflow and for the fifth. The ratings are an editorial estimate, not survey data.
| Capability | Workflow 1 (build) | Workflow 5 (marginal) | Platform usually provides |
|---|---|---|---|
| Durable state and checkpoints | High | Low | Yes |
| Idempotent retries | Medium | Low | Yes |
| Human approval gates | Medium | Low | Yes |
| Identity and permissions | High | Medium | Varies |
| Tracing and audit log | Medium | Low | Yes |
| Evals and regression tests | High | Medium | Varies |
| Cost caps | Low | Low | Yes |
| Rollback | High | High | Rarely |
Notice the two rows that stay expensive. Identity and rollback depend on your own systems, so no platform removes that work entirely. Expect it either way.
How much of that control plane will your next workflow reuse?
Reuse is the variable that decides custom agentic workflow vs platform for any single workflow. Here is a minimal runner that covers four of the eight jobs, so you can see how small the shared core can be.
A 60-line runner
import hashlib
import json
import time
from pathlib import Path
class BudgetExceeded(Exception):
pass
class NeedsApproval(Exception):
pass
class Runner:
def __init__(self, run_id, budget_usd, store="runs"):
self.path = Path(store) / f"{run_id}.json"
self.path.parent.mkdir(exist_ok=True)
self.budget = budget_usd
if self.path.exists():
self.state = json.loads(self.path.read_text())
else:
self.state = {"done": {}, "spent": 0.0, "approved": [], "trace": []}
def _save(self):
self.path.write_text(json.dumps(self.state))
def approve(self, name):
self.state["approved"].append(name)
self._save()
def step(self, name, fn, cost=0.0, needs_approval=False, **kwargs):
raw = f"{name}:{json.dumps(kwargs, sort_keys=True)}"
key = hashlib.sha256(raw.encode()).hexdigest()[:12]
if key in self.state["done"]: # idempotency: never repeat a finished step
return self.state["done"][key]
if needs_approval and name not in self.state["approved"]:
raise NeedsApproval(name) # approval gate: suspend here
if self.state["spent"] + cost > self.budget:
raise BudgetExceeded(name) # cost cap
result = fn(**kwargs)
self.state["done"][key] = result # checkpoint
self.state["spent"] += cost
self.state["trace"].append(
{"step": name, "key": key, "cost": cost, "ts": time.time()}
)
self._save()
return result
if __name__ == "__main__":
run = Runner("pr-42", budget_usd=1.0)
patch = run.step("draft", lambda repo: f"patch for {repo}", cost=0.2, repo="billing")
try:
run.step("deploy", lambda patch: "deployed", needs_approval=True, patch=patch)
except NeedsApproval:
print("Waiting for a human. Run state is saved.")
run.approve("deploy")
print(run.step("deploy", lambda patch: "deployed", needs_approval=True, patch=patch))
Kill the process after the draft step and run it again. The draft is not repeated, the spend is not double counted, and the deploy waits for a person. Production versions add leases, schema versions and real storage, but the shape stays the same.
The 0-5 reuse score
Use this score as the tiebreaker in your custom agentic workflow vs platform review. Give the next workflow one point for each item it can share with the workflows you already run:
- The same state store and checkpoint format.
- The same approval path and reviewers.
- The same identity and permission scopes.
- The same eval harness and regression set.
- The same rollback mechanism.
A score of 4 or 5 points toward building on your shared plane. A score of 0 to 2 points toward a platform. A 3 is a pilot, not a commitment.
When does a custom workflow win?
In the custom agentic workflow vs platform debate, build when the score is high and the workflow encodes logic that competitors cannot copy.
A pricing rule, a claims policy or an internal risk model are typical cases. You already pay for the harness, so the marginal cost is mostly the agent itself.
Custom also wins when the workflow touches systems a platform cannot reach, such as an on-premises ledger or a regulated data store.
Quick check: Can you name the person who will patch the runner at 2 a.m.? If not, subtract one point from the score.
When does a platform win?
In the same custom agentic workflow vs platform comparison, buy when the score is low, because every point you cannot reuse is a new piece to build.
Teams that adopt the new software factory model get the shared plane on day one, which matters most when several unrelated workflows ship in the same quarter.
A platform also wins on speed. If a workflow must reach production in weeks and nobody owns a harness yet, building one first delays the actual outcome.
Quick check: If three of your next five workflows score 2 or less, price a platform before you write a line of the first one.
What does a hybrid look like in practice?
Gartner's 26 May 2026 announcement predicts that 40% of enterprises will demote or decommission autonomous agents by 2027 because of governance gaps that surface after production incidents.
Its remedy is proportional governance across four autonomy levels: Observe, Advise, Act with Approval, and Act Autonomously.
A hybrid answer to custom agentic workflow vs platform maps neatly onto the score. Workflows at the Observe and Advise levels carry little risk, so platform defaults are usually enough.
Workflows at the two Act levels need stricter gates, tighter permissions and rollback you control, which favors custom code on a plane you own.
Quick check: Write the autonomy level next to each candidate workflow. If it says Act Autonomously and your rollback row says High, do not outsource that row.
Quick check: Count how many of your workflows share an approval path today. If the answer is zero, you have no plane yet, only a collection of scripts.
What to check before your next planning meeting
Pick the three workflows you expect to ship next and score each one from 0 to 5 using the list above.
Write the scores in the planning doc, along with the autonomy level and the name of the person who owns rollback.
That takes about twenty minutes and replaces a long abstract debate with three concrete numbers.
Then look at the pattern, because the custom agentic workflow vs platform question gets easier once the numbers are on the page.
If the scores cluster high, you are really deciding whether to invest in one shared plane, and a custom build is likely to pay back.
If they scatter, you are deciding which workflows deserve bespoke effort, and the rest should run on something you do not maintain.
Revisit the scores each quarter, because a workflow that scored 1 today may score 4 once the first two are live and the approval path exists.
Whichever way you lean, keep the harness separate from the agent logic. That one boundary lets you swap a model, a vendor or a hosting choice later without rewriting the workflows that depend on it.



Top comments (0)