Coding Agents for Generalized Task and Motion Planning Problems — ThinkLLM