Build a tiny Claude Code clone in Python with agent loop, tools, permissions, and context management in ~800 lines