Nim is niche, macros are a highly technical niche within the niche, and current day LLMs are only partially good at popular/standard/well-known coding conventions So don't expect it to give you good guidance on macros at all I tried some similar with the compiler api for untyped ast management, with the entire compiler fully indexed with augment... and while it got some of it right, most of it was really misleading and wasted me more time than it saved me