“I was able to understand the core principles behind how agents work by implementing them myself.”핵심 원리 이해
Hands-On AI Agent Fundamentals and Extension Development with a Silicon Valley Developer
You know about AI agent frameworks, but understanding how they work and applying them in practice can be difficult, right? Drawing on firsthand experience from Silicon Valley, we’ll guide you from the core principles to practical applications.
143 learners
Level Beginner
Course period Unlimited
Reviews from Early Learners
5.0
5.0
이중권
I was curious about the internal workings of AI but felt lost on how to start, and this lecture has quenched that thirst for knowledge. Thank you for always creating such great lectures.
5.0
02년생 개발자
I found the lecture very informative and helpful. I had only used coding agents superficially before, but through this lecture, I gained a clear understanding of how they work internally. To be honest, I think I’ve gained some confidence that I could try building one myself haha - Of course, there will be many challenges...!! So, the lecture was very beneficial, and I don't think there's a better course for grasping the overall theme and direction. Thank you!
5.0
이건머지
It is being a great help in building my fundamentals, from coding from scratch to handling things using libraries.
What you will gain after the course
Directly implement the core loop structure of an AI agent and understand its principles
Building and Optimizing a Local AI Work Agent Using Ollama
Designing a Practical Tool Calling and Function Execution Architecture
Practical Agent Development with File, Web, and Memory Integration
Understanding the Internal Principles of the Vercel AI SDK and Developing Extensions
An AI agent that uses tools,
built by hand
This course is a TypeScript course where you first implement an AI agent loop by hand and then rebuild it with the Vercel AI SDK. You’ll write the agent loop once from scratch, without a framework, to see how it works firsthand, and then complete it again with the Vercel AI SDK. A real agent that runs on your laptop—with no cloud services or paid APIs. In the final bonus section, you’ll swap out only the agent’s model for Kimi K3 and see how far you can go beyond what local models can do.
One minute is enough—more effective than a hundred words of explanation.
An AI agent is a program that understands the user’s request, selects tools on its own, performs tasks in multiple steps, and then verifies the results. First, see how the finished product actually works. With a single line of instruction, the agent chooses and uses tools, then decides what to do next on its own. The text-based flow below breaks it down step by step afterward.
Demonstration of a complete local work agent · Since it’s a local model, the wording may vary slightly with each execution.
When the conversation is broken down to include tool calls,
Once you turn it on, it reads and writes files, performs calculations, fetches information from the web, and remembers the user. Before risky operations, it asks a person for confirmation. Below is the actual conversation flow of the local work agent completed at the end of the lecture.
Tool use, multistep reasoning, memory, and human confirmation. It all runs on code written directly.
We don’t stop at “knowing how to use it.”
There’s nothing special about it. The order is simply different—we first implement the principles by hand, then build the framework on top of them. Usually, people do it the other way around.
They know how to use a framework. But they don't know what's happening under the hood.
Because I’ve written the loop myself, I understand what the framework is doing under the hood. Even when I encounter a new tool, I adapt quickly.
Once by Hand, Then with the SDK
Implement the function-calling loop directly in raw code to see how it works, then recreate the same thing with the Vercel AI SDK. You’ll understand what the framework is doing under the hood.
100% Local, 100% Free
Run the model on your own computer with Ollama. No API key, payment, or GPU is required. Experiment as much as you like at zero cost. Kimi K3 in the bonus section also supports credits, so you can follow along without paying.
We’ll cover robustness too.
We don’t stop at a demo. We build agents that hold up in practice—from error recovery and input validation to infinite-loop prevention and human confirmation for risky actions.
You can start that sequence now.
Once you’ve written one by hand, you’ll see frameworks in a completely different light.
지금 시작하기How far can the same agent go when you plug in K3?
In the agent we built through Section 7, simply swap the model for Kimi K3.
MOONSHOT AI · Collaboration Section
Moonshot AI's latest flagship model. Start by writing this name in a single line of code.
OFFICIAL K3 MODEL SPEC
BrowseComp 90.4 is the official evaluation score published by Kimi. It was measured with 1M-token context and the maximum reasoning intensity setting, without context compression.
Kimi K3 공식 성능 근거 보기 →Kimi CLI is this kind of tool.
Whole, without splitting it up
The context window is 1,048,576 tokens. You can put in a 3,600-line code file as-is without splitting it up and ask, "Where is this value determined?"
The error screen as-is
It doesn’t require OCR. If you capture a broken screen and send it as-is, the model reads it and pinpoints the bug. It can be built as a tool and connected to the agent loop as well.
Sub-agents in parallel
The orchestrator breaks the work down, distributes it to sub-agents, and gathers the results back together. Up to 300 can run simultaneously (Beta, available to members).
This is a scene where an image was inserted as-is to have it find bugs. We try it ourselves in Section 8.
It is a 2.8-trillion-parameter MoE model. We begin by reading the official blog together and distinguishing what has been empirically measured from where the marketing begins.
At the end of each section, the agent grows one step.
Rather than viewing it as a table of contents, it’s better to look at what gets added at each stage. I’ve noted what your agent will newly be able to do after completing each section.
What Is an Agent, and What Will We Build?
- The Essence of AI Agents and the Agent Loop
- The Big Picture of the Concepts You’ll Learn in This Course
- Prepare the development environment and set up Ollama and a tool-calling model
Handcrafting an Agent
- The Meaning of the Messages Array and Function Calls
- Defining, executing, and checking the results of tools
- Build the agent loop yourself and add more tools
- Observing multi-step reasoning, infinite loops, and termination conditions
Rebuilding with the Vercel AI SDK
- Introduction to the Vercel AI SDK and Ollama Integration
- generateText calls, tool definitions, and zod schemas
- steps tracking, response streaming, multi-step patterns
Local Work Agent — Tool Integration
- Tool Schema Design Principles and a Safe Workspace
- File reading, writing, listing, and search tools
- Fetching web pages, context-saving patterns
- Practical Scenarios for Combining Multiple Tools
Agent Memory
- Why Memory Is Needed and the Limitations of the Context Window
- Managing Old Context and Designing Long-Term Memory
- In fact: A demonstration of storage and recall tools and an agent that remembers
Robustness and Control
- Why Local Models Go Off Track and Loop Control
- Input validation, returning errors as results, and recovering
- Behavioral guidelines through system prompts, human confirmation patterns
- Handling Debugging and Common Failure Patterns
Capstone — A Fully Functional Local Task Agent
- Capstone design, a thin REPL harness, and loop assembly
- Streaming polish and a multi-step end-to-end demonstration
- What We Haven’t Covered and Next Steps, Conclusion
Swap the same agent out for Kimi K3.
- Read the official K3 blog together to identify its features and limitations
- Run the agent built through Chapter 7 with Kimi as-is.
- Execute work workflows, coding workflows with Kimi CLI
- Find bugs by simply uploading screenshots of error screens as-is
- Insert long code and documents in their entirety without cutting them.
- Differences from Claude · Codex, token cost calculation
- Run sub-agents in parallel with Agent Swarm
- Pricing, adoption decisions, and when it’s best to use it
If you've made it this far, it's time to start with Step 1.
You can get started right away by installing Ollama. The cost is $0.
수강 시작하기One agent, properly, all the way to the end
We’ll continue from the principles through to completion. By the end of the course, you’ll be able to build these things yourself.
Build it yourself in this course
- Implement the agent loop by hand
- Using the Vercel AI SDK and How It Works Internally
- Function calling (tool use) and multi-step reasoning
- File, web, and calculation tool integration
- Short-term and long-term memory
- Error recovery, guardrails, and human confirmation
- Swap in the Kimi K3 model (Bonus)
This is for those who fit the following profile, and all you need to prepare is this.
◆Recommended for these learners
- Those who are trying to properly build an AI agent for the first time
- Those who have felt frustrated using frameworks as black boxes
- Those who want to “know how to use it and understand how it works”
- Those who want to experiment freely locally without worrying about costs
◆Requirements
- TypeScript / JavaScript Basic Syntax
- Experience using Node.js and npm
- macOS environment (using zsh)
- Ollama Installation — CPU Is Sufficient Without a GPU
A developer who likes building things from first principles
Silicon Valley Developer Waddy
I’m Waddy, a backend server developer with 13 years of experience. After working at various companies in Korea, I recently moved to Silicon Valley, where I’m now working on AI-related development.
I connected with a developer friend at Toss and ended up joining this way. I’m very interested in being able to provide a wide range of information online. I’ll do my best to share the knowledge I have in the easiest and most accessible way possible.
"Anyone can use a framework. But once you build one yourself, even just once, you see tools in a completely different way. That perspective is what ultimately makes the difference in skill."_久久爱
Things You May Be Curious About First
Can a beginner who has just started coding follow along?
What is Kimi K3, which is covered in the bonus section?
Don’t you use frameworks like LangChain?
Is it possible on Windows as well?
What will I take away from the course?
Is there any reason to take this course even if I’ve already used the Vercel AI SDK?
A student who implemented it themselves evaluated it as follows:
“Because we first implemented the agent loop and then rebuilt it with an SDK, I was able to see what was inside for the first time.”구조를 이해하는 실습
“You made the core concepts easy to understand, which made the course even more valuable.”쉬운 설명
“I thought it would be difficult at first, but I was able to take the course comfortably because you explained it in an easy-to-understand way.”진입 장벽 완화
“I was able to understand the core principles of how agents work by implementing them myself.”핵심 원리 이해
“After implementing the agent loop and then rebuilding it with an SDK, I was able to see what was inside for the first time.”구조를 이해하는 실습
“Explaining the core concepts in an easy-to-understand way made the course even more useful.”쉬운 설명
“I initially thought it would be difficult, but the explanations were clear and easy to follow, so I was able to take the course comfortably.”진입 장벽 완화
This review was excerpted from an actual Inflearn course review for an AI agent course. It is displayed separately to avoid being mistaken for a review of the course on this page.
AI Agents—Now Build One Yourself
Open the black box and complete a working agent with your own hands.
수강 시작하기TypeScript · Ollama Local
So it doesn’t end with listening alone
Learning continues beyond the course. We run a KakaoTalk open chat where developers gather to freely share career concerns, workplace situations, and technical topics. Feel free to ask about anything you get stuck on while taking the course.
KakaoTalk open chat where developers gather
From career topics and real-world work situations to technical concerns—this is a space where you can ask questions casually and find answers together.
open.kakao.com/o/ggBVZsai
Recommended for
these people
Who is this course right for?
Developers seeking the core principles of AI agent development and their practical application
Developers with experience using LangChain/SDKs who want to understand the underlying principles.
Developers looking to build practical workflow automation AI beyond a simple chatbot
Developers who want to experiment with agents in a local AI environment without relying on paid APIs
Developers looking to strengthen their competitive backend development skills in the AI era
Hello
This is Hong
Inflearn Verified
Career Verified
9,298
Learners
596
Reviews
166
Answers
4.8
Rating
31
Courses
I started studying development after becoming interested in it while idling at home, and I am currently responsible for platform server development in Pangyo. I am continuing my activities as a knowledge sharer because I want to provide you with the methods I used to study, as well as the various problems and solutions you may encounter in practice.
These lectures are not created solely through my own knowledge. There are others who collaborate on every lecture.
Choi, who is working as a server developer and interviewer at Kakao
A server developer currently working at Toss
Ande, who worked at Shinsegae Group and is now a developer at NaverAnde
Silicon Valley developer who joined by the recommendation of a Toss developer, Waddy
[Instructor Career]
[Former] Blockchain developer related to Sandbox IP
[Former] Metaverse Backend Developer
[Current] A server developer becoming a veteran in Pangyo
[Interview History]
[Other Inquiries]
[Official Site]
Curriculum
All
36 lectures ∙ (6hr 57min)
Course Materials:
Reviews
All
19 reviews
5.0
19 reviews
tellmemoreReviews 1
∙
Average Rating 5.0
Edited
5
8% enrolledI was able to learn the principles of AI Agents by building one myself. Previously, I only used AI for asking and answering questions in a chat format, but by implementing how an AI Agent works internally from scratch, I was able to understand AI systems. It was exactly the lecture I needed. Thank you!
- jhongInstructor
In fact, I don’t think the chatbot approach makes perfect use of AI agents. I recommend creating a more mature service based on the Loops and Tools I’ve shared with you. Thank you.
- davideugen
Reviews 29
∙
Average Rating 4.9
5
75% enrolledI had been using agent tools like Claude Code, Codex, and Hermes quite comfortably, but I had no idea how they actually worked internally. However, after taking this course, the recommended usage methods for each agent started to make sense in a new way. I began to see the reasoning behind prompting methods, why responses sometimes become "dumb," the concepts of context and memory, why token usage was occasionally so high, and the actual flow of the tools and the famous "Loop" that agents use. After completing the section where we build an agent by hand, the tools I use daily felt completely different. While the experience of building an Agent AI from scratch was great, what resonated with me most was gaining an understanding of the principles behind the agents I currently use as tools, which gave me a sense of how to utilize them even better. In particular, the content regarding robustness—such as memory design, error handling, and behavioral guidelines—was a huge help in understanding why agents sometimes behave strangely in practice. I watched the entire course at 2x speed first to get a quick overview of the flow and then followed up with hands-on practice, which turned out to be the most effective method for me. Thank you for creating such a great course.
- jhongInstructor
What you mentioned is indeed the goal of this course. Simply using Claude, using Codex, designing automation pipelines, harness engineering, and so on are all perspectives that are more about how to use these tools. However, they don’t cover what’s going on inside ㅠㅠ That’s why I wanted to share something on this topic with you all. Thank you for leaving such a thoughtful review!!
rudnfai2986Reviews 5
∙
Average Rating 5.0
Edited
5
14% enrolledI was interested in AI agents, but until now, I had only gone as far as following examples using LangChain or various frameworks. Because of that, I only had a vague understanding of how agents actually operate internally, why Tool Calling is necessary, and how the Agent Loop functions. The best part about this lecture was that, rather than relying on complex frameworks from the start, I was able to understand the core principles of how an agent works by implementing them myself. I had heard the term "agent" many times but was curious about exactly how they are implemented; I am very satisfied that I was able to build one firsthand. Before taking the course, agents felt like a somewhat abstract concept, but now I have a clear mental framework of how to design the structure and what needs to be controlled when creating an agent. I highly recommend this course to anyone who wants to build a single agent from scratch, from start to finish.
- jhongInstructor
Thank you for leaving such a thoughtful review. Since it’s implemented with a small model, it isn’t a 100% perfect agent, but it’s designed so that you only need to swap out the model you use, making it easy to tune whenever you want. Have a great day!
rgunnyReviews 3
∙
Average Rating 5.0
5
33% enrolledUntil now, I intentionally avoided diving deep into AI-related technologies. I prioritized other areas of learning because I believed that having a high-level understanding of my own technical stack was more important in the AI era. However, as AI evolves faster than expected, I began to feel that even simple side projects felt incomplete without some form of AI integration. Through this lecture, I easily gained insights into local LLMs and how to utilize them, enabling me to apply these technologies without worrying about costs. Up to Chapter 3, there were no difficult parts for a standard backend developer. However, I think the true charm of this course lies in learning the instructor's development philosophy and habits—things that aren't easily observed elsewhere. I'm learning a lot!
- jhongInstructor
That’s right. These days, it seems like most people intentionally avoid learning. - Since it does everything for them, they seem to think, “I’ll just use it.” However, as you mentioned, I wanted to include TMI-like elements such as philosophy and habits, while also showing you what direction you should take. Have a great day!
- anarira
Reviews 2
∙
Average Rating 5.0
5
19% enrolledThis curriculum first implements the tool-calling loop at the core of an agent directly in vanilla TypeScript to understand how it works, then refactors it using the Vercel AI SDK. It helps you understand what the framework handles internally and covers realistic challenges you encounter in production, such as preventing infinite loops, automatically recovering from errors, and requiring human approval for risky operations. It seems like a useful course for developers who want to control agents reliably in real-world applications.
- jhongInstructor
Thank you for leaving such a great review!! I felt that, rather than simply using commercially available AI Agents, it would be more fundamental to learn how they work internally, so I put this together. I hope you gain lots of insights from it, haha. Have a great day!
Hong's other courses
Check out other courses by the instructor!
Similar courses
Explore other courses in the same field!







![[Serial] WE CAN ChatGPT! - We can do it too, ChatGPT.Course Thumbnail](https://cdn.inflearn.com/public/courses/336097/cover/a0235c47-7dc2-4a85-8656-a8b64d1b96b3/336097.jpg?w=420)

![[OT (Manufacturing) Security] Master Class for the 4 Major Manufacturing IndustriesCourse Thumbnail](https://cdn.inflearn.com/public/files/courses/342823/cover/ai/3/d8a24ae4-a719-4167-b6c9-88c40dbbf133.png?w=420)
![[OT Security - ① Automotive Industry] Understanding Manufacturing Security in the AI Era: Focusing on Real-world Field CasesCourse Thumbnail](https://cdn.inflearn.com/public/files/courses/342429/cover/ai/0/99dc048b-01e8-4b67-87d2-a333aea84856.png?w=420)

![[OT Security - ④ Food Industry] Understanding Manufacturing Security in the AI Era through On-site Case StudiesCourse Thumbnail](https://cdn.inflearn.com/public/files/courses/342718/cover/ai/0/d8913e1d-e4ba-4dae-9cfa-85a3c649c509.png?w=420)
