#412 · Primary category: Education & Research
agents-from-scratch
Build AI agents from first principles using a local LLM - no frameworks, no cloud APIs, no hidden reasoning.
Project last updated:07/25/26
GitHub Stars
971
Forks
244
Contributors
4
License
MIT
Why we included this project
Most agent tutorials hand you a framework and ask you to trust it. This one does the opposite: it builds a single agent from one local LLM call across 12 lessons, with every mechanism left visible in the code. You start with plain text in and text out and work gradually through system prompts, JSON output contracts, routing, tool definitions, the observe-decide-act loop, memory, planning, and lastly evals and telemetry. Because it all runs on a GGUF model you download yourself, there are no cloud calls or API keys obscuring the behavior, so each step stays traceable to explicit code. The companion complete_example.py keeps each lesson's function isolated, letting you adjust one concept at a time before wiring everything together. That makes it useful both for developers who want a mechanical grasp of agent internals and for educators looking for a clean teaching example.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
prompts.chat
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
JavaGuide
Java Interview & Backend General Interview Guide, covering computer fundamentals, databases, distributed systems, high concurrency, system design, and AI application development.
system-prompts-and-models-of-ai-tools
A curated collection of system prompts, internal tools, and AI models from popular AI assistants and coding agents.
30-seconds-of-code
Coding articles to level up your development skills
generative-ai-for-beginners
21 Lessons, Get Started Building with Generative AI