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).
More from coding & agent
- Trust is the #1 agent feature: accuracy, security, reliability beat everything else — cameronstow · 2026-11-02
- Y Combinator-backed Jinko launches travel search and booking infrastructure for agents — ycombinator · 2026-11-02
- Grok Bot template roundup: Home Assistant watchdog, Quarto blog shipper, X unfollow tool — RachelVT42 · 2026-11-02
- Harnis: an open-source call-level seatbelt for local stdio MCP servers — L00pLegend · 2026-11-02
- RAGFlow: BM25+grep alone hits 91% FRAMES on MiniMax M3, no vector index — dair_ai · 2026-11-02
- A 144M model drives most NPC choices in a village sim that learns on a 6GB laptop GPU — Whoa_damn_ · 2026-11-02