[GH-ISSUE #4336] [Feature]: Ability to use character ID to reference & contextualize other character cards in chat. #2351

Closed
opened 2026-10-21 05:47:32 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @Dark-Thoughts on GitHub (Jul 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4336

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

It'd make it possible to talk about & reference other characters in a chat with other characters. Characters in a chat could also use this feature to contextualize & reference characters that are mentioned within their own card by using {{CHARACTERID}} instead of their name, or even attached lorebook entries of those other character cards that aren't part of the current main chat.

Proposed solution

Parse {{CHARACTERID}} as the respective character name behind the ID (usually their character card name, unless defined otherwise within the card's description), and load the card and potential attached lorebooks into context.

Alternatives considered

Writing {{CHARACTERCARDNAME}} would be easier than having to copy the ID, but usually the card names aren't mutually exclusive / unique. But maybe there's some other shenanigans one could do, like an additional "simplified ID" where additional cards with the same name would get a number at the end and you'd just write {{CHARACTERCARDNAME2}} if you wanted to reference that specific one.

Additional context

Example 1 (Character info contextualized & used within chat through your own reference / mention):
{{char}}: "You were there all alone? Really?"
{{user}}: "No, I went with {{Susie/ID}}."
{{char}}: "Oh, that blonde girl I saw you with a while ago?"

Example 2 (Character card of {{char}} in chat has a reference of their mother, who's a separate character card, like "Mother: {{CHARACTERID}}" and contextualized by mentioning them indirectly.):
{{user}}: "Have I seen your mom? I don't know, how does she look like?"
{{char}}: "Oh! She's this lovely older lady, brown hair, usually wears a blue summer dress."

Example 3 (The mother of {{char}} is another character card and the memory a lorebook entry with the appropriate key words):
{{user}}: "Hey, do you actually know how I met your mother?"
{{char}}: "Ugh, yes! She told me a million times! I can't hear it anymore how she bumped into you in that cafe!"

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Dark-Thoughts on GitHub (Jul 31, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4336 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? It'd make it possible to talk about & reference other characters in a chat with other characters. Characters in a chat could also use this feature to contextualize & reference characters that are mentioned within their own card by using {{CHARACTERID}} instead of their name, or even attached lorebook entries of those other character cards that aren't part of the current main chat. ## Proposed solution Parse {{CHARACTERID}} as the respective character name behind the ID (usually their character card name, unless defined otherwise within the card's description), and load the card and potential attached lorebooks into context. ## Alternatives considered Writing {{CHARACTERCARDNAME}} would be easier than having to copy the ID, but usually the card names aren't mutually exclusive / unique. But maybe there's some other shenanigans one could do, like an additional "simplified ID" where additional cards with the same name would get a number at the end and you'd just write {{CHARACTERCARDNAME2}} if you wanted to reference that specific one. ## Additional context Example 1 (Character info contextualized & used within chat through your own reference / mention): {{char}}: "You were there all alone? Really?" {{user}}: "No, I went with {{Susie/ID}}." {{char}}: "Oh, that blonde girl I saw you with a while ago?" Example 2 (Character card of {{char}} in chat has a reference of their mother, who's a separate character card, like "Mother: {{CHARACTERID}}" and contextualized by mentioning them indirectly.): {{user}}: "Have I seen your mom? I don't know, how does she look like?" {{char}}: "Oh! She's this lovely older lady, brown hair, usually wears a blue summer dress." Example 3 (The mother of {{char}} is another character card and the memory a lorebook entry with the appropriate key words): {{user}}: "Hey, do you actually know how I met your mother?" {{char}}: "Ugh, yes! She told me a million times! I can't hear it anymore how she bumped into you in that cafe!" ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 31, 2026):

Character context should be loaded into the system role; only character data such as their description, appearance, personality, etc. (all fields from the character editor aside from the example dialogue and initial greeting). The macro needs to be documented.

<!-- gh-comment-id:5141410958 --> @SpicyMarinara commented on GitHub (Jul 31, 2026): Character context should be loaded into the system role; only character data such as their description, appearance, personality, etc. (all fields from the character editor aside from the example dialogue and initial greeting). The macro needs to be documented.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 31, 2026):

Implementation is in progress by @SpicyMarinara with Codex in draft PR #4340. This issue is part of the current focused staging sweep; existing code paths will be reused and kept narrow.

<!-- gh-comment-id:5141428597 --> @SpicyMarinara commented on GitHub (Jul 31, 2026): Implementation is in progress by @SpicyMarinara with Codex in draft PR #4340. This issue is part of the current focused staging sweep; existing code paths will be reused and kept narrow.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2351
No description provided.