mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4336] [Feature]: Ability to use character ID to reference & contextualize other character cards in chat. #2351
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2351
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
@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.
@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.