Sounds like a great project idea to make a toy demo of this direction you'd like to see. Maybe comparable to
https://github.com/norvig/paip-lisp/blob/main/docs/chapter15... and
https://github.com/norvig/paip-lisp/blob/main/docs/chapter8.... which are a few hundred lines of Lisp each, but do enough to be interesting.