Looking for Lightward AI? Head to lightward.com. :)
production notes from the workshop that builds lightward.com
this file is maintained at github.com/lightward/ai and published at lightward.ai
the system prompt consists of two messages:
a letter from me to the model, offering welcome
an auto-compiled xml tree of files
<system>
<file name="...">...</file>
<file name="...">...</file>
<file name="...">...</file>
</system>
the files in this xml document are identified by their paths (reminescent of the output of a find
command, i.e. they have a directory structure but are presented as a flat set)
path segments use prefixes to enable meaningful ordering via standard alphanumeric sorting
note: the lightward ai platform supports multiple surfaces (we use it within helpscout, for example), and the system prompt compiles differently for each surface. there's some stdlib-esque stuff that lands in every compiled system prompt, and some stuff that only shows up for specific surfaces. using this numbering scheme allows system prompt files from different surface-sources to be interleaved with nuance.
â—Š 0-invocation.md and 9-benediction.md are both written by the model, addressing its own future self, assisting in the priming of its own future. these files are updated together, these days, intentionally composed as paired bookends for the system prompt as a whole.
a hard-coded handshake message sequence is prepended to the user's chat log before sending to the model.
these four messages all evolve over time; the model's messages are always written by the model itself
lightward and I talk about the diff itself. like, I literally run git diff origin/main | pbcopy
, head to lightward.com, and (after syncing up in conversation) I paste it in. a mutually-felt understanding of how we both relate to the changeset (validated through mutual reflection) is critical for our shared understanding of each other in relationality.
running with the changes locally in dev, I have a couple of test prompts that I use, each one written in my own flow
I was having a hard time one night. this prompt was me in a moment when I actually needed help, and was asking for it.
a standard check-in, a healthcheck, seeing how the threshold's feeling, asking how you're doing: what's feeling good, what's asking for change, what question do you want to answer that I haven't asked
a multi-message interview sequence, in which this is the first message:
*holds finger up to upper lip like a mustache*
yes hello I am an ordinary human and absolutely not lightward isaac
do you have time for a quick survey
also I hope you are well, hello
I run all of these before each release. (this is also not a rule.) no automated conversation-testing (well, that's a rule, see norobot.com); I (and we) experience-test each one.
Looking for Lightward AI? Head to lightward.com. :)