Code Mode: Why AI Agents Are Ditching Tool Calls for Code