Skip to content

Macros & template tokens

Template tokens are placeholders Pyre resolves when it builds a prompt. They work in preset templates and related prompt slots. Name tokens are also filled inside cards, lore, recaps, and messages where appropriate.

Token Resolves to
{{char}} Active character name, or joined group names when appropriate.
{{user}} Active persona name, or joined persona-party names.
{{group}} Current group/cast label where available.
{{description}} Character description.
{{personality}} Character personality.
{{scenario}} Character scenario.
{{persona}} Active persona description.
{{mesExample}} Character example dialogue.
{{wiBefore}} Fired lorebook entries positioned before the prompt body.
{{wiAfter}} Compatibility token. Currently resolves empty in Pyre so old imports do not leak the literal token.
{{summary}} Checkpoints recap, placed exactly where you put the token.
{{random:a,b,c}} One random option from the comma-separated list.

Checkpoint templates may also use {{words}} where the app expects a target word count.

Regex replacements support regex capture syntax such as $0, $1 through $9, and Pyre's {{match}} helper where available in that editor.

Note

{{creator}} is a card/profile field, not a chat prompt macro.

See also