I built a web-searching AI agent from scratch with JavaScript

Reddit r/AI_Agents Tools

Summary

The author built a web-searching AI agent from scratch using JavaScript and LLM tool-calling, demonstrating agent construction without frameworks and sharing it on GitHub for feedback.

I wanted to understand what actually makes an AI system an "agent", so I built a small one from scratch without LangChain or another agent framework. It uses an LLM's tool-calling capability to decide when it needs fresh information, calls a web-search tool, feeds the results back to the model, and repeats until it can produce an answer. The web-search part uses SearchApi, and the whole demo is available on GitHub. I'd be particularly interested in feedback on the agent loop and how you'd extend it beyond a single search tool.
Original Article

Similar Articles

Build a local AI coding agent from scratch

Reddit r/ArtificialInteligence

A step-by-step guide to building a minimal AI coding agent that runs entirely locally using llama.cpp, GGUF models, and a custom harness, demonstrating how to set up tools and call a model to execute real tasks like creating a landing page.