[GH-ISSUE #532] [Feature]: Add NPC Archivist Agent for grounded character card proposals #270

Closed
opened 2026-10-20 17:25:57 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @xKoMaRx on GitHub (Aug 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/532

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Recurring NPCs emerge naturally during Roleplay and accumulate durable facts across the transcript, summaries, lorebooks, and tracker state. No downloadable Marinara Agent currently turns that grounded material into a complete reusable character card. Users must reconstruct NPC identity, voice, appearance, relationships, and greetings by hand.

Proposed package or change

Add an agent-only Writer package named NPC Archivist for Roleplay post-processing. It should run conservatively on a configurable interval, detect named recurring NPCs that do not already have cards, and emit one or more complete Character Card V2 proposals through the Engine's user-approved character_card_create result contract.

The prompt should:

  • use recent Roleplay, chat summary, activated lorebook context, existing character names/cards, and tracker continuity;
  • distinguish established facts from cautious inference;
  • skip incidental, unnamed, duplicate, player-controlled, and insufficiently established characters;
  • provide description, personality, scenario, first message, example dialogue, creator notes, backstory, appearance, tags, and other safe V2 defaults;
  • cite concise evidence/reasons for review;
  • never persist a card directly.

Supported mode: Roleplay. Phase: post-processing. Category: Writer. Restart: not required. The Engine integration is tracked in the linked Marinara-Engine issue.

Why should this be optional?

This is model-powered post-processing with extra token cost and a workflow only some roleplayers want. Keeping it downloadable preserves the lightweight Engine core and matches Card Evolution Auditor and Lorebook Keeper.

Alternatives considered

  • Extend Card Evolution Auditor: rejected because that Agent intentionally targets existing card IDs with exact replacement edits.
  • Use Lorebook Keeper or Character Tracker output as the final artifact: rejected because neither produces portable character cards.
  • Use Professor Mari manually: workable for one-off creation, but not automatic or cadence-based.

Additional context

The package should initially be staging-only until the matching Engine contract is available and install/activation/uninstall behavior has been exercised end to end.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @xKoMaRx on GitHub (Aug 23, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/532 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Recurring NPCs emerge naturally during Roleplay and accumulate durable facts across the transcript, summaries, lorebooks, and tracker state. No downloadable Marinara Agent currently turns that grounded material into a complete reusable character card. Users must reconstruct NPC identity, voice, appearance, relationships, and greetings by hand. ## Proposed package or change Add an agent-only Writer package named **NPC Archivist** for Roleplay post-processing. It should run conservatively on a configurable interval, detect named recurring NPCs that do not already have cards, and emit one or more complete Character Card V2 proposals through the Engine's user-approved `character_card_create` result contract. The prompt should: - use recent Roleplay, chat summary, activated lorebook context, existing character names/cards, and tracker continuity; - distinguish established facts from cautious inference; - skip incidental, unnamed, duplicate, player-controlled, and insufficiently established characters; - provide description, personality, scenario, first message, example dialogue, creator notes, backstory, appearance, tags, and other safe V2 defaults; - cite concise evidence/reasons for review; - never persist a card directly. Supported mode: Roleplay. Phase: post-processing. Category: Writer. Restart: not required. The Engine integration is tracked in the linked Marinara-Engine issue. ## Why should this be optional? This is model-powered post-processing with extra token cost and a workflow only some roleplayers want. Keeping it downloadable preserves the lightweight Engine core and matches Card Evolution Auditor and Lorebook Keeper. ## Alternatives considered - Extend Card Evolution Auditor: rejected because that Agent intentionally targets existing card IDs with exact replacement edits. - Use Lorebook Keeper or Character Tracker output as the final artifact: rejected because neither produces portable character cards. - Use Professor Mari manually: workable for one-off creation, but not automatic or cadence-based. ## Additional context The package should initially be staging-only until the matching Engine contract is available and install/activation/uninstall behavior has been exercised end to end. ## Template check - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@xKoMaRx commented on GitHub (Aug 23, 2026):

Implementation owner: @xKoMaRx. Work is in progress on branch codex/npc-archivist.

<!-- gh-comment-id:5387891205 --> @xKoMaRx commented on GitHub (Aug 23, 2026): Implementation owner: @xKoMaRx. Work is in progress on branch codex/npc-archivist.
Author
Owner

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

Oh, pookie, I mean to give this ability to custom agents so the user can create an agent on their own doing that. I don't think this deserves a separate agent.

<!-- gh-comment-id:5388132473 --> @SpicyMarinara commented on GitHub (Aug 23, 2026): Oh, pookie, I mean to give this ability to custom agents so the user can create an agent on their own doing that. I don't think this deserves a separate agent.
Author
Owner

@xKoMaRx commented on GitHub (Aug 23, 2026):

Maybe, thats great, but since I’ve already made a new agent for it, I’ll polish it up and pack it with other useful, interesting abilities that could come in handy for RP :)

<!-- gh-comment-id:5388204357 --> @xKoMaRx commented on GitHub (Aug 23, 2026): Maybe, thats great, but since I’ve already made a new agent for it, I’ll polish it up and pack it with other useful, interesting abilities that could come in handy for RP :)
Author
Owner

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

Pookie, I won't accept it as an official agent; most people handle NPCs with Lorebook entries, plus only Devs (or acknowledged contributors I trust) can submit official Agents as of now. Perhaps in the future. But thank you!

EDIT: Forgot to mention you can still share the agent with people, of course, by publishing it on GitHub and sharing it on my Discord or wherever you want. :)

<!-- gh-comment-id:5388232773 --> @SpicyMarinara commented on GitHub (Aug 23, 2026): Pookie, I won't accept it as an official agent; most people handle NPCs with Lorebook entries, plus only Devs (or acknowledged contributors I trust) can submit official Agents as of now. Perhaps in the future. But thank you! EDIT: Forgot to mention you can still share the agent with people, of course, by publishing it on GitHub and sharing it on my Discord or wherever you want. :)
Author
Owner

@xKoMaRx commented on GitHub (Aug 23, 2026):

Yeah i know :) it's not that i want it to be official, it was something that some people ( as me ) would like to have :) I was just pointing it out and having a nice conversation with You :P Of course i will publish and share my agent on Discord when i will think it;s worth it :)

<!-- gh-comment-id:5388359551 --> @xKoMaRx commented on GitHub (Aug 23, 2026): Yeah i know :) it's not that i want it to be official, it was something that some people ( as me ) would like to have :) I was just pointing it out and having a nice conversation with You :P Of course i will publish and share my agent on Discord when i will think it;s worth it :)
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-Agents#270
No description provided.