dotFactory vs Temporal for AI agent workflows
Use Temporal when the agent system you are building is a long-running program that must resume after failures: workflows written with a Temporal SDK, with model calls as Activities, and an Event History that can be replayed. Use dotFactory when you want a straightforward, inspectable way to orchestrate AI coding agents as typed steps — structured inputs and outputs for the LLM, a pull request opened from the branch the agent produced, CI feedback, and a human gate — on a hosted platform. A recorded factory Run is useful history; it is not Temporal's durable-execution model.
This article compares Temporal with dotFactory for orchestrating AI agents, on documented capabilities. It is not a benchmark. For the wider landscape, see Orchestrating AI agents: dotFactory vs GitHub Actions, n8n, Temporal, and Airflow.
What Temporal is good at
Temporal is a platform for durable execution of application code. You write a Workflow Definition in a Temporal SDK. The Temporal Service records each step in an Event History. If a worker crashes, another worker can replay that history and continue; completed work is not redone. Workflows can run for seconds or years.
That is a serious foundation for an agent system that must wait, retry, and not lose its place — an onboarding flow, a long research job, a process that pages out to a person and comes back days later. You implement model or agent calls as Activities in your code. You can run the Temporal Service yourself or use Temporal Cloud; worker processes, which execute your code, are hosted by you in either case. If durability of a general-purpose program is the requirement, Temporal is designed for it.
What dotFactory makes easy
In dotFactory, you do not write the orchestrator as SDK code. You write a .fct graph in which the agent is a typed step. Ports and bindings declare what goes into the model and what must come out. Extra inputs are rendered to the model as data; secrets are not. The out: ports become a JSON schema the model must satisfy, so a title, a branch, or a verdict is a typed value the rest of the factory can trust. opencode and codex-cloud share that contract.
From there the GitHub path is ordinary factory work, not a custom Activity for each API call. github_pull_request opens a pull request from the branch the agent produced. A workflow_run trigger or ci_status can bring CI results back. A human gate pauses the Run until a person answers a form, with the agent's context in view. The Run page then shows the flow, the agent's outputs behind Reveal, effect URLs, redacted secrets, and logs and traces when a turn needs debugging.
That inspectability is the point of the product, and it should not be confused with Temporal's replay. dotFactory schedules a declared graph until the Run completes, fails, or is stopped, and it records the journal. If a worker dies mid-step, the hosted platform can reattach to an in-flight agent machine or session instead of prompting the model again — useful, and still not Event History replay of your application code.
dotFactory is a hosted service. Its platform code is not open source, and you cannot self-host it. You can run compute in your own AWS account, or implement a different platform from the open specification.
At a glance
| Temporal | dotFactory | |
|---|---|---|
| What it is for | Durable execution of application workflows, including agent systems you write in an SDK. | Orchestrating AI agents as typed steps in a reviewable .fct graph. |
| How you define the work | Workflow Definitions in a Temporal SDK; model calls as Activities. | A .fct file of triggers, agent steps, ports, bindings, and effects. |
| LLM inputs and outputs | Whatever types and serialization you design in your code. | Named, typed ports: bindings into the prompt; out: as a JSON schema the model must satisfy. |
| Pull requests and CI | Activities you write against the GitHub API. | Built-in GitHub effects and ports: open or review a PR, react to workflow_run, read ci_status. |
| Human review | Signals, updates, or whatever you build into the workflow. | A gate pauses the Run on a form. |
| Failure and history | Event History and replay after a crash; completed work is not redone. | A recorded, inspectable Run. The graph runs until it completes, fails, or is stopped. |
| Where it runs | A Temporal Service you host, or Temporal Cloud; workers are hosted by you. | A hosted service only. Compute can run in your AWS account. |
When to pick each
Start with Temporal if the agent system must be a durable program: long waits, retries, and resume-from-the-exact-point after a crash, written in a language you already use. That is Temporal's design center.
Start with dotFactory if you want the agent path itself to be easy to write and pleasant to watch: typed model I/O, pull requests, CI feedback, and a human review, without building that control plane yourself.
A Temporal Activity can still call dotFactory's API if a durable business workflow should start a factory Run. That does not give the factory Temporal's durability.
An example: a durable business process vs an inspectable coding agent
An order or onboarding flow that must call a model, wait on a customer, and still be correct after a crash is a Temporal problem.
An issue that should become a patch, a pull request, and a second agent turn when CI fails is a factory problem. Growing a software factory describes that progression. The agent's out: ports carry the branch and the PR fields; github_pull_request opens the request; a workflow_run trigger or ci_status can start or inform the next attempt; a gate can hold the merge for a person. You open the Run and see what the model returned.
Frequently asked questions
Temporal vs dotFactory for AI agent workflows: which should I use?
Use Temporal when you need durable execution of an agent system written as application code. Use dotFactory when you want typed LLM inputs and outputs, GitHub pull-request and CI effects, a human gate, and an inspectable Run, without building that orchestration in an SDK.
Does dotFactory have durable execution like Temporal?
No. Every factory Run is recorded — a journal, immutable versions, a flow, values, logs and traces — but that is operational history, not Temporal's replay of a program after a crash. If the agent workflow must resume from the exact point it left off, Temporal is the tool designed for that.
How do I inspect what an agent produced in dotFactory?
Open the Run. The flow shows each step's outcome; the nodes list typed output ports; values sit behind Reveal; secrets are redacted server-side; effects such as a pull-request URL appear in their own table; logs and an OpenTelemetry trace are available when you need them.
Can I self-host dotFactory the way I can self-host Temporal?
No. You cannot self-host the dotFactory platform; it is a hosted service, and its code is not open source. You can run compute in your own AWS account, or implement a different platform from the open specification. Temporal lets you run the Temporal Service yourself or use Temporal Cloud.
If you want to try an agent workflow, start with Your First Factory or the getting-started guide. The overview also covers GitHub Actions, n8n, and Airflow.
Written by
Simone has spent more than 10 years building software, from research at CERN to big tech at AWS and fast-growing startups like Rippling. These days he's building dotFactory, because he thinks writing software should feel a lot more like running a well-oiled factory.