C.W.K.
Stream
Lesson 05 of 05 · published

Agent or Workflow? Choosing the Right Autonomy

~24 min · workflow, autonomy, architecture

Level 0Observer
0 XP0/40 lessons0/12 achievements
0/100 XP to next level100 XP to go0% complete

Autonomy is not a virtue by itself

A workflow follows a known path. An agent discovers a path. If the task always has the same sequence, adding an agent loop usually adds cost, latency, and weird failure modes without buying much.

The disciplined question is not “can an agent do this?” Of course it can attempt it. The question is “does uncertainty in the path justify autonomous planning and tool choice?”

Use a workflow when the path is stable

ETL, invoice parsing, newsletter drafting, report generation, and CI checks often have known steps. Put the model inside those steps, but keep orchestration deterministic.

This gives you predictable logs, retry boundaries, and simpler tests. Boring? Yes. Shippable? Also yes. Boring wins a surprising number of production fights.

Use an agent when the path is discovered

Debugging, research, incident triage, codebase exploration, and open-ended planning often depend on intermediate discoveries. In those cases, the system needs to choose tools dynamically and revise its route.

Code

Workflow vs agent skeletons·python
def workflow(topic):
    notes = research_step(topic)
    outline = outline_step(notes)
    draft = write_step(outline)
    return polish_step(draft)

def agent(task):
    return run_agent(
        task,
        tools=[search, read_file, run_tests, ask_human],
        max_steps=20,
    )

External links

Exercise

Classify three systems you use as workflow, copilot, semi-autonomous agent, or autonomous agent. Explain the uncertainty that justifies each classification.
Hint
If the path is fixed but the text varies, it is probably a workflow with LLM steps.

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.