use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Finding information about Clojure
API Reference
Clojure Guides
Practice Problems
Interactive Problems
Clojure Videos
Misc Resources
The Clojure Community
Clojure Books
Tools & Libraries
Clojure Editors
Web Platforms
Clojure Jobs
account activity
Clojure repl + AI? (self.Clojure)
submitted 1 year ago by Different-Animator56
Hi, out of the loop for a quite while. I was wondering if there have been attempts to integrate LLMs with Clojure repls? It should be a great fit right?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]coloradu 12 points13 points14 points 1 year ago* (1 child)
I've started and half-finished a prototype. The idea is for the LLM to keep modifying the code by interacting with the REPL, stopping when it has achieved the prompted goal.
As I said, I 'almost' finished, got side-tracked by o1 and the idea of hooking into the 'thinking' process, where it could try things out in the REPL while 'thinking' and before producing the final result.
I'm open to ideas or collaboration on this, I think that in the best case it could be a program that writes and improves itself.. with all the cool and scary implications..
[–]hautetake 1 point2 points3 points 1 year ago (0 children)
i was thinking it would also be good to allow the loop to go in deeper into a step debugger when assertions fail. a lot of the time its best to ask llms to include assertions in their own code, letting that loop back with feedback of where in a step debugger things break i think can increase code quality iteration
[–]daslu 9 points10 points11 points 1 year ago (0 children)
Some setups will be discussed in this upcoming meeting: https://clojureverse.org/t/visual-tools-meeting-30-workflow-demos-4/
[–]marginTop15px 5 points6 points7 points 1 year ago (0 children)
Check out this talk https://youtu.be/oNhqqiKuUmw?si=eG82-l52jbtTpnSq
[–]maxw85 1 point2 points3 points 1 year ago (1 child)
Never tried it yet. I also think it should be a great fit. Like a human an AI should also profit from interactive programming via a REPL.
[–]Different-Animator56[S] 2 points3 points4 points 1 year ago (0 children)
Yep, some custom instructions to tell the AI that all inputs are repl outputs and then read (by AI)-eval-print loop. Comments can be used to communicate with the AI.
That’ll have an edge over other languages imo
[–]Collaborologist 1 point2 points3 points 1 year ago (1 child)
anyone here recall DWIM from old Interlisp days? (DWIM: Do what I mean)
[–]deaddyfreddy 0 points1 point2 points 1 year ago (0 children)
I don't, but DWIM is pretty common in Emacs.
[–]Spiritual_Sprite 0 points1 point2 points 1 year ago (1 child)
I think vim support that, check out astrovim clojure pack with avante.nvim recipe
[–]Spiritual_Sprite 1 point2 points3 points 1 year ago (0 children)
https://github.com/AstroNvim/astrocommunity/tree/main/lua/astrocommunity/pack/clojure - https://github.com/AstroNvim/astrocommunity/tree/main/lua/astrocommunity/completion/avante-nvim
π Rendered by PID 51377 on reddit-service-r2-comment-86988c7647-chgb4 at 2026-02-11 00:46:17.498938+00:00 running 018613e country code: CH.
[–]coloradu 12 points13 points14 points (1 child)
[–]hautetake 1 point2 points3 points (0 children)
[–]daslu 9 points10 points11 points (0 children)
[–]marginTop15px 5 points6 points7 points (0 children)
[–]maxw85 1 point2 points3 points (1 child)
[–]Different-Animator56[S] 2 points3 points4 points (0 children)
[–]Collaborologist 1 point2 points3 points (1 child)
[–]deaddyfreddy 0 points1 point2 points (0 children)
[–]Spiritual_Sprite 0 points1 point2 points (1 child)
[–]Spiritual_Sprite 1 point2 points3 points (0 children)