Today I announce Cantrip: On summoning entities from language in circles. In this book I unify the paradigm behind base models, chatbots, coding agents, RLMs, and RL agents, through the metaphor of magic. Code is provided. deepfates.com/cantrip
Post
I've been creating cantrips in one way or another for a decade now. From the Markov chains of pkd_head, to early transformer/ReAct agents like @berduck.deepfates.com , to the marginalia geists on my website, and much more. Cantrip is the grimoire I wish I had then. www.deepfates.com/deepfates-we...
The template repo contains generated versions in Python, Elixir, and Clojure, along with the original TypeScript version I built to test my theory; the spec and tests which you can use to generate your own; and READMEs for quickstart github.com/deepfates/ca...
Cantrip recognizes that what we call artificial intelligence now is at all levels a loop of language: predict next token, next message, next command, next sub-agent, in a feedback loop with your own effects. The static intelligence of language come alive www.deepfates.com/recursive-la...
Humans have long known that putting language in a loop can make it come alive. We call it "chanting" and it is one of the most powerful and ancient tools of magic. This is where we get the words enchantment, incantation, and cantrip (a cantrip is a simple starter spell in D&D)
0 reposts3 likes