Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

🟢 Key Takeaways from Chapter 2

  • The context object is your script’s toolbox.

  • context.character → everything about the character.

  • context.chat → everything about the conversation.

  • You can now use last_messages to look several messages deep.

  • Only personality and scenario are writable.

  • Use these tools to make scripts react intelligently to history, timing, and emotion.


Pro Tip: Treat lastMessages like short-term memory.
It won’t remember forever — but within a few turns, it can make your character feel truly attentive.