My experience of using AI is it can save you a LOT of work, but you need to supervise it REALLY closely and give it sufficient code context for it to work properly. It only knows what it knows and if it doesn't know it will make shit up. But if you do use it within its limits it will identify bugs, generate tests, generate a lot of boiler plate and help you be more productive.
Being open source is not a reason to avoid it. However AI does produce slop and unattended it can produce execrable patches which are practically incoherent to anyone used to human coding patterns. So there should be rules about coding style, patch / merge / pull requests that diffs are self evident, concise and obvious. Most AIs will read a guidance file so this stuff can be defined. And if a person uses AI to generate a patch they should review this patch first before daring anyone else to look at it.
Imagine if he just struck a real deal with Iran. This crisis, of Trump's own making would resolve itself.