Skip to main content
Thanks for visiting — take a look around, or let us know what you think.servicesblogget in touchRegister on Mostutor — first 1,000 get 3 months free
GCSE & A-Level Computer Science

AI Agents Explained: How AI Went From Answering Questions to Doing Tasks

Sudershan SoniBy Sudershan Soni 5 October 2026 7 min read

In 2026 the buzzword in AI moved from “chatbot” to agent. Instead of answering one question, an AI agent takes a goal and works on it step by step, for minutes, hours or even days. This post explains how agents work using ideas from your computer science course, then looks at two real 2026 examples, including what went wrong.

Chatbot vs agent

GCSE core
FeatureChatbotAgent
InputOne messageA goal
StepsOne replyMany, chosen as it goes
ToolsUsually noneSearch, run code, read and edit files, call other programs
Who decides the next step?The userThe model, based on results so far

The agent loop

Underneath, most agents run a simple loop, which you could write as pseudocode:

goal ← task from the user
WHILE goal not achieved AND steps < limit
    plan  ← model decides the next action
    result ← run the chosen tool (search, code, edit)
    add result to memory
    IF model judges goal achieved THEN stop
ENDWHILE
report to the user
GoalA task in plain languagePlanBreak it into stepsActUse a tool (search, code)ObserveRead the resultCheckDone? If not, plan againrepeat until done

The agent loop: plan, act with a tool, observe the result, check progress, and repeat until the goal is reached or a step limit is hit. Schematic.

Notice two features you meet in A-Level computing: an iterative loop with a termination condition (including a step limit, so it cannot run forever), and state (the growing memory of what has happened so far). The big difference from a normal program is that the “plan” step is not written by a programmer: a language model chooses it at run time.

Quick check

Why does the agent loop include 'steps < limit' in its condition?

Many agents at once

A-Level extension

Big tasks can be split across many agents running in parallel, like a team. Two 2026 examples:

  • Biology search: about 949 Claude agent sessions ran for 21.5 hours over public DNA databases, gathered about 200,000 enzyme gene clusters, scored 3,564 candidate families and found a candidate new enzyme system, which human scientists then studied in the lab[1]. See our post on the ART enzyme discovery.
  • Mathematics: dozens of Claude agents spent 11 days writing a 13-million-line Lean proof of Fermat's Last Theorem, defining concepts and proving intermediate results that others built on[2]. See AI formalises Fermat's Last Theorem.

This is decomposition, one of the core ideas of computational thinking: break a problem into parts that can be solved separately, then combine the results.

The distinction students often miss

Powerful is not the same as reliable.

In the enzyme search, Anthropic re-ran the same campaign ten times; none of the reruns found the result again[1]. In the Fermat proof, failed attempts left about 7% of the non-boilerplate lines in the final code, and Anthropic says the proof is likely much longer than necessary[2]. The Fermat proof could be trusted because a separate checker (Lean) verified every step; the enzyme result still needs lab work and peer review. Agents are most useful when their output can be independently checked.

Risks to think about

  • Unpredictability: the same agent can take different paths on different runs.
  • Permissions: an agent that can edit files or send messages can also make mistakes with them, so sensible systems limit which tools an agent may use and ask a human before risky actions.
  • Cost and energy: long agent runs use a lot of computing (the Fermat project used about six billion output tokens[2]).
  • Accountability: a human still needs to be responsible for what an agent does.

Exam-style question

An AI agent is used to search a large database for patterns. Describe two ways the results could be checked before they are trusted. [4 marks]

Show model answer and mark breakdown
  1. repeat the search several times (or with different settings) to see if the same result is found: tests reproducibility (1 mark)
  2. if it is not reproducible, treat the result with caution / investigate why (1 mark)
  3. check the result independently, e.g. by a separate method, an experiment, or a formal checker such as a proof assistant (1 mark)
  4. have human experts review the result (peer review) before it is used or published (1 mark)

Examiner focus: two distinct checking methods, each described with what it shows.

Common mistake: saying 'ask the AI if it is sure'. Self-assessment by the same system is not independent checking.

Algorithms, iteration and decomposition are central to GCSE and A-Level computer science, and agents make a modern, memorable example. For how the models inside agents learn, read backpropagation explained, and for step-by-step thinking, algorithm basics.

Sources and further reading

  1. The Next Web: Anthropic says Claude found a new enzyme system with CRISPR-like repeats (Sep 2026) — agent sessions, hours, candidates, the ten reruns
  2. Anthropic: Formalizing Fermat's Last Theorem (4 Sep 2026) — dozens of agents, 11 days, tokens, caveats
  3. The Neuron: AI in Science and Math, September 2026 — monthly overview of AI research agents

Last reviewed: 5 October 2026. Figures are typical published values and rules can change. Exam wording varies by specification, so check yours.

Frequently asked questions

What is an AI agent?

An AI system that works towards a goal over many steps on its own: it plans, uses tools such as web search, code execution or file editing, looks at the results, and decides what to do next, repeating until the task is done or it gets stuck. A chatbot answers one message at a time; an agent keeps going.

What can AI agents actually do in 2026?

Real examples from September 2026: about 950 Claude agent sessions searched DNA databases for 21.5 hours and found a candidate new enzyme system in viruses, and dozens of Claude agents spent 11 days writing a 13-million-line computer-checked proof of Fermat's Last Theorem. In both cases humans set the goal and checked the results.

Are AI agents reliable?

Not fully. In the enzyme search, the same campaign was re-run ten times and none of the reruns found the result again. In the Fermat proof, failed attempts left behind about 7% of the non-boilerplate code. Agents can be powerful, but their output needs independent checking.

How is an agent different from a normal computer program?

A normal program follows steps a programmer wrote in advance. An agent's next step is chosen at run time by a language model, based on what it has seen so far. That makes agents flexible but less predictable, which is why testing, limits on what tools they may use, and human review matter.

Reader ratings & reviews

Rate this article across a few different things — your rating helps other readers, and helps us improve.

Content
Images
Presentation
Language clarity
Usefulness

0/3000

Was this article helpful?

Tell us what you think — a correction, a question it left unanswered, or a topic you'd like covered next.

Prefer To Talk? Book a free video call at a time that suits you: 15 minutes for a quick question, 30 for anything else. Times show in your own time zone.

Sudershan Soni

About the author

Sudershan Soni

Founder & Lead Tutor at Mostak Services — an MSc-qualified Mathematics, Science, Computer Science & STEM tutor with 20+ years of professional experience, teaching students from 11+ and GCSE to A-Level and beyond, online worldwide.

Read full profile

Want to understand AI well enough to use it, and question it?

One-to-one GCSE and A-Level computer science lessons cover algorithms, AI and the thinking behind them. Book a free discussion and we'll show you how.