10 open-source agent repos small enough to read in an hour, from PocketFlow to mini-swe-agent

victor_explore · x · 2026-11-02

A curated thread of 10 open-source repos that teach how agents really work by being small enough to read in an hour: Pi (2,500-line agent loop, 120k stars), Learn Claude Code (build a Claude Code-style harness from scratch, 80k stars), smolagents (code-first, 30k), OpenAI Swarm (500-line handoff demo, 22k), PocketFlow (100-line framework, 11k), mini-swe-agent (190-line coding agent core, 8k), Tiny Agents (MCP), Rasbt's Mini Coding Agent, minimal-agent (commented ReAct), and Nanocode (book companion for building your own coding agent).

Original post →

More from coding & agent

coding & agent channel →