Navigation überspringen
Here’s how to build an AI agent from scratch in pure Python.
0:00 / 37:24

Here’s how to build an AI agent from scratch in pure Python.

Tech With Tim

@TechWithTimm16.478 Follower

Auf X besuchen

21.306 Aufrufe

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 | The Three Steps 03:21 | Step 1 - Calling an API 11:50 | HubSpot Free Resource 13:15 | Step 2 - Conversation History 17:08 | Step 3 - Tool Calling 28:09 | Full Agent Build

12 Kommentare

Kommentare aus dem Originalbeitrag auf X (Twitter)

  • Profilbild von AbraTabia

    @AbraTabia

    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.

    2 Likes

  • Profilbild von Tech With Tim

    @TechWithTimm

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

  • Profilbild von Laban

    @lunkertw

    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.

    1 Like

  • Profilbild von Drou

    @duo_qyfjc

    thanks gonna learn more

    1 Like

  • Profilbild von Tech With Tim

    @TechWithTimm

    Glad it helped!

  • Profilbild von Tech With Tim

    @TechWithTimm

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

    1 Like

  • Profilbild von djbasumatari

    @djbasumatari

    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.

    1 Like

  • Profilbild von Tech With Tim

    @TechWithTimm

    Yeah, especially once tools have side effects

  • Profilbild von catman

    @catmanyau

    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?

  • Profilbild von Vijay

    @_vijay_in

    👏

  • Profilbild von 安叫兽|Bird🕊️ 🔶 BNB

    @ajs6888

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

  • Profilbild von John Nash

    @LondonChartists

    You have a sister ?