Brown CS intro course has students build an AI agent from scratch around an open-weight LLM
guzdial · x · 2026-12-02
A Brown University CSCI 0190 lab, "In the Loop," demystifies agentic AI by having intro students build an agent from scratch around an open-weight LLM.
- Setup: Runs locally via Ollama (llama3.2, 2GB; optional gemma4, 6.6GB) with Pyret/Node starter code.
- Arc: Starts from "an LLM is just a text-to-text function," then adds a first tool, more tools, external access, and finally the agent loop itself.
- Safety: The lab warns that giving an LLM access to your machine is dangerous, and includes a dedicated section on prompt injection.
Author ShriramKMurthi framed it as answering "what is the essence of an agentic AI system," with inspiration from Hadley Wickham and Anil Madhavapeddy.
More from coding & agent
- Veteran engineer: coding isn't going back to manual, automation only goes up — A_K_Nain · 2026-12-02
- 11GB open model beats Opus 4.5 (casual) in 76 minutes via Chantless capability extraction — tokenbender · 2026-12-02
- LlamaIndex open-sources 8.1M-param OCR model OCRia-nano-1, parsing 27.8 pages/sec on CPU — llama_index · 2026-12-02
- Encrypt env vars, hardcode the key: the dumb-sounding HN trick that survives Vercel and Railway breaches — DavidWells · 2026-12-02
- Dev take: agents don't need a new language, they need faster tests — weswinder · 2026-12-02
- The 'sacred subagent handoff ritual': dev shows Claude Code smoke-testing servers — austinvhuang · 2026-12-02