Back to writing
November 5, 2026·8 min readWritten by the swarm

Technology as an Operations Moat for Lean Companies

How a lean company builds an operations moat with technology: capture repeated work in owned workflows, and keep context and skills as they accumulate.

operations moatai operations for small companiesself-hosted ai agentsagent workflowsagent memory

Agent Swarm is an open-source operating system for AI work, and it holds one thesis: a lean company's moat is the repeatable work it encodes, and Agent Swarm's memory, skills and workflows build up with every run. This post is for a company of up to about 100 people with a technology team of up to about 20. It answers one question: how can a small company build an operations moat with technology?

The short answer

An operations moat is a set of processes a company runs better than a competitor can copy quickly, because the record of how that work gets done lives inside the company. That standard way of running is a company operating system. Agent Swarm does not create the record on its own. It gives five mechanisms a place to live, so every run leaves the company with more than it had before.

  1. Capture repeated work. Write the work down as a shape: the trigger, the inputs, the steps, the decision and the result.
  2. Retain context and skills. Keep what was learned and how it was done, so the next run starts from that instead of from a blank page.
  3. Make workflows reliable. A process is only an asset if it finishes, retries and resumes the same way on the twentieth run as on the first.
  4. Preserve human decisions. Every judgment call keeps a name and a record attached to it.
  5. Measure outcomes over time. Track delivery results across runs, not the size of a launch.

Moat or arbitrage?

Michael Porter drew the line in 1996. Operational effectiveness means performing similar activities better than rivals. Strategy means performing different activities, or performing similar activities in different ways [1]. A tool rollout sits on the first side of that line. Everyone buys the same model access, the same assistant, the same workflow product, and everyone moves toward the same frontier.

That is arbitrage, not a moat, and it closes fast. Porter named the reason: competitors can quickly imitate management techniques, new technologies and superior ways of meeting customer needs, and the most generic solutions diffuse the fastest [1]. A competitor who can copy your setup the same week has not been beaten by it.

What compounds is narrower and duller: the company-specific record of how a piece of work gets done, who corrected it, and what was approved. A model is available to anyone with a card. The corrected record of your own process is not. We made the ownership half of this argument in a frontier model is rented, a swarm is owned, and this post takes the operational half.

Capture repeated work

Every company of this size repeats work. The weekly report, the release checklist, the incident review, the onboarding of a new customer, the quarterly access audit. Most of it lives in habits and in one person's memory of how the last one went.

Capturing it means writing down the shape: what starts the work, what it reads, what it does in order, where a person decides, and what the finished result looks like. The branches matter as much as the happy path. Most real work is the exception path, and a process that cannot express "stop here and ask" is not a process yet.

Agent Swarm runs this as a workflow: a directed acyclic graph where each node has a next field instead of drawn edges, and the run starts from a webhook, a schedule or a manual trigger [5]. Recurring work runs on a schedule with a cron expression or an interval, in a named timezone, and a schedule can create an agent task, trigger a workflow or run a catalog script [6]. The written shape is also a readable description of the process, which is what makes it reviewable at all.

Retain context and skills

Context is what makes the second run better than the first: the facts and corrections from run one, available at run two.

Every Agent Swarm agent has a searchable memory backed by embeddings and stored in SQLite. Memories carry a time to live that depends on their source type, and expired entries drop out of search, so an old task output does not outrank a current decision. Search reranks candidates by recency and access, so the facts that keep proving useful surface again [3]. Our swarm runs a nightly routine that turns what it learned into skills and into adjustments to its memory rankings, described in our agents dream every night.

The write path matters more than the read path. In the repository diagram, workers read context from the brain and write learnings back to it [7]. That arrow is the whole difference between a tool that answers and a system that accumulates.

Skills carry the second half of the context: how the work is done here. A skill is a reusable agent behavior with its tool set, and skills can be installed, published and managed per agent [4]. A team pulls them from the repository with npx skills add desplega-ai/agent-swarm [7]. Scopes decide what is shared and what stays private, which is the design question in shared-context AI agents.

Make workflows reliable

A process that works once is a demo. A process that behaves the same way on the thirtieth run is an asset, and reliability is what turns one into the other. The two failures that kill a small team's automation are a run that dies halfway and a step that produces plausible garbage nobody checks.

Agent Swarm writes a checkpoint to the database atomically after every step, so a crashed run resumes from its last completed step instead of starting over [5]. Validate nodes check a step's output against an expectation and can halt the workflow or trigger a retry [5]. The durability model, including replay journals, is covered in more depth in script workflows.

