Autonomous Agents

Autonomous Agents

What it means for an agent to act autonomously, how we measure the degree of autonomy, and how we build long tasks and browser and computer agents while keeping a human in the loop and managing the risks.

AdvancedLevel
6Lessons
86 minutesReading time
0Module questions

About the module

Autonomy is not a switch that is turned on or off, but a spectrum of degrees that sets how many decisions the agent takes without referring to a human. In this module we define autonomy precisely and order its levels, from the assistant that only suggests to the agent that executes and monitors itself, then move to the harder applications: browser and computer agents that work with interfaces designed for humans, and long tasks that need checkpoints, resumption and budgets. We learn how to place human-in-the-loop approval points in the right place, and how to contain risks with permission limits, budgets, audit logs and kill switches. The goal is to give the agent the least autonomy that is enough to complete the task safely, and no more.

Learning objectives

  • Define autonomy and distinguish it from fixed automation
  • Place an agent on the ladder of autonomy levels and justify the placement
  • Design a long task with checkpoints, resumption, a budget and a stop condition
  • Place human approval points where an action is costly or irreversible
  • Analyse the risks of an autonomous agent and propose suitable controls for each risk

Prerequisites

  • The planning module and the ReAct loop
  • The tools module and tool security
  • The agent frameworks module

Skills gained

  • Estimate the right level of autonomy for a task according to cost and reversibility
  • Write an agent loop with a step budget, a stop condition and a checkpoint
  • Design human approval gates and escalation policies
  • Build an audit log of the agent's decisions
  • Assess the risks of browser and computer agents and of indirect injection

Lessons

  1. 1What is autonomy in intelligent agents?What Is Agent Autonomy?Many programs work "on their own", but few of them are truly autonomous. In this lesson we define autonomy as the shift of decisions from th…13 min
  2. 2Levels of autonomyLevels of AutonomyNot all agents are autonomous to the same degree, and neither are all the actions of a single agent. In this lesson we use a five-step teach…14 min
  3. 3Browser agents and computer useBrowser and Computer-Use AgentsWhen there is no API, the agent can work the way a person does: see the page, click and type. In this lesson we understand the loop of brows…15 min
  4. 4Long-running tasksLong-Running TasksA task that takes hours or days will inevitably be interrupted or have to wait. In this lesson we learn the four pillars of long tasks: chec…15 min
  5. 5Human in the loopHuman-in-the-LoopA good autonomous agent knows when to stop and ask. In this lesson we get to know the four patterns of human intervention, decide where to p…14 min
  6. 6Autonomy risks and their controlsAutonomy Risks and ControlsEvery additional degree of autonomy widens the risk surface. In this lesson we map the main risks of autonomous agents, build control layers…15 min

Module diagrams

AgentAgent + goalPerceptionPerceivePlanningPlan / ReasonExecutionAct (Tools)ObservationObserve
The agent loop: it perceives, then plans, then executes, then observes the result, and repeats until the goal is achieved or a step limit is reached.
1. AssistantOnly suggests2. Executor with approvalEvery action is approved3. Semi-autonomousSensitive actions are approved4. AutonomousLimits, monitoring and an immediate stop
Autonomy levels: the more autonomy, the less human intervention and the greater the need for monitoring and limits.
1234567The userUserThe applicationApp / RuntimeThe modelModel + Tool SchemasCall request{"name","arguments"}Tool executionValidate → ExecuteTool resultFinal answer
Tool calling: the model executes nothing itself; it proposes a structured call, and the application validates it, executes it and returns the result.
Tool?Sensitive?DoneSTARTAgentnodeToolsnodeHuman approvalinterruptENDStatecheckpoint
A workflow with a state graph: nodes that read and modify the shared state, conditional edges that choose the path, and checkpoints that allow resuming.

Module terms

