[GH-ISSUE #6563] [Feature]: in-world npc character cards #3678

Closed
opened 2026-10-21 06:05:51 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @coldRaven777 on GitHub (Sep 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6563

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Presistency and memory of npcs along with maintaining long term coherence.
Npcs should have their own character cards (virtual, chat bound) and private memories and relationship tracker

Proposed solution

Once we are in a roleplay (or maybe ,optionally in chat mode too. I can't really comment on game mode because I never used it) and as the story is progressing, npcs keep being created and deleted .
Npcs kind of already presist on the character tracking agent but the agent is very unreliable because it is scene based .

What i suggest is the following. Have an agent that runs parallel to generation that does the following:

  1. Checks which npcs are present
  2. checks if the current ongoing roleplay has that specific npc by name / and agent query
  3. If npc already exists , render the relevant parts of the prompt (description, appearence, relevant personal memories)
  4. if not: create a new character card for that npc.

Npc Character cards
Act almost as normal character cards , can be edited etc. But they also have a personal memory database. Event based .
So it can be recalled by similarity

Npc character cards are chat / rp bound by default but they can also be bound to a specific card if the user wants.

Also these npcs must be associated with triggrr keywords (like in lorebook entreies) so they can have parts of the prompt injected in context (when they are being mentioned, etc)

In my honest opinion this solves 2 fundamental problems of long term roleplay: character consistency and knowledge segregation.

I suggest the following types of render

Scene render:
This is the render that happens when the npc is present in the scene
Injects the description, the appearance, personality and all other fields into the context.
It also injects private memories (recalled based on situation)

Indirect render
This happens only when the npc is being mentioned . (Via the keywords )
It will inject only the npc description field and personality in order to save context space

Memories

Memories must be chronological.
They must extract from the world tracker agent whenever possible.
And must be event based.
npc_conversation etc.

additional fields

Relationships
The relationships field is rendered in both modes it has the list of relationships.

It changes via the agent

Alternatives considered

None

Additional context

I know that this feature is most likely out of the scope of the project, but suggesting it doesn't hurt , does it?

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 @coldRaven777 on GitHub (Sep 23, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6563 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Presistency and memory of npcs along with maintaining long term coherence. Npcs should have their own character cards (virtual, chat bound) and private memories and relationship tracker ## Proposed solution Once we are in a roleplay (or maybe ,optionally in chat mode too. I can't really comment on game mode because I never used it) and as the story is progressing, npcs keep being created and deleted . Npcs kind of already presist on the character tracking agent but the agent is very unreliable because it is scene based . What i suggest is the following. Have an agent that runs parallel to generation that does the following: 1. Checks which npcs are present 2. checks if the current ongoing roleplay has that specific npc by name / and agent query 3. If npc already exists , render the relevant parts of the prompt (description, appearence, relevant personal memories) 4. if not: create a new character card for that npc. Npc Character cards Act almost as normal character cards , can be edited etc. But they also have a personal memory database. Event based . So it can be recalled by similarity Npc character cards are chat / rp bound by default but they can also be bound to a specific card if the user wants. Also these npcs must be associated with triggrr keywords (like in lorebook entreies) so they can have parts of the prompt injected in context (when they are being mentioned, etc) In my honest opinion this solves 2 fundamental problems of long term roleplay: character consistency and knowledge segregation. I suggest the following types of render Scene render: This is the render that happens when the npc is present in the scene Injects the description, the appearance, personality and all other fields into the context. It also injects private memories (recalled based on situation) Indirect render This happens only when the npc is being mentioned . (Via the keywords ) It will inject only the npc description field and personality in order to save context space ### Memories Memories must be chronological. They must extract from the world tracker agent whenever possible. And must be event based. npc_conversation etc. ### additional fields Relationships The relationships field is rendered in both modes it has the list of relationships. It changes via the agent ## Alternatives considered None ## Additional context I know that this feature is most likely out of the scope of the project, but suggesting it doesn't hurt , does it? ## 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. .
bsakaguchi 2026-10-21 06:05:51 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 23, 2026):

You can create character cards or lorebooks for NPCs already.

<!-- gh-comment-id:5792114196 --> @SpicyMarinara commented on GitHub (Sep 23, 2026): You can create character cards or lorebooks for NPCs already.
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#3678
No description provided.