[GH-ISSUE #470] [Feature]: Writing Agent Output Debug/Control UI #210

Closed
opened 2026-10-20 17:26:17 +07:00 by bsakaguchi · 4 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

When Writing Agents like Prose Guardian or Narrative Director produce roleplay continuation instead of clean critique/instructions, the final response can appear to ignore the user, skip ahead, or respond to context that was not actually said.

Right now, users have limited visibility into whether the issue is caused by the final generation model, the assembled prompt, or one of the advisory Writing Agent outputs. This makes troubleshooting model/prompt configuration difficult, especially on mobile or Termux installs.

Proposed solution

Add a debug/control UI for Writing Agent outputs.

Users should be able to:

  • View the raw output from Prose Guardian, Narrative Director, and similar Writing Agents before or during generation troubleshooting.
  • Rerun an individual Writing Agent without rerunning the entire response flow.
  • Edit a Writing Agent output before final generation, when applicable.
  • Disable or exclude a specific Writing Agent output for a retry.
  • See guidance that Writing Agents should produce critique/instructions only, not dialogue, narration, or scene continuation.

This would make it easier to diagnose when an advisory agent is behaving like a co-writer instead of a guidance layer.

Alternatives considered

Users can currently try changing models, lowering temperature, or editing Writing Agent prompts to be stricter. For example, they can instruct agents to output bullet-point critique only, with no dialogue, narration, or roleplay continuation.

However, without being able to inspect the raw Writing Agent outputs directly, it is hard to confirm whether those agents are actually causing the final response behavior.

Additional context

Reported by Lewis.

Environment from the report:

  • OS: Android 16
  • Install type: Termux
  • Marinara Engine version: v1.5.8
  • Models mentioned: GLM 5.1 and DeepSeek V4
  • Writing Agents mentioned: Prose Guardian and Narrative Director, currently using GLM 5.1

The thread concluded this is best classified as a feature request with a possible user/model configuration component. The likely issue is that advisory Writing Agents may sometimes continue the RP instead of producing clean critique, which can affect the final generated response.

Suggested user-side workaround for now:

  • Try a stricter model for Prose Guardian / Narrative Director.
  • Lower Writing Agent temperature.
  • Update Writing Agent prompts to require bullet-point critique/instructions only.
  • Avoid dialogue, narration, scene continuation, or in-character writing in agent outputs.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @cha1latte on GitHub (May 6, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/470 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? When Writing Agents like Prose Guardian or Narrative Director produce roleplay continuation instead of clean critique/instructions, the final response can appear to ignore the user, skip ahead, or respond to context that was not actually said. Right now, users have limited visibility into whether the issue is caused by the final generation model, the assembled prompt, or one of the advisory Writing Agent outputs. This makes troubleshooting model/prompt configuration difficult, especially on mobile or Termux installs. ## Proposed solution Add a debug/control UI for Writing Agent outputs. Users should be able to: - View the raw output from Prose Guardian, Narrative Director, and similar Writing Agents before or during generation troubleshooting. - Rerun an individual Writing Agent without rerunning the entire response flow. - Edit a Writing Agent output before final generation, when applicable. - Disable or exclude a specific Writing Agent output for a retry. - See guidance that Writing Agents should produce critique/instructions only, not dialogue, narration, or scene continuation. This would make it easier to diagnose when an advisory agent is behaving like a co-writer instead of a guidance layer. ## Alternatives considered Users can currently try changing models, lowering temperature, or editing Writing Agent prompts to be stricter. For example, they can instruct agents to output bullet-point critique only, with no dialogue, narration, or roleplay continuation. However, without being able to inspect the raw Writing Agent outputs directly, it is hard to confirm whether those agents are actually causing the final response behavior. ## Additional context [Reported by Lewis](https://discord.com/channels/1417099416812392641/1501378481357852833). Environment from the report: - OS: Android 16 - Install type: Termux - Marinara Engine version: v1.5.8 - Models mentioned: GLM 5.1 and DeepSeek V4 - Writing Agents mentioned: Prose Guardian and Narrative Director, currently using GLM 5.1 The thread concluded this is best classified as a feature request with a possible user/model configuration component. The likely issue is that advisory Writing Agents may sometimes continue the RP instead of producing clean critique, which can affect the final generated response. Suggested user-side workaround for now: - Try a stricter model for Prose Guardian / Narrative Director. - Lower Writing Agent temperature. - Update Writing Agent prompts to require bullet-point critique/instructions only. - Avoid dialogue, narration, scene continuation, or in-character writing in agent outputs. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:26:17 +07:00
Author
Owner

@Xelvanis commented on GitHub (May 6, 2026):

Hmm, my branch only addresses some of these points. It lets you re-run/edit Agent output so you can use it for regens/swipes, but yeah, having some sort of actual prompt inspect before sending for troubleshooting would be better.

<!-- gh-comment-id:4389428546 --> @Xelvanis commented on GitHub (May 6, 2026): Hmm, my branch only addresses some of these points. It lets you re-run/edit Agent output so you can use it for regens/swipes, but yeah, having some sort of actual prompt inspect before sending for troubleshooting would be better.
Author
Owner

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

Triage note: labeling this as scope-risk because the requested Writing Agent debug/control UI includes viewing, rerunning, editing, disabling, and guiding several agent outputs, which creates a broad troubleshooting surface.

Least risky next step is to start with read-only raw output visibility before adding mutation controls like edit, rerun, or exclude.

<!-- gh-comment-id:4392822466 --> @cha1latte commented on GitHub (May 6, 2026): Triage note: labeling this as `scope-risk` because the requested Writing Agent debug/control UI includes viewing, rerunning, editing, disabling, and guiding several agent outputs, which creates a broad troubleshooting surface. Least risky next step is to start with read-only raw output visibility before adding mutation controls like edit, rerun, or exclude.
Author
Owner

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

I'll add a toggle in Agents in Chat Settings of the Roleplay mode that, when enabled, exposes what Writer agents generated, allowing you to edit those before you start the main generation.

<!-- gh-comment-id:4414965446 --> @SpicyMarinara commented on GitHub (May 10, 2026): I'll add a toggle in Agents in Chat Settings of the Roleplay mode that, when enabled, exposes what Writer agents generated, allowing you to edit those before you start the main generation.
Author
Owner

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

Implemented. Roleplay/Visual Novel Chat Settings now has a Writer Agents review toggle. When enabled, fresh generations pause after reviewable writer pre-generation agents run, show their prompt injections in an editable modal, and continue the main reply with the edited guidance without duplicating the user message.\n\nValidation:\n- pnpm --filter @marinara-engine/client lint\n- pnpm --filter @marinara-engine/server lint

<!-- gh-comment-id:4415176782 --> @SpicyMarinara commented on GitHub (May 10, 2026): Implemented. Roleplay/Visual Novel Chat Settings now has a Writer Agents review toggle. When enabled, fresh generations pause after reviewable writer pre-generation agents run, show their prompt injections in an editable modal, and continue the main reply with the edited guidance without duplicating the user message.\n\nValidation:\n- pnpm --filter @marinara-engine/client lint\n- pnpm --filter @marinara-engine/server lint
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#210
No description provided.