[GH-ISSUE #900] [Feature]: Add Illustrator-style prompt drafting for automatic Game Mode images #438

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

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

What problem does this solve?

Automatic Game Mode image generation can produce prompts that are repetitive, irrelevant to the current scene, or built from setup text that does not belong in an image prompt. Manually exposing and editing prompts is a workaround, but it can spoil the scene, interrupt play flow, and may consume timeout time while the user edits.

Proposed solution

Add an optional Illustrator-style LLM prompt drafting step for automatic Game Mode images. Instead of only exposing or refining the current prompt, Marinara would ask an LLM to draft the image prompt from scratch using predefined image-prompt instructions plus recent scene context and, where appropriate, triggered lorebook/context data.

The option should be hands-off once enabled: automatic backgrounds/portraits would get a context-aware image prompt without requiring the player to review and rewrite it. It is acceptable for this to add an extra API call, so it should be opt-in.

The implementation should also consider positive/negative prompt separation, since the current combined output can produce poor image results for some generation backends.

Alternatives considered

Existing options include exposing image prompts before sending and using the prompt override path. Those help users inspect or manually alter prompts, but they do not solve the hands-off automatic prompt quality problem and can spoil current-scene information.

The manual Illustrator button can produce more scene-adherent prompts, but it is not the same as automatic Game Mode asset generation for backgrounds and portraits.

Additional context

Discord source: noodle clarified the request as "prompt designed from scratch by the LLM" in a similar way to the Illustrator agent, not merely a refinement pass over the current prompt. Other users reported that current Game Mode image prompts can be nearly identical across scenes, include irrelevant initial scenario text, hit token limits, lack useful scene detail, and lack positive/negative prompt separation.

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 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/900 ## What problem does this solve? Automatic Game Mode image generation can produce prompts that are repetitive, irrelevant to the current scene, or built from setup text that does not belong in an image prompt. Manually exposing and editing prompts is a workaround, but it can spoil the scene, interrupt play flow, and may consume timeout time while the user edits. ## Proposed solution Add an optional Illustrator-style LLM prompt drafting step for automatic Game Mode images. Instead of only exposing or refining the current prompt, Marinara would ask an LLM to draft the image prompt from scratch using predefined image-prompt instructions plus recent scene context and, where appropriate, triggered lorebook/context data. The option should be hands-off once enabled: automatic backgrounds/portraits would get a context-aware image prompt without requiring the player to review and rewrite it. It is acceptable for this to add an extra API call, so it should be opt-in. The implementation should also consider positive/negative prompt separation, since the current combined output can produce poor image results for some generation backends. ## Alternatives considered Existing options include exposing image prompts before sending and using the prompt override path. Those help users inspect or manually alter prompts, but they do not solve the hands-off automatic prompt quality problem and can spoil current-scene information. The manual Illustrator button can produce more scene-adherent prompts, but it is not the same as automatic Game Mode asset generation for backgrounds and portraits. ## Additional context Discord source: noodle clarified the request as "prompt designed from scratch by the LLM" in a similar way to the Illustrator agent, not merely a refinement pass over the current prompt. Other users reported that current Game Mode image prompts can be nearly identical across scenes, include irrelevant initial scenario text, hit token limits, lack useful scene detail, and lack positive/negative prompt separation. ## 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 15, 2026):

Triage note: labeling this as \scope-risk\ because it is aligned with Game Mode image generation, but it adds an opt-in LLM call and touches the automatic image prompt pipeline, cost/latency behavior, and prompt structure.\n\nThe least risky next step is to define a first slice for one automatic asset type and decide how the drafted prompt, positive prompt, and negative prompt should be represented.

<!-- gh-comment-id:4463381012 --> @cha1latte commented on GitHub (May 15, 2026): Triage note: labeling this as \\scope-risk\\ because it is aligned with Game Mode image generation, but it adds an opt-in LLM call and touches the automatic image prompt pipeline, cost/latency behavior, and prompt structure.\n\nThe least risky next step is to define a first slice for one automatic asset type and decide how the drafted prompt, positive prompt, and negative prompt should be represented.
Author
Owner

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

That's up to the models the users use.

<!-- gh-comment-id:4470090111 --> @SpicyMarinara commented on GitHub (May 17, 2026): That's up to the models the users use.
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#438
No description provided.