The question behind the label

An agent is not automatically a better architecture. It is a different allocation of control. The important question is who decides what happens next: your code, or the model.

Anthropic’s engineering guidance separates workflows, which follow predefined code paths, from agents, which dynamically direct their processes and tool use. It recommends starting with the simplest solution that works. [1]

When the path is already known

Consider an invoice intake process. Extract fields, validate them, match a supplier and send exceptions for review. The sequence is mostly known before the system sees the invoice.

A model may help with extraction or classification. That does not mean it should choose whether validation happens. Put the predictable parts in code. Give each step an explicit input, output and failure state.

This separation makes a bad answer easier to find. You can inspect the extraction without wondering whether an autonomous planner skipped a required check.

When autonomy earns its place

Now consider an investigation across an unfamiliar repository. The next useful file depends on what the previous file revealed. A fixed checklist may be too restrictive.

This is where a model-directed loop can help. It can choose the next search, inspect a result and revise its plan. Anthropic identifies open-ended problems with unpredictable steps as a good fit for agents. [1]

The freedom needs boundaries. Set tool scope, a time or step budget and clear stop conditions. Make escalation a valid outcome, rather than forcing the system to produce a confident answer.

The cost of optional steps

More freedom creates more ways to fail. A tool call can be unnecessary. A plausible result can lead the system down the wrong path. A correct plan can still be slow or expensive.

Anthropic explicitly notes that agentic systems can trade latency and cost for better task performance. [1] Treat that tradeoff as something to measure, not a promise in a slide deck.

Compare an agent with a simpler baseline on the same tasks. Record completion quality, exceptions, cost and human repair time. If autonomy adds little value, remove it.

A practical decision rule

Draw the ideal path before choosing the architecture. Mark the steps that must always happen. Then mark the points where the next action genuinely depends on an uncertain discovery.

Use code for the first group. Consider a bounded agent for the second. Keep human approval around actions that create commitments or change important records.

The best design may be a workflow with one autonomous step. That is not a compromise. It is a system whose control matches the work.

Questions & answers

What is the difference between a workflow and an agent?

A workflow follows predefined paths. An agent uses the model to choose its next actions within a defined scope.

Should every AI feature become an agent?

No. Start with a simpler baseline. Add autonomy only when it improves the outcome enough to justify its cost and risk.

Sources and method

Primary documentation supports the factual claims. Recommendations are editorial proposals. A source citation is not an endorsement.

  1. Building effective agents Anthropic Β· 2024-12-19