Loading video...

Video Failed to Load

Go Home

Here’s how to build an AI agent from scratch in pure Python. No LangChain, no agent framework. We’ll add memory, tool calling, file access, shell commands, and the agent loop until we have a mini Claude Code. Timestamps: 00:00 | Overview 00:30 | What is an Agent? 02:52 |...

21,306 views • 2 months ago •via X (Twitter)

12 Comments

AbraTabia's profile picture
AbraTabia2 months ago

Building it raw is underrated for one reason people miss: you find out which parts of a framework you actually needed. Most teams that migrate later hit a ceiling on branching or state persistence, not features. Knowing the loop by hand makes that call obvious.

Tech With Tim's profile picture
Tech With Tim2 months ago

Agreed, building one raw makes it way clearer what the framework is actually doing for you

Laban's profile picture
Laban2 months ago

Pure Python agent loops are the right teaching path. The hard jump is production: tool permissions, spend caps, and a verification loop that can fail closed.

Drou's profile picture
Drou2 months ago

thanks gonna learn more

Tech With Tim's profile picture
Tech With Tim2 months ago

Glad it helped!

Tech With Tim's profile picture
Tech With Tim2 months ago

Download the free guide from HubSpot on Your 2026 Guide to AI Agents: Code in this video (available inside Skool):

djbasumatari's profile picture
djbasumatari2 months ago

The loop is easy. The shell access is easy. The part that doesn't ship is the policy that tells the agent when to say no.

Tech With Tim's profile picture
Tech With Tim2 months ago

Yeah, especially once tools have side effects

catman's profile picture
catman2 months ago

the 28:09 full build is useful, but shell access changes the safety model entirely—does it add command allowlists, confirmation prompts, or a sandbox? what happens when the agent misreads a destructive command?

Vijay's profile picture
Vijay2 months ago

👏

安叫兽|Bird🕊️ 🔶 BNB's profile picture
安叫兽|Bird🕊️ 🔶 BNB2 months ago

从零手搓一遍,才知道 agent 到底在忙些什么 geschniegelt

John Nash's profile picture
John Nash2 months ago

You have a sister ?

Related Videos