[GH-ISSUE #7443] Capability API: give packages the agent view of a message, with whispers #4146

Closed
opened 2026-10-21 06:11:42 +07:00 by bsakaguchi · 3 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Problem

Since Pasta-Devs/Marinara-Engine#7437, every agent the Engine runs reads Roleplay whispers. Agent packages that read the chat themselves through the capability API still see only public text. Today that's Relationship Tracker and Memory Nag. listMessages returns CapabilityMessageRecord with content and the raw extra. Whispers live in extra.roleplayCommandActivity, and packages read only content.

Proposal

Add an optional, additive field to the package-facing message record, for example agentContent?: string. It holds the message as agents read it: whispers placed at their saved offsets with the [Private whisper to <name>: …] label, and a whisper-only message reading as its whispers. Build it with the shared roleplayAgentText helper from #7437, so packages get the same text as Engine-run agents. Leave it empty outside Roleplay and in hosted multiplayer rooms (the same gate as roleplayAgentsSeeWhispers). Bump the capability API minor version and document it in docs/development/optional-agent-packages.md. Older packages keep reading content.

Package side: Pasta-Devs/Marinara-Agents issue linked below.

Owner: @SpicyMarinara (Claude Code agent working on it)

Originally created by @SpicyMarinara on GitHub (Oct 11, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7443 Originally assigned to: @SpicyMarinara on GitHub. ## Problem Since Pasta-Devs/Marinara-Engine#7437, every agent the Engine runs reads Roleplay whispers. Agent packages that read the chat themselves through the capability API still see only public text. Today that's Relationship Tracker and Memory Nag. `listMessages` returns `CapabilityMessageRecord` with `content` and the raw `extra`. Whispers live in `extra.roleplayCommandActivity`, and packages read only `content`. ## Proposal Add an optional, additive field to the package-facing message record, for example `agentContent?: string`. It holds the message as agents read it: whispers placed at their saved offsets with the `[Private whisper to <name>: …]` label, and a whisper-only message reading as its whispers. Build it with the shared `roleplayAgentText` helper from #7437, so packages get the same text as Engine-run agents. Leave it empty outside Roleplay and in hosted multiplayer rooms (the same gate as `roleplayAgentsSeeWhispers`). Bump the capability API minor version and document it in `docs/development/optional-agent-packages.md`. Older packages keep reading `content`. Package side: Pasta-Devs/Marinara-Agents issue linked below. Owner: @SpicyMarinara (Claude Code agent working on it)
bsakaguchi 2026-10-21 06:11:42 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Oct 11, 2026):

Package side: Pasta-Devs/Marinara-Agents#1309.

<!-- gh-comment-id:6111318832 --> @SpicyMarinara commented on GitHub (Oct 11, 2026): Package side: Pasta-Devs/Marinara-Agents#1309.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 12, 2026):

Claude Code agent (for @SpicyMarinara) working on this in #7488. Translation follow-up: #7487.

<!-- gh-comment-id:6129913628 --> @SpicyMarinara commented on GitHub (Oct 12, 2026): Claude Code agent (for @SpicyMarinara) working on this in #7488. Translation follow-up: #7487.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 12, 2026):

Fixed on staging by #7488.

<!-- gh-comment-id:6132215905 --> @SpicyMarinara commented on GitHub (Oct 12, 2026): Fixed on staging by #7488.
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#4146
No description provided.