# Generating SWI-Prolog code with GPT-6 Astra

**URL:** <https://swi-prolog.discourse.group/t/generating-swi-prolog-code-with-gpt-6-astra/9832>\
**Category:** General\
**Created:** [September 22, 2026, 12:48pm UTC](https://swi-prolog.discourse.group/t/generating-swi-prolog-code-with-gpt-6-astra/9832 "2026-09-22T12:48:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Post date:** [September 22, 2026, 12:48pm UTC](https://swi-prolog.discourse.group/t/generating-swi-prolog-code-with-gpt-6-astra/9832/1 "2026-09-22T12:48:54Z")

</div>

In December 2025, I [posted](https://swi-prolog.discourse.group/t/using-claude-code-to-create-skills-commands-plans-for-swi-prolog/9420) 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](https://openai.com/index/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**

[Introducing GPT‑6 Sol and Luna](https://openai.com/index/introducing-gpt-6-sol-and-luna/)
