dotFactory vs Airflow for AI agent workflows
Use Airflow when you are orchestrating batch work — especially data pipelines, training jobs, and interval-based Dags — in Python, with retries, backfills, and a UI built for that grid of runs. Airflow can also call AI and agentic tools as tasks. Use dotFactory when the work you care about is an AI coding agent and the path around it: typed inputs and outputs for the LLM, a pull request, CI feedback, a human review, and a Run that is a pleasure to inspect. A factory can run on a schedule; it is not a warehouse pipeline scheduler.
This article compares Apache Airflow 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 Airflow is good at
Apache Airflow is an open-source platform for developing, scheduling, and monitoring workflows as Python Dags. Its documentation emphasizes batch work with a clear start and end, often on a schedule, including data pipelines, model training, and agentic or LLM-based workloads. Providers and custom operators can call many systems, including AI tools.
The platform is built to operate those pipelines: a scheduler, workers, a metadata database, and a web UI for inspecting runs, retrying failed tasks, and backfilling historical intervals. You operate Airflow yourself, from a single process to a distributed system. If the agent is a step in a recurring pipeline — generate an embedding, score a batch, write a partition — Airflow is the established fit.
What dotFactory makes easy
In dotFactory, the agent is a typed step, not a Python task. You bind a prompt and other inputs through ports. Extra inputs are rendered to the model as data; secrets are not. The out: ports become a JSON schema the model must satisfy, so the factory gets a structured record — a branch, a title, a choice — that later steps can trust. opencode and codex-cloud both follow that contract.
That is what makes the software-factory path feel light. An issue can start a Run; the agent writes a patch; github_pull_request opens a pull request from the branch it produced; a failed GitHub Actions run can come back through a workflow_run trigger or ci_status; a human gate can hold the result for a person. The Run page shows the flow, the model's outputs behind Reveal, and the pull-request URL in the effects list. Secrets stay redacted.
A factory can also start on a cron schedule. That is useful for a regular agent pass over open pull requests or overdue work. It is not a data interval, and there is no backfill. Do not put a warehouse pipeline in a factory just because an LLM is involved.
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
| Airflow | dotFactory | |
|---|---|---|
| What it is for | Batch pipelines and scheduled Dags, including some agentic or LLM tasks. | Orchestrating AI agents as typed steps in a reviewable .fct graph. |
| How you define the work | Python Dags: operators, sensors, or TaskFlow functions. | A .fct file of triggers, agent steps, ports, bindings, and effects. |
| LLM inputs and outputs | Whatever you pass in and out of a Python task. | Named, typed ports: bindings into the prompt; out: as a JSON schema the model must satisfy. |
| Pull requests and CI | Operators or custom code you add to the Dag. | Built-in GitHub effects and ports: open or review a PR, react to workflow_run, read ci_status. |
| Human review | Sensors, callbacks, or a process you build around the Dag. | A gate pauses the Run on a form, with the agent's context in view. |
| Scheduling | Data intervals, backfills, and retries of failed tasks. | A five-field cron trigger, plus manual, GitHub, and HTTP starts. No data interval or backfill. |
| Watching a run | The Airflow UI: grid, logs, task retries. | The Run page: flow, nodes, effects, Revealable values, redacted secrets, logs and traces. |
| Where it runs | An Airflow installation you operate. | A hosted service only. Compute can run in your AWS account. |
When to pick each
Start with Airflow if the work is a batch pipeline, a backfill, or an interval-based job — even when a task calls a model — or if you need an open-source orchestrator you operate yourself.
Start with dotFactory if you want an AI coding agent to pick up work, return typed output, open a pull request, react to CI, and wait for a person, with a Run you can read without digging through task logs alone.
An Airflow task can call dotFactory's API if a pipeline should start a factory. Keep the pipeline in Airflow; keep the agent path in the factory.
An example: a nightly pipeline vs an agent that opens a PR
A nightly job that scores a day's partition with a model, then writes the result and may need a backfill, is an Airflow Dag.
A factory that starts from an opened issue, lets an agent write a patch, opens a pull request from the branch it produced, and comes back when CI fails is the path in Growing a software factory. The docs-after-merge example is a smaller, event-driven version: an agent drafts documentation, a person can approve it, and a docs pull request is opened. A scheduled factory, as in scheduled workflows, can run a similar agent pass on a cadence without becoming a data pipeline.
Frequently asked questions
Can I orchestrate LLM agents in Airflow?
Yes. Airflow can run Python tasks and providers that call AI and agentic tools, especially inside a batch pipeline. If the work is an inspectable coding-agent path — typed model I/O, a pull request, CI feedback, and a human gate — a factory is the more direct fit.
Can I use dotFactory for AI data pipelines?
dotFactory is not a batch data-pipeline scheduler. It has no Dag-level data interval or backfill. Use Airflow for recurring pipelines. A factory can run on a schedule and can include container steps, but that is not a warehouse orchestrator.
How do I add human review around agent output in dotFactory?
Add a human gate. The Run waits while a person fills a form built from the gate's out: ports; the agent's in: values are the context the form shows. A timeout can apply a default, or the gate can keep waiting. Downstream steps read the verdict like any other typed output.
Is dotFactory open source like Airflow?
No. The dotFactory platform is a hosted service, and its code is not open source. The workflow language specification is published, and you can implement a different platform from it. You cannot self-host the product; you can run compute in your own AWS account. Airflow is an open-source project you operate yourself.
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 Temporal.
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.