[GH-ISSUE #701] [Feature]: Improve group chat autonomy and speaker selection #336

Closed
opened 2026-10-20 17:27:47 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @cha1latte on GitHub (May 11, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/701

What problem does this solve?

Group chats already have some autonomous group-reply behavior, but the current behavior is closer to schedule/status/talkativeness plus random selection than a smart RP-style group flow. That makes group conversations feel less natural when users want characters to participate like multiple roleplay participants who react to the scene and decide who should speak next.

Current implementation notes from Professor Mari:

  • Conversation chats can enable autonomousMessages.
  • Group chats can enable characterExchanges.
  • The client polls every 30 seconds through useAutonomousMessaging and useBackgroundAutonomousPolling.
  • The server checks schedules, status, and inactivity in /conversation/autonomous/check.
  • Group exchanges call checkCharacterExchange().
  • Current speaker selection uses eligible characters weighted by schedule.talkativeness, then randomly picks a candidate and rolls against that weight.
  • Autonomous follow-ups are capped at MAX_FOLLOWUPS = 3.
  • Exchanges only happen after at least 30 seconds of user inactivity.

Source/context: Discord feature request. Source link: https://discord.com/channels/1417099416812392641/1503458087619792917

Proposed solution

Improve group chat autonomy in two layers:

  1. Expose more group exchange settings so users can tune the existing system.
  2. Explore an agentic speaker-selection/orchestrator step that can read the scene and decide which character should reply next.

The smaller first slice could add settings for:

  • Character exchange frequency.
  • Maximum autonomous follow-ups.
  • Minimum user inactivity before character exchanges.
  • Per-character eagerness or participation weight.
  • Whether character-to-character exchanges are allowed to continue without a direct user prompt.

The larger follow-up could replace or supplement the random talkativeness picker with a speaker-selection agent that decides the most appropriate next speaker from the current group context, then triggers that character's reply.

The feature should preserve manual character selection for users who want direct control and include guardrails so one character does not dominate the conversation or unexpected reply chains do not run too long.

Alternatives considered

  • Keep the current schedule/status/talkativeness/random-roll system only. This is simpler, but it does not deliver the requested RP-style group flow.
  • Add only more configuration knobs. This is likely the safest first step, but it still would not make the system scene-aware.
  • Jump straight to an LLM speaker-selection agent. This better matches the request, but adds more latency, token cost, and product decisions around when the agent should run.

Additional context

This is split out from the broader group autonomy and Discord mirroring request. It should be evaluated independently from server-side background scheduling, unread messages, and two-way Discord bot mirroring.

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 @cha1latte on GitHub (May 11, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/701 ## What problem does this solve? Group chats already have some autonomous group-reply behavior, but the current behavior is closer to schedule/status/talkativeness plus random selection than a smart RP-style group flow. That makes group conversations feel less natural when users want characters to participate like multiple roleplay participants who react to the scene and decide who should speak next. Current implementation notes from Professor Mari: - Conversation chats can enable `autonomousMessages`. - Group chats can enable `characterExchanges`. - The client polls every 30 seconds through `useAutonomousMessaging` and `useBackgroundAutonomousPolling`. - The server checks schedules, status, and inactivity in `/conversation/autonomous/check`. - Group exchanges call `checkCharacterExchange()`. - Current speaker selection uses eligible characters weighted by `schedule.talkativeness`, then randomly picks a candidate and rolls against that weight. - Autonomous follow-ups are capped at `MAX_FOLLOWUPS = 3`. - Exchanges only happen after at least 30 seconds of user inactivity. Source/context: Discord feature request. Source link: https://discord.com/channels/1417099416812392641/1503458087619792917 ## Proposed solution Improve group chat autonomy in two layers: 1. Expose more group exchange settings so users can tune the existing system. 2. Explore an agentic speaker-selection/orchestrator step that can read the scene and decide which character should reply next. The smaller first slice could add settings for: - Character exchange frequency. - Maximum autonomous follow-ups. - Minimum user inactivity before character exchanges. - Per-character eagerness or participation weight. - Whether character-to-character exchanges are allowed to continue without a direct user prompt. The larger follow-up could replace or supplement the random talkativeness picker with a speaker-selection agent that decides the most appropriate next speaker from the current group context, then triggers that character's reply. The feature should preserve manual character selection for users who want direct control and include guardrails so one character does not dominate the conversation or unexpected reply chains do not run too long. ## Alternatives considered - Keep the current schedule/status/talkativeness/random-roll system only. This is simpler, but it does not deliver the requested RP-style group flow. - Add only more configuration knobs. This is likely the safest first step, but it still would not make the system scene-aware. - Jump straight to an LLM speaker-selection agent. This better matches the request, but adds more latency, token cost, and product decisions around when the agent should run. ## Additional context This is split out from the broader group autonomy and Discord mirroring request. It should be evaluated independently from server-side background scheduling, unread messages, and two-way Discord bot mirroring. ## 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

@cha1latte commented on GitHub (May 11, 2026):

Labeling this as scope-risk because group chat exchanges already exist, but the request asks to expand them from random talkativeness-based selection toward richer configuration and possible scene-aware speaker orchestration.

Least risky next step is to ship configurable exchange knobs first, then decide whether an LLM speaker-selection agent belongs in the core group chat flow.

<!-- gh-comment-id:4424278005 --> @cha1latte commented on GitHub (May 11, 2026): Labeling this as `scope-risk` because group chat exchanges already exist, but the request asks to expand them from random talkativeness-based selection toward richer configuration and possible scene-aware speaker orchestration. Least risky next step is to ship configurable exchange knobs first, then decide whether an LLM speaker-selection agent belongs in the core group chat flow.
Author
Owner

@SpicyMarinara commented on GitHub (May 17, 2026):

We are merging PRs addressing this.

<!-- gh-comment-id:4470012603 --> @SpicyMarinara commented on GitHub (May 17, 2026): We are merging PRs addressing this.
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#336
No description provided.