Được TopGit lập chỉ mục từ metadata GitHub: pguso/ai-agents-from-scratch có 4.5k sao, viết chủ yếu bằng JavaScript. Demystify AI agents by building them yourself. Local LLMs, no black boxes, real understanding of function calling, memory, and ReAct patterns.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Learn to build AI agents locally without frameworks. Understand what happens under the hood before using production frameworks.
Purpose
This repository teaches you to build AI agents from first principles using local LLMs and node-llama-cpp. By working through these examples, you'll understand:
How LLMs work at a fundamental level
What agents really are (LLM + tools + patterns)
How different agent architectures function
Why frameworks make certain design choices
A Python version of this tutorial is available here:
https://github.com/pguso/agents-from-scratch
Philosophy: Learn by building. Understand deeply, then use frameworks wisely.
Companion Website
This repository now has a matching companion website:
https://agentsfromscratch.com
The website is not a replacement for this repo, but a conceptual companion that:
Explains why each example exists
Visualizes the learning path from raw LLM calls to full agents
Separates code, explanations, and core concepts
Helps you understand agent architectures before using frameworks
Recommended workflow:
Use GitHub for running, modifying, and studying the code
Use the website for mental models, explanations, and progression
Think of the site as the map and this repo as the terrain.
Agent Fundamentals - From LLMs to ReAct
Prerequisites
Node.js 18+
At least 8GB RAM (16GB recommended)
Download models and place in ./models/ folder, details in DOWNLOAD.md
Modeling reasoning as a DAG: parallel source extracts → merge rules → final draft
Resolving conflicts explicitly before generation (must_include, must_avoid, conflict_notes)
Adding deterministic merge and draft compliance checks
Running independent nodes in parallel to reduce latency
Key concepts: Graph of Thought, DAG orchestration, multi-source fusion, merge-before-generate, policy reconciliation
Decision guide: use ToT when you need to search competing paths; use GoT when you need to combine multiple sources into one consistent policy. Compare both in:
ToT concept
GoT concept
14. Chain of Thought - Auditable stepwise decisioning
Educational resource - use and modify as needed for learning.
Built with ❤️ for people who want to truly understand AI agents
Start with intro/ and work your way through. Each example builds on the previous one. Read both CODE.md and CONCEPT.md for full understanding.
Happy learning!
Working with me
If this repo was useful and you have a project that needs ai workflows, context
engineering, RAG, or local/production LLM work done properly, I'm
open to freelance or contract engagements.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/pguso/ai-agents-from-scratch là nguồn chính thức.
pguso/ai-agents-from-scratch có bao nhiêu sao?
pguso/ai-agents-from-scratch có 4.5k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/pguso/ai-agents-from-scratch. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
pguso/ai-agents-from-scratch có phải mã nguồn mở không?
Có — pguso/ai-agents-from-scratch phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/pguso/ai-agents-from-scratch.
pguso/ai-agents-from-scratch còn đang phát triển không?
Commit gần nhất trên pguso/ai-agents-from-scratch là 28 ngày trước (theo timestamp GitHub). Repo có 665 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
pguso/ai-agents-from-scratch là gì?
pguso/ai-agents-from-scratch (pguso/ai-agents-from-scratch) là dự án JavaScript trên GitHub. Theo mô tả gốc: Demystify AI agents by building them yourself. Local LLMs, no black boxes, real understanding of function calling, memory, and ReAct patterns.
pguso/ai-agents-from-scratch so với các dự án AI Tools khác thế nào?
pguso/ai-agents-from-scratch được TopGit xếp vào nhóm AI Tools, với 4.5k sao GitHub và viết bằng JavaScript. Xem trang chủ đề AI Tools trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về ai-agents-from-scratch?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về ai-agents-from-scratch.