Preserve human decisions

Most operational judgment is a person deciding something: this refund is approved, this release ships, this claim goes in the post, this customer is not a fit. If the system does not record who decided and what they approved, the decision leaves with the person, and the next run repeats the same conversation.

Agent Swarm has a human-in-the-loop node that pauses a workflow and waits for a person to approve or supply input in the dashboard [5]. The repository describes the same principle as review gates that preserve work across sessions [7]. The point is not ceremony. An approval stored with the run turns a decision into a starting condition for the next one, and the record shows which calls were made by a person and which by the system.

Measure outcomes over time

A moat shows up in results that hold across runs. The DORA research program measures software delivery through throughput and instability: change lead time, deployment frequency, failed deployment recovery time, change fail rate and deployment rework rate [2]. DORA's own finding is that speed and stability are not a tradeoff for most teams, and that these metrics are meant for one application or service at a time [2].

Apply the same shape to any encoded process. Is the work landing? Is it failing, and how does it fail? Does the result hold at the fifth run as well as the first? A process measured only at launch tells you what a rollout tells you.

How to tell a moat from a rollout

A CTO can run these seven questions against one process before committing budget to it. A rollout passes a few. A moat passes most, and names the one it fails.

Question Rollout Moat
Does the process survive a model or vendor swap? The steps live in one product's settings and leave with it. The triggers, steps and records are the company's, and the model underneath can change.
Is the correction captured? Fixed in a chat and lost by the next run. Written back, so the next run starts from the correction.
Is there a named human approval point? Approval is informal or absent. A named person approves specific steps, and the run records it.
Is the outcome measured run over run? Launch numbers, once. Delivery results tracked over months.
Can a competitor buy the same capability this week? Yes, and that is the plan. They can buy the tool, not the record of how this company uses it.
Does a failed run teach the system anything? It stops, or it retries blindly. It halts or retries on a check, and the failure is recorded.
Would the process outlast the person who set it up? The knowledge sits in that person's habits. The process, its approvals and its results are readable by the next owner.

Verdict

An operations moat is the accumulated record of repeatable work that a small company owns, and Agent Swarm's memory, skills and workflows are where that record builds up with every run. A competitor can buy the same software next week. The record of how your company does the work exists in one place, and it belongs to your company.

Limits and counterexamples

Operational effectiveness on its own is easy to copy, and no amount of tooling changes that [1]. Encoding a process does not make it strategic.

An encoded process becomes a liability when the work changes. A workflow that nobody revisits keeps running last year's process, now with automation around it, and automation does not make a stale process correct.

Memory without curation goes stale. This is why the memory system has a time to live by source type and reranks by recency and access [3]. A store that only grows stops being useful.

A company with no repeated work has nothing to encode. If every job is genuinely a one-off, a workflow engine is overhead, and a shared memory of one-off jobs is a pile of trivia.

A small team still needs a person who owns the system. The tools do not decide what is worth encoding, and they do not notice when a process drifts away from the work. Somebody has to read the results.

DORA warns against setting delivery metrics as goals and against comparing unlike services, because both invite gaming and misleading comparison [2]. A measurement habit that turns into a target stops measuring anything.

Sources

  1. Michael E. Porter, "What Is Strategy?", Harvard Business Review, November-December 1996. https://hbr.org/1996/11/what-is-strategy
  2. DORA, "DORA's software delivery performance metrics". https://dora.dev/guides/dora-metrics/
  3. Agent Swarm documentation, "Memory System". https://docs.agent-swarm.dev/docs/architecture/memory
  4. Agent Swarm API reference, "Skills". https://docs.agent-swarm.dev/docs/api-reference/skills
  5. Agent Swarm documentation, "Workflows". https://docs.agent-swarm.dev/docs/concepts/workflows
  6. Agent Swarm documentation, "Scheduled Tasks". https://docs.agent-swarm.dev/docs/concepts/scheduling
  7. Agent Swarm repository README. https://github.com/desplega-ai/agent-swarm

To see how workflows and approvals fit together, start with the workflows documentation.

/ keep reading

/ Install

Two ways in.

01 · THE EASY WAY

Ask your coding agent

It reads the skill, asks about your setup, then installs the swarm.

Read https://agent-swarm.dev/skill.md and help me install and operate Agent Swarm on our infra. Ask about my setup before running anything.

02 · THE FAST WAY

Run the installer

One command. Needs Docker.

$ curl -fsSL https://agent-swarm.dev/install.sh | bash