nlothian/Vibe-Prolog: Vibe ๐ŸŽถ Coding ๐Ÿ’ป Prolog ๐Ÿช

Beginning in November 2025, Anthropic ran a program offering a $250 credit for cloud codes on the web. It expired on November 18th, and on November 15th I still had $220 left.

I was working on something else and as a side effect I accidentally coded a Prolog interpreter onto my phone over the weekend.

I haven’t used Prolog for 20 years, and this seems about right.

this is the vibe

This project is to see how far I can push it.

Did I really ask Codex to add more emoji to this README? yes i did…

> uv run main.py ./examples/examples.pl  -q "mammal(X)" -v

Loading program from './examples/examples.pl'...
Successfully loaded './examples/examples.pl'
Query: mammal(X).
Solution 1:
X = dog

Solution 2:
X = cat

> uv run main.py ./examples/examples.pl  -q "grandparent('tom', Y)" -v
Loading program from './examples/examples.pl'...
Successfully loaded './examples/examples.pl'
Query: grandparent('tom', Y).
Solution 1:
Y = ann

Solution 2:
Y = pat
  • No human written code. Can prompt things, tell the tool what changes to make but no human written code should be used.
  • Do not intentionally add slope. If you notice it’s doing something wrong, get it fixed.
  • Use all the tools you can. Add lots of tests! Add automated code reviews! Add security audit!
  • Don’t settle for average code. If an AI is causing slop, tell it what’s wrong and how to improve it.
  • This is a fun project! Don’t take it too seriously.
  • I don’t know if it works at all. it seem To work, and there are some tests that do work but that’s it.
  • I am placing it under the MIT license but as AI written code it is not clear whether it can be copyrighted or not
  • There are plenty of real Prolog implementations that are probably better than this! use them.

Yes!

Please send your vibe contributions! Just open a PR.

Are you an equipment seller looking to use your equipment? Yes! I would love to use them. I prefer PR but opening an issue also works



Leave a Comment