AlgoViz

Agent loop and tool calling

medium 40 min

An agent is a loop.

Where it shows up

The same pattern appears across everyday software.

  • Customer support

    An assistant looks up an order, checks the return rules, and offers a refund that a person approves. The refund tool checks the amount in code.

  • Coding assistants

    The model reads files, runs the tests, edits code and runs the tests again, in a loop, until they pass or a step limit ends the run.

  • Research

    A research agent searches, reads pages, and searches again based on what it found, then writes an answer with sources. Repeat checks stop it from searching the same words forever.

  • Data questions

    The model writes a query or a short program, the harness runs it in a sandbox, and the model reads the result and refines it.

  • IT operations

    An on-call helper reads alerts and logs with read-only tools. Restarting a service is a separate tool that always asks a person.

  • Travel changes

    Like Max's case: look up a booking, check fare rules and seats in parallel, then change it only after the traveller agrees.

  • Spreadsheets and documents

    Assistants inside office tools read a sheet, call a calculation or chart tool, and write back, with the edits shown before they are kept.