(github.com)
Application environments like Smalltalk that can modify themselves on the fly while running always seemed uniquely suited to AI, I've thought
The big players are focused on harnesses for traditional software development, including source control, pull requests, deployments, automated testing, etc.
But the Smalltalk/Lisp model seems a much better fit for “power users” working on something other than commercial software. Science, engineering, art, etc. where a domain expert can dictate the software they need interactively into existence on the fly.
https://www.thestrangeloop.com/2011/we-really-dont-know-how-...
Nah, we've been walking on planet Lisp all this time, and it's more beautiful than ever. Why most people choose to ignore it, I never could apprehend. Being scared of effing parentheses? What a bunch of snivelers, excuse my honesty.
I've been working on something similar - at least the part where an agent modifies a running system. Mine is a web-based data platform and reporting tool. It allows for pages, forms, reports, and charts and you get to see a live draft of what the agent builds before it becomes part of the application. There's version history and rollbacks on everything the agent does. Like your system, it all happens without a restart. The big difference is my system doesn't allow the agent to write code. It writes only declarations, plain data over a closed vocabulary, which the engine checks and turns into the running app. So instead of sandboxing agent code, there's no code to sandbox. Mine is also developed in clojure.
I'm not ready to make the code available, but here's a quick video of it in action: https://github.com/jeffmarder/daedalus
Now that we're entering a new era, I'm wondering if there might be surprising changes here? My wildest prediction is that the web itself might be partially replaced.
The untyped, macro-full code like https://github.com/RiccardoSottini/AffrescoUI/blob/master/ex... gives me pause. It seems like it needs a pretty strong LLM to get things right?
Agreed, I would say that the minimum requirement for an LLM is Sonnet 5.5 when it comes to such clojure maintained applications - Next step for me is to find ways to simplify the code of the different examples I have created while maintaining the same features on a surface level for the end user.
There's abstract version of it, that can run on top of a working lisp implementation, in the: https://github.com/dchichkov/progp/blob/main/abstract/README...
Interpreted languages or languages that compile quickly (eg Go) feel almost the same to the end user. Ie on a webapp I rarely notice if the backend restarts.
Running in the same process also means your agent can break itself, and untangling that without saying screw it and restarting the service. Mine messed with its Ollama library and broke its ability to do inference.
Languages that support this tend to be sort of baroque too. Maybe not an issue, but Clojure or Smalltalk put off some users.
I haven’t given up, but I do think it will have to do something that eg Go can’t even come close to.
and the rest of the owl: https://modus-lisp.github.io/
It'd be good to compare notes - try pointing your agent at https://github.com/dchichkov/progp - maybe it'd pick up some ideas there.
Not entirely similar, more of a "language you use LLMs in" rather than "a language LLMs use", but it does have a WIP MCP server for letting LLMs modify a running program.
I love this project, I'm using it in my custom harness. And even then, I'm probably going to keep embedding this in any Rust project I make now just because it's genuinely just the best embeddable Lisp for Rust I've ever used. There's so many cool projects leveraging LLMs and Clojure-likes now!
I love the idea of malleable software (and yeah, lisp, smalltalk and parametric cgi software as inspiration)
For example, I can easily grab some text from Slack.app, manipulate it and redirect this new content to be posted as a Jira ticket comment. This can be fully automated, or kept with some knobs - to do it in a more controlled fashion.
The second point that even Lispers miss about Emacs is that, unlike most other Lisp dialects that are traditionally data-oriented, ELisp is very text-oriented. The basic primitives are all about text.
LLMs are too - all about text and mostly text. And these two points above make Emacs surprisingly better equipped than almost anything else in existence for creating AI-oriented workflows. Not only can you change any aspect of the text editor itself on the fly, you can easily manipulate virtually anything from an Emacs buffer. That's what I do - on Mac I control my WM through Hammerspoon, which is Lua-based, therefore it can be hooked to a Fennel REPL (a Lisp), then control any window, and every element of that window. On Linux I have a running Clojure REPL that sends signals to Hyprland through its IPC. Less flexible than on Mac, it is still a very capable contraption.
A small LLM like NanoGPT looks really neat in Lisp: https://github.com/sheaf-lang/sheaf/blob/main/examples/nanog...
Besides, because Lisp is so orthogonal and concise, LLMs can write Sheaf code from an 8K-token context file embedded in the binary.
Currently porting Gemma and Qwen to it.
I'd love to now see embedding fixed function blocks within the LLM first-class. Sheaf seems uniquely suitable to this. Embedded a Sheaf engine inside an LLM described in Sheaf...??!!
It's a nice small example of Lisp's "code as data" applied to neural networks.
https://github.com/sheaf-lang/sheaf/tree/main/examples/clevr
I've started something similar - environment that merges Glamorous Toolkit and Emacs with Haskell. It has data inspectors/view from GT (and of course allows for adding new) and carries full GHC for re-compiling and swapping modules on the fly.
It's in reasonably working state but still far away from being releasable, might share one day :)
Screenshots: https://img.axk.sh/g/70665/hamacs
But other than that: user defined files are customizable, many elements are using typeclasses so extension is relatively easy and finally there's a Var type that allows overriding on various scope levels :)
LLMs have really changed what experiments you do...
With a modern browser baked in, so that I can totally phase out my use of Zen (or whatever other browser). It’s pretty much the only program I use anymore
I’ve yet to share it publicly, but I’m quite pleased with how flexible LLMs are for making personalized software
I’m preparing to push it publicly, but I’m not even sure what the point would be. I’m not intending to maintain it for others. I’d even go as far to advocate for everyone to will their own tools into existence rather than use it
It feels pretty feature complete to be honest, but there's always things you can add.
I find it quite amazing you can do your own editor with its own Scheme, LSP support, GPU rendering, tramp like, threading etc in just a few days.
the part of me that loves shipping cool stuff loves this, because the time between an idea and making it real gets crunched.
the other part of me, the one that loved programming because I'd think through every single if statement, is a bit disappointed.
one idea: since you said most of the features you had in mind are "complete", would it be worth making the project more "open", so you could connect it to Claude or Copilot through MCP and let them drive what it runs? just a thought
It also has a built in agent so you can use Claude directly in it.
Besides immutability and iterating with the repl, another point made was apparently more efficient context window usage due to fewer lines of Clojure code compared to alternatives.
Here is a similar talk from Anurag Mendhekar at the European Lisp Symposium a year ago:
Is Lisp Still Relevant in the New Age of AI? [video]
Nope, in practice, that point turned out to be not exactly accurate. Giving an agent access to the "true Lisp REPL" makes it stop guessing and start empirically analyzing the current state of things. It reaches decisions faster, costing far fewer tokens. You just need to build a proper, "Lisp-aware" harness.
I went down a similar path using smalltalk. Then as I started to play whack-a-mole with UI edge cases (live markdown editor), the loop became tedious because I had to use the app to find the interaction bugs (what to do about link rendering when the cursor enters, leaves, and when exactly to prettify and unprettify), while suspecting that this has been solved 100x over in javascript land. Sure enough, when I moved to bb, I had to pull in a lot of libs, which is a lot of pregenerated tokens, but those were battle tested tokens.
I guess it has to be done though, as long as you bring a new stack.
You could be using your app to solve some problem, and just modify it instantly with a prompt to just-in-time add a new feature. No need to shift between “using the app” mode and “programming the app” mode.
I use Flet⁰ for cross-platform work. The live dev tool itself is pure Python so it just works wherever Python is available.
Every single point of skepticism about Lisp turned out to be just outright false. Lisp, in fact, remains the most practical, enormously pragmatic tool I have ever put in my toolbelt (and mind you, I've been in tech since the time of BASIC and Pascal - yes, I have seen some real shit), and lately all the compounding effects are just overflowing - it just keeps giving, the abundance feels unreal.
And the age of LLMs made it clear - Lisp is an effing king. Despite all of its shortcomings, I just couldn't find a better duo for agentic workflows - even faster compilation and advanced static typing just can't seem to beat it, Lisp keeps winning on token efficiency and faster cycles. Majority of programmers have little clue what it actually feels like, to be able to mold your entire computing universe on the fly - without stopping, without restarting, [almost] without waiting. Every single delusional, shortsighted mofo who even a year ago was yapping on every corner about how Lisp is effing dead would be so point-blank speechless if they could only see how it works in practice. I'm driving my entire system, affecting not only how my editor works, but my WM, my browser, my shell, my videoplayer and even other apps I use - Slack, Zoom, Outlook (I wish I could just get rig of them suckers, but work requires them). And I can do it while typing this very comment. Without missing a beat I can just do it - anytime, anywhere, from any buffer in Emacs. AI can pour gallons of some drastic shit all over the places, and Emacs? It simply abides and obeys. Works like some mind-boggling magic.
Programmers, do learn Lisp! Do not ignore my plight. You seriously should be having shivers of FOMO if you're so deeply invested in your favorite stack, blinded by the hype, and have been overlooking Lisp simply because it sounds like nobody's using it. You have no idea of what you're missing. For real.