Get your API key

Lesson 1 of 6

What an AI coding agent really does

LLMs, context and tokens in plain words, and why a long chat makes the AI worse.

6 min Free
One step at a time, like flipping pages.

By the end of this lesson you will know what happens inside an AI coding agent, and why short, focused chats give you better code for less money.

You need: nothing to install, only curiosity · Time: 6 minutes

  1. An LLM (large language model) is the "brain" behind tools like Claude Code, Codex, OpenCode and Cursor. Models such as DeepSeek, GLM, Kimi, Qwen and MiniMax are LLMs. An LLM does one thing: it reads text and predicts the most likely next piece of text. It is very, very good at it.

    A coding agent is an LLM plus "hands" (tools). The agent can:

    • read the files in your project folder
    • write and edit files
    • run commands in the terminal (the text window where you type commands)
    • read the result and decide what to do next

    It works in a loop: read → think → act → check → repeat, until it believes the task is finished.

    Put in order

    Put one round of the agent's loop in the right order

    Tap the steps in the order you would do them. Tap a placed step to remove it.

    1. 1
    Why?

    The agent does not "know" your app. It only knows what it reads and what you tell it. You are the manager: you give clear instructions and check the results.