Blog: Python and AI agents in plain English
Articles for beginners on learning Python and on how AI agents work. Every code example here runs exactly as shown, and every fact links to where it comes from.
How to build an AI agent, step by step
To build an AI agent, you write tools as plain functions, describe them to an AI model, and write a loop that runs each tool the model asks for until the job is done. Here is every step in plain Python, from choosing the job to testing it, with programs you can run without an account or an API key.
What is vibe coding?
Vibe coding means building software by telling an AI what you want in plain words and using what it writes without reading the code. Here is where the term came from, what it is good for, where it goes wrong, and a short Python program that runs fine and still gets the answer wrong.
What is an AI agent?
An AI agent is an AI model that works towards a goal in a loop: it takes a step with a tool, looks at the result, and decides what to do next until the job is done. Here is how that works, where you may already have met one, and a tiny agent written in plain Python.