post
A coding agent is six functions in a trenchcoat
Hadley Wickham demystifies coding agents (Claude Code, Cursor, Codex) by building a minimal one in R with ellmer. The core is just six tools โ read file, write file, edit file, list files, search, run command โ plus a system prompt. Also covers path safety and why a targeted edit tool beats full file rewrites.