Idea · Jun 22, 2026
Agents From Scratch Workshop
A multi-week assignment where students implement a minimal AI agent runtime from scratch in under 200 lines of Python, then use their own framework to build and demo one real-world agent.
What it would do
A structured multi-week assignment where students implement a minimal AI agent loop in Python from scratch, targeting under 200 lines for the core runtime: tool registration, JSON tool-call parsing, context window management, and a multi-turn conversation loop. In the second half, students use their own mini-framework to build one useful agent and present a framework architecture diagram explaining their design decisions.
Key features
- Week 1-2: Implement the agent runtime (tool definitions, LLM call loop, error recovery)
- Week 3: Add memory via sliding context window and a simple vector store for retrieval
- Week 4: Build and demo one real agent using their own framework
- Automated test harness that runs each student's agent against a suite of tool-use scenarios