An AI agent is a language model that calls tools itself to finish a task. Whether that works reliably depends at least as much on the software around the model as on the model itself. That is what this topic is about.
The basics are in What is an agent harness? and Agent harness: why the software around the model decides whether your AI agent works. How an agent uses tools is covered in What is MCP?, about the open standard for connecting AI to tools and data, and in Programmatic tool calling, where the model writes code that calls the tools. OpenAI WebSockets is about speed when an agent calls many tools.
If you want to build one yourself, Building an AI agent in PHP is a complete example with Composer, the Claude SDK, tests and an MCP server. Multi-agent AI shows why it so often goes wrong when agents hand work to each other, and Hermes Agent how an agent records its own way of working in skills.