dotFactory vs GitHub Actions for AI agent workflows
Use GitHub Actions when the job is CI/CD in a repository: tests, builds, and deploys on GitHub events. Use dotFactory when you want an easy, inspectable way to orchestrate AI coding agents around that work — typed inputs and outputs for the model, a step that opens a pull request from the branch the agent produced, a path back when CI fails, and a human gate before anything lands. They fit together well: Actions can keep running the tests, while a factory manages the agent.
This article compares GitHub Actions 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 GitHub Actions is good at
GitHub Actions is the CI/CD platform built into GitHub. You define a workflow as YAML in .github/workflows. It runs on repository events, a schedule, the API, or a manual dispatch, on GitHub-hosted Linux, Windows, or macOS runners, or on self-hosted runners you operate.
That is still the natural place to test a pull request, publish a package, or deploy a release. The workflow lives next to the code and uses GitHub's events, permissions, and runner environment. GitHub also documents agentic workflows authored in natural language as another path for work that needs judgment about repository content. The center of gravity remains CI/CD and repository automation.
What dotFactory makes easy
In dotFactory, an agent is a typed step in a factory you can read. You give it a prompt and any other inputs as named, typed ports and bindings. Extra inputs are rendered to the model as data; secret values are not. The step's out: ports become a JSON schema the model must satisfy, so what comes back from the LLM is a typed record you can bind into the next step — a branch name, a title, a body, a verdict — rather than a blob of free text you parse by hand. The opencode and codex-cloud runners both work this way, so an agent leaf can move between them if the hosted platform provides the kind. What is Factory? is a short introduction.
When the agent has produced a branch, a github_pull_request effect opens a pull request from that head into base, or returns the existing one if it is already open. You can comment with a review, and a github_merge step will not land a commit until the head is still the SHA you reviewed, CI on that head is green, and no review of that commit carries a :hold marker. A kind: github trigger can start a Run when an issue is opened, when a pull request is updated, or when a workflow run completes — by default, when CI has failed — and ci_status can read the newest Actions run for a branch so the factory can decide without spending another agent turn. The GitHub guide covers tokens, webhooks, and repository-linked factories.
Around the agent, a human gate pauses the Run until a person fills a form built from the gate's out: ports, with the agent's context shown on the form. After the Run, the Run page shows the same flow diagram, each node's status and timing, effect locators such as a pull-request URL, and recorded values behind an explicit Reveal. Secrets stay redacted. Logs and an OpenTelemetry trace are there when you need to debug a turn.
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. The language specification is published if you want to implement a different platform.
At a glance
| GitHub Actions | dotFactory | |
|---|---|---|
| What it is for | CI/CD and repository automation, with optional agentic workflows. | Orchestrating AI agents as typed steps in a reviewable .fct graph. |
| How you define the work | YAML in .github/workflows. |
A .fct file of triggers, agent steps, ports, bindings, and effects. |
| LLM inputs and outputs | Whatever you pass through scripts, Actions, or an agentic workflow. | Named, typed ports: inputs are bound into the prompt as data; out: becomes a JSON schema the model must satisfy. |
| Pull requests and CI | Native events and runners; the usual place to run tests. | Effects open or review a PR from a branch the agent produced; a workflow_run trigger or ci_status can react to Actions results. |
| Human review | Branch protection, required reviewers, and whatever you add in the workflow. | A gate pauses the Run on a form; merge effects also re-check CI and hold markers. |
| Watching a run | Workflow run logs and job output in GitHub. | The Run page: flow, nodes, effects, Revealable values, redacted secrets, logs and traces. |
| Where it runs | GitHub-hosted or self-hosted runners. | A hosted service only. Compute can run in your AWS account. |
When to pick each
Start with GitHub Actions if the work is "run tests and deploy when this repository changes." A factory should not have to replace that job.
Start with dotFactory if you want to manage an agent as a typed unit: declare what the model receives and must return, open a pull request from its work, fold CI feedback back into another turn, and let a person approve the result — all in a graph you can read and a Run you can watch.
Keep both when Actions is the test system and a factory is the agent orchestrator. That is usually the happier split.
An example: an agent that picks up an issue and opens a PR
A factory can start from a verified issues webhook when a ticket is opened. An agent step receives the issue through a binding, works in a repository the runner assembled, and returns typed outputs such as a branch, a title, and a body. A github_pull_request effect then opens the pull request from that branch.
Growing a software factory shows how that path grows: run tests before the PR, and when CI fails, feed the failure back so the agent can try again. A workflow_run trigger can start that follow-up Run when an Actions workflow completes unsuccessfully; ci_status can be read first if you only need to know the latest result. Before merge, a gate can ask a person to review the agent's output, and github_merge will still refuse if the branch has moved or CI is not green.
The docs-after-merge and coverage-tests examples are the same idea in smaller form: an agent drafts work, a person can be asked to approve it, and the factory records the Run.
Frequently asked questions
Can I orchestrate AI coding agents with GitHub Actions?
You can run agentic work in Actions, and GitHub documents agentic workflows in natural language. Actions remains a CI/CD and repository-automation platform. If you want typed model inputs and outputs, a declared path to a pull request, CI feedback, and a human gate you can inspect on a Run page, that is what a factory is for.
How does dotFactory manage input and output from an LLM?
You declare typed ports. Bindings feed the prompt and any extra data into the agent (secrets are not rendered to the model). The step's out: ports are turned into a JSON schema the model must satisfy, so downstream steps receive a typed record. See the adapters guide and How data moves through a Factory.
Can a factory open a pull request after an agent writes code?
Yes. The agent works in a repository and produces outputs such as a branch name and title. A github_pull_request effect opens a pull request from that existing head branch into base — or returns the open PR if one already exists, so a retry is safe. The effect does not create the branch; the agent (or an earlier step) must have pushed it.
Can a factory react when GitHub Actions CI fails?
Yes. A kind: github trigger can listen for workflow_run events (by default, a completed run with conclusion failure), and the ci_status port can read the newest workflow run for a branch without calling an agent. You write that path into the factory; it is not a hidden built-in.
If you want to try an agent workflow, start with Your First Factory or the getting-started guide. The overview also covers n8n, Temporal, 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.