TermEnglishDefinition
AutonomyAutonomyThe number of decisions the agent makes without human permission
Fixed automationAutomationCarrying out predefined steps without making decisions
WorkflowWorkflowOrchestrating models and tools through paths pre-written in code
Step budgetStep BudgetA maximum number of loop cycles before stopping or escalating
EscalationEscalationReferring the decision to a human when unable or in doubt
Autonomy levelAutonomy LevelA degree that defines what the agent does without human permission
ReversibilityReversibilityThe ability to undo an action's effect easily
Default denyDefault DenyRejecting any action not explicitly stated in the policy
Shadow modeShadow ModeRunning the agent to suggest without executing, to compare its decisions with the humans' decisions
OversightOversightLater monitoring through logs and alerts instead of prior approval
Browser agentBrowser AgentAn agent that browses the web and performs actions on pages
Computer-use agentComputer-Use AgentAn agent that controls the computer interface by clicking and typing
Accessibility treeAccessibility TreeA structured representation of interface elements with their names and roles
Indirect prompt injectionIndirect Prompt InjectionMalicious instructions hidden in content the agent reads
AllowlistAllowlistAn explicit list of the only domains or actions that are allowed
CheckpointCheckpointA snapshot of the run state saved in a persistent store to resume from
IdempotencyIdempotencyA property that makes repeating the same action not change the effect after the first time
Idempotency keyIdempotency KeyA unique identifier that prevents the same action from being executed twice
BudgetBudgetA limit on steps, time or cost that stops the run when reached
ResumeResumeContinuing the run from the last checkpoint instead of starting again
Human in the loopHuman-in-the-LoopThe agent stopping at specific points to ask for human judgment
Approval gateApproval GateA point in the path past which the action proceeds only with approval
Approval fatigueApproval FatigueA reviewer approving without scrutiny because of too many requests
Audit logAudit LogA permanent record of decisions, who made them, when and why
Safe default behaviorSafe DefaultWhat happens when the timeout expires without a decision, such as not executing
Excessive permissionsExcessive AgencyThe agent having functions, permissions or autonomy beyond what its task needs
Least privilegeLeast PrivilegeGranting every component the narrowest permission that suffices for its work
Kill switchKill SwitchAn external signal that stops the agent immediately
GuardGuardA code layer that enforces constraints on tool calls
Error compoundingError CompoundingBuilding later steps on an earlier mistake so that its effect grows
AI Risk Management FrameworkAI RMFA NIST framework with the functions Govern, Map, Measure and Manage

Hands-on experiment

Autonomy limits and approval points Autonomy Limits & Approvals

To test how limits on steps and time and human approval points control an agent that works with greater autonomy.

  1. Open the Autonomous Agent Lab (open ↗)
  2. Give the agent a multi-stage goal and run it with the default settings, and read the steps
  3. In the simulator, add a Human Approval node before a sensitive step, and write in question what will be executed and why
  4. Run three times with auto set to approve, then reject, then ask, and compare the paths
  5. Set the Agent node's timeout to a small value such as 100 and notice the timeout error, then raise it
  6. Set the Agent node's failAt to simulate a failure at a specific step and watch what happens after it

What you will notice: You will notice that a human rejection stops the sensitive action, which is the correct behavior, that a small timeout stops the agent before it finishes its work, and that the simulated failure shows the importance of having an alternative path. Greater autonomy requires clearer limits, not fewer.

Open the lab

Final task

In the autonomy lab (open ↗), build an "invoice follow-up agent" that reads a list of simulated invoices, identifies the overdue ones and prepares reminder messages. Submit: (1) a table that sets the autonomy level for each action (read, analyse, draft, send) with a justification, (2) an execution loop with a step budget, a stop condition and a checkpoint that allows resuming after an interruption, (3) a Human Approval node before any sending, (4) an audit log that explains each decision and its reason. Acceptance criteria: no reminder is sent without approval, the loop stops when the budget is exceeded with a clear report, and the run can be resumed from the last checkpoint without repeating a message.

Completion criteria: the module counts as complete when you finish all its lessons and pass its quiz.

Official references