phimage
← Writing

When Agents Become Planners, What Remains of Workflow Orchestration?

For years, software automation has been built around a simple idea: define the process, then execute it. Whether using a script, a workflow engine, or a DAG, the principle is always the same:

A → B → C → D

The developer knows the steps in advance.

AI agents challenge this model. Instead of defining how to achieve a goal, we increasingly define what we want and let the agent figure out the steps.

This reminds me of the difference between traditional programming and agentic programming.

Traditional ProgrammingAgentic Programming
Define the algorithmDefine the objective
Deterministic executionProbabilistic execution
Every path is knownPaths emerge dynamically
Optimized for reliabilityOptimized for adaptability

When the process is well known, code is often the best solution. When the process is uncertain, constantly changing, or requires exploration, agents start to shine.

A useful way to think about it is:

Known problem    → Code
Known process    → Workflow
Unknown process  → Agent

This is why some people argue that traditional orchestrators such as Apache Airflow or AWS Step Functions are not well suited for agentic systems. AI agents are fundamentally non-deterministic. They may decide to use different tools, follow different paths, or even change their plan while executing it.

A static DAG cannot describe every possible future path.

But does that mean workflow orchestration is becoming obsolete?

I don’t think so.

Even the most advanced agents still need:

  • State persistence
  • Retries
  • Checkpointing
  • Human approval
  • Scheduling
  • Audit trails
  • Observability

In other words, they still need many of the things workflow engines have solved for years.

The architecture is simply evolving.

Yesterday we had:

Workflow Engine

      Tasks

Tomorrow we may have:

Agent

Execution Engine

Tools

The agent becomes responsible for planning. The orchestration layer becomes responsible for reliable execution.

This is why I don’t believe DAGs are disappearing. They are simply moving down a layer.

The mistake is thinking agents eliminate workflows. What they really eliminate is the need to define every workflow in advance.

Agents are excellent planners. Workflows are excellent executors.

The future may not be Agents vs DAGs. It may simply be:

Agents for planning. DAGs for execution.

Worth reading


As a side project, and to better understand what happens inside a workflow engine, I’m also experimenting with implementing a DAG engine in 4D. It started as a task scheduler but evolved into a good opportunity to explore orchestration concepts from the inside.

The project is available here: mesopelagique/Scheduler — Dag.md

A quick word on where I’m coming from: my hands-on experience with DAGs proper is limited to Airflow for ML pipelines — pulling data from the data warehouse, cleaning it, transforming it, and feeding the next stage. Beyond that, as a developer I mostly live in CI tooling — GitHub Actions, GitLab CI, TeamCity — which share a lot of common ground with workflow engines: stages and dependencies, retries, caching/artifacts, conditional steps, and approvals. Different vocabulary, same orchestration instincts.


← Back to all writing