In December 2025, I posted about finding that Claude Code could generate SWI-Prolog code.
I’ve now had experience generating SWI-Prolog code with OpenAI’s GPT-6 Astra as well. The code I’m working with goes beyond typical textbook examples, though it’s still well short of the complexity of a full library.
This isn’t a recommendation to switch tools—just sharing another experience that may interest people here, in the same spirit as my earlier post about Claude Code.
Update