Contents
The core idea is simple: the language model decides what to do, and the program around it carries out that decision and feeds the result back. The loop repeats until the task is done or the agent asks for your input.
What an agent is made of
- The model (LLM): the brain that plans and picks the next step.
- Tools: functions it can call, such as search, reading files, sending email or calling an API. The MCP protocol is a standard way to plug these tools in.
- Memory: the conversation and previous steps, sometimes plus persistent notes files.
- Guardrails: permissions and rules that stop the agent or ask for your approval.
Example: an agent fixing a site error
| Step | What the agent does |
|---|---|
| 1 | Reads the error log and finds Class "Redis" not found |
| 2 | Opens the config file and sees the cache is set to Redis |
| 3 | Proposes switching the cache to file and asks for approval |
| 4 | Edits the file, then loads the page to confirm the error is gone |
| 5 | Writes you a summary of what it changed |
Notice that the agent paused at step 3 to ask before changing settings; that’s essential behaviour for any agent working on a live system. It’s exactly what coding agents such as Claude Code and Codex do inside your project.
Common kinds
- Coding agents: write code and run tests.
- Customer-support agents: answer, look up orders and open tickets.
- Automation agents: connect apps, for example reading an email and updating a sheet, often built with tools like n8n.
Risks and problems
- Prompt injection: text in a web page or email that tries to steer the agent into doing something else.
- Endless loops: they burn API credit fast, so cap the number of steps.
- Too much access: an agent that can delete or pay without approval is a real risk.
On ArabyHost
AI/Developer plans give you SSH inside an isolated CageFS environment, so an agent works only on your account’s files and can’t reach the system or other accounts. Run your agent as a Node.js or Python app through Passenger, or as a background worker kept alive with cron. Claude Code and Codex run over SSH on these plans. There’s no root, Docker or GPU, so the model itself is called through an API. See AI app hosting and the AI plans.
FAQ
What's the difference between an AI agent and a chatbot?
A chatbot replies to your message with text and stops. An agent takes a series of steps with tools until it reaches the goal, such as reading an error log, editing a file and then running a test.
Are AI agents safe?
As safe as the permissions you give them. Grant the least access possible, require your approval for risky actions such as deleting, paying or sending, and keep a log of everything the agent does.
Do I need to code to build an AI agent?
Not always. Tools such as n8n let you build a simple agent visually. More complex agents are usually written in Python or JavaScript with an SDK from the model provider.