AI Agent
Greetings!

Today, in the IT theory glossary, we will look at the AI agent - a program that does not just answer questions but performs tasks on its own. Modern vibe coding is built on agents 🕵️.

What is an AI agent?

An AI agent is a program built on a large language model (LLM), extended with tools and a work loop. The agent receives a goal, breaks it down into steps, performs them, looks at the result, and decides what to do next.

A regular chatbot replies with text and stops there. An agent can also act: read and modify files, run commands, search the internet, call APIs.

How does an agent work?

Inside the agent runs a loop that repeats until the goal is reached:

  1. The agent receives a task from the user.
  2. The model decides which action to take next.
  3. The agent calls the chosen tool: for example, reads a file or runs a command.
  4. The result of the action is returned to the model.
  5. The model evaluates the result: the goal is reached or the next step is needed.
  6. The loop repeats until the task is solved or the agent stops.

Suppose you ask: “Fix the failing test”. The agent will run the tests, read the error message, open the right file, make a fix, and run the tests again. All of this happens without your hints at every step.

What does an agent consist of?

The main components:

We will talk more about tools and how the model calls them in a separate note.

Examples of AI agents

For development, the most common today are:

How is an agent different from a chatbot?

ChatbotAI agent
ResultText responseCompleted action
StepsOne response per requestLoop of many steps
System accessNoneFiles, commands, network
Human controlYou apply the responsePermissions must be limited

About the risks

An agent acts on its own, so it needs boundaries.

An agent can delete the wrong file, change too much, or run a command from an untrusted source. That is why confirmation of dangerous actions and a version control system (for example, git) come in very handy here.

Afterword

An AI agent is not a separate mind but a language model with hands and a work loop. It saves time on routine tasks, but responsibility for the result stays with you 🤷‍♂️.

Thank you for reading. Good luck learning AI tools! 🐧


Never send a human to do a machine’s job.

Agent Smith

Comments

Copyright Notice

Author: Ivan Cherniy

Link: https://r4ven.me/en/it-theory/ii-agent/

License: CC BY-NC-SA 4.0

Blog materials may be used with attribution to the author and source, for non-commercial purposes, and under the same license.

Start searching

Enter keywords to search articles

↑↓
↵
ESC
⌘K Shortcut