How AI Agents Actually Work (Explained in One Python File)

From the creator

Want to start freelancing? Let me help: https://go.datalumina.com/YCxRovW Want to learn real AI Engineering? Go here: https://go.datalumina.com/OOVvjsL 💼 Need help with a project? Work with me: https://go.datalumina.com/1xEZxeZ 🔗 GitHub Repository https://github.com/daveebbelaar/single-file-ai-agent-tutorial/tree/master ▶️ Tutorials Mentioned in This Video Function Calling Tutorial: https://youtu.be/aqdWSYWC_LI UV Tutorial: https://youtu.be/5rTwOt9Qgik ⏱️ Timestamps 0:00 Introduction to the AI Coding Agent 1:10 Setting Up the Environment 2:17 Understanding the Script Structure 3:14 Basic Script Execution 4:09 Implementing the Agent Class 5:53 Defining Tools for the Agent 10:23 Tool Implementation and Usage 17:17 Executing the Agent 18:28 Adding the Chat Functionality 24:56 Creating an Interactive CLI 27:43 Adding Personality to the Agent 31:07 Testing the AI Coding Agent 📌 Description Learn how to build an AI coding agent from scratch in Python in just over 200 lines of code. This step-by-step beginner tutorial walks you through creating a simple but powerful agent that can read, edit, and list files – the same foundations behind tools like Cursor, Claude Code, and Copilot. By the end, you’ll have your own working AI assistant in a single file and a clear understanding of how agentic AI really works. 👋🏻 About Me Hi! I'm Dave, AI Engineer and founder of Datalumina®. On this channel, I share practical tutorials that teach developers how to build production-ready AI systems that actually work in the real world. Beyond these tutorials, I also help people start successful freelancing careers. Check out the links above to learn more!

Stop watching · start building
Matched to Python

Makers residency 4th edition

Your idea can be anything. At our last workshops, people built plant-based nutrition businesses, a way to measure planetary resilience, crochet headwear and a way to connect lonely people living in the same building. An asset manager went on to raise an additional £25M on their fund within nine months. The fourth workshop is a full day at KOKO with Nick Sarafa, learning to build with Claude Code. Bring the thing you keep meaning to start. We’ll bring the pizza.

◆ Fri 13 Nov 2026 ◆ KOKO, London
Makers residency 4th edition
Live event
Makers residency 4th edition
Fri 13 Nov 2026
Find a job · 1 live role

Jobs in AI.
Apply now.

Apply once › get screened › meet the company

See all roles

More like this

Running one yourself?

List your AI event,
wherever it is.

A meetup, a workshop, a hackathon, a conference. Any city, or online. Tell us about it and it lands in front of people already learning this stuff.