Війти
  • 👁️ 243
  • 📅 2 недели назад

Build Your Own AI Coding Agent (In Under 60 Lines)

Claude Code, Cursor, Copilot, Grok Build: every AI coding agent runs on the same loop. In this video we explain how coding agents really work, then build a working one in about 60 lines of Python: tools, the agent loop, permissions and instructions. Then we cover the ideas the pros use (context, tokens, memory files, plan mode, subagents, MCP, skills, hooks, evals and prompt-injection safety) and which real agent to use. 👉 GET THE CODE ( ): Run it: pip install anthropic · set ANTHROPIC_API_KEY · python "make the failing test pass" Use it in a git repo or on a copy of your project, so every change can be undone. Includes 4 quick quizzes. How many did you get right? Tell us in the comments. 👉 If this helped you finally get how agents work, please subscribe. It's free, and it tells us to make more like it. Subscribe: @aitoolnavio?sub_confirmation=1 More: Claude Code tutorial: What AI is doing to your brain (the METR study and more): 12 free AI tools (incl. GitHub Copilot Free): Compare AI coding tools side by side: CHAPTERS 00:00 Intro 00:42 Your first win: the loop 01:28 How we got here 02:07 The three parts 02:47 How a tool call works 04:03 Build it: setup 04:33 Build it: the tools 05:04 Build it: the loop 06:17 What the model actually sees 06:51 Build it: running tools 07:24 Build it: the instructions 07:51 Watch it work 08:33 The whole agent, line by line 09:22 Tests are the agent's eyes 09:53 Permissions and safety 10:21 Context: the agent's working memory 11:40 Tokens and cost 12:15 Memory files 12:44 Plan mode 13:09 Subagents 13:42 MCP: plugging in tools 14:12 Skills and hooks 14:48 Make our agent better 15:27 Live upgrade: a search tool 16:05 Halfway: a quick favor 16:19 Building agents for real 16:55 The real agents 18:01 Same ideas everywhere 18:19 Agents in the cloud 18:50 Agent design patterns 19:39 Which agent should you use? 20:12 Why agents make mistakes 20:44 Test your agent like a pro 21:54 Prompt injection: the big risk 22:29 How to brief an agent 22:57 Workflow 1: fix a bug 23:26 Workflow 2: build a feature 23:55 Workflow 3: learn a codebase 24:26 Mistakes to avoid 25:09 Try it on your own project 25:46 Do agents make you faster? 26:21 Agent FAQ 27:09 Agent glossary 27:46 Recap 28:19 Closing The agent code is real and was tested end to end (read → run tests → edit → tests pass) before recording. It uses the Anthropic Messages API with tool use; any model with tool calling works the same way. Agent prices are entry prices checked in November 2026 on official pages (Claude Code with Claude Pro $20; Cursor plans from $8, with most coding on the $30 tier; GitHub Copilot Pro $10; Grok Build with Grok Plus $8; OpenCode is open source). The METR figure is from "Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity" (2025). The eval scores, plan-mode output and other example terminal runs are illustrations. Not affiliated with any tool. Picks are our opinion. The narration and visuals are AI-generated. #AIAgents #ClaudeCode #Python