Building a CLI Coding Agent with PydanticAI: Why My First Attempt Failed (And How Tool-Calling Fixed Everything) on December 24, 2025 cli agent code automation labthecode pydantic ai tool calling +