[GH-ISSUE #789] [Issue]: Pre-generation custom agent prompt tags use stale names and influence model behavior #381

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

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

Originally assigned to: @cha1latte on GitHub.

Summary

Custom agents running in Pre-Generation mode and sending their output as a prompt section appear to wrap that output in a generated tag that uses the agent's original name instead of its current renamed value. The tag text is also visible enough to the main LLM that it can influence reasoning.

Source: https://discord.com/channels/1417099416812392641/1503992985530925067

Expected behavior

Pre-generation custom agent prompt sections should use current agent metadata when generating prompt-section tags. The tag should avoid unintentionally influencing the main model's interpretation of the custom agent output, or the custom agent creator should have enough control over the tag/name used for the section.

Actual behavior

The generated prompt section tag uses the agent name test-agent, which was the original name the reporter created the agent with, even though the agent was later renamed. The main LLM appears to consider words inside that tag when deciding how seriously to treat the prompt section.

Example output:

<custom-test-agent-a9e721ff-9ea8-4c8a-ba9d-5f3885fb30ba>
[INSTRUCTION FROM PROBABILITY ENGINE: Actions are not contested.]
</custom-test-agent-a9e721ff-9ea8-4c8a-ba9d-5f3885fb30ba>

Steps to reproduce

  1. In RP Mode, create a custom agent with a name such as test-agent.
  2. Rename the custom agent to a different current name.
  3. Configure the custom agent to run in Pre-Generation mode.
  4. Configure it to send output as a prompt section for the main prompt.
  5. Start or continue an RP session that runs the custom agent.
  6. Inspect the prompt section wrapper used for the agent output.
  7. Observe that the tag still includes the original agent name.
  8. Inspect model reasoning/output where available and observe whether words in the generated tag affect how the main model treats the prompt section.

Marinara Engine version

Not specified.

Install type

Other

OS + version

Not specified.

Browser or app shell

Not specified.

Screenshots or video

Not a visual/UI issue.

Logs

Not provided.

Additional context

Reporter's two noted problems:

  1. The generated tag uses the old agent name instead of the current renamed agent name.
  2. The main LLM judged text in the tag when deciding what to do; in the example, seeing test in the tag made it treat the section as safe to ignore because it looked like a test tag.

Reporter suggested that the custom agent creator should have full control over this, likely by using the current agent name.

Template check

  • I provided the required summary, behavior, reproduction, and environment details.
  • If this is a visual/UI bug, blank screen, layout issue, mobile/responsive issue, incorrect image or sprite, broken animation, or unexpected error state, I attached screenshots or video.
Originally created by @cha1latte on GitHub (May 13, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/789 Originally assigned to: @cha1latte on GitHub. ## Summary Custom agents running in Pre-Generation mode and sending their output as a prompt section appear to wrap that output in a generated tag that uses the agent's original name instead of its current renamed value. The tag text is also visible enough to the main LLM that it can influence reasoning. Source: https://discord.com/channels/1417099416812392641/1503992985530925067 ## Expected behavior Pre-generation custom agent prompt sections should use current agent metadata when generating prompt-section tags. The tag should avoid unintentionally influencing the main model's interpretation of the custom agent output, or the custom agent creator should have enough control over the tag/name used for the section. ## Actual behavior The generated prompt section tag uses the agent name `test-agent`, which was the original name the reporter created the agent with, even though the agent was later renamed. The main LLM appears to consider words inside that tag when deciding how seriously to treat the prompt section. Example output: ```xml <custom-test-agent-a9e721ff-9ea8-4c8a-ba9d-5f3885fb30ba> [INSTRUCTION FROM PROBABILITY ENGINE: Actions are not contested.] </custom-test-agent-a9e721ff-9ea8-4c8a-ba9d-5f3885fb30ba> ``` ## Steps to reproduce 1. In RP Mode, create a custom agent with a name such as `test-agent`. 2. Rename the custom agent to a different current name. 3. Configure the custom agent to run in Pre-Generation mode. 4. Configure it to send output as a prompt section for the main prompt. 5. Start or continue an RP session that runs the custom agent. 6. Inspect the prompt section wrapper used for the agent output. 7. Observe that the tag still includes the original agent name. 8. Inspect model reasoning/output where available and observe whether words in the generated tag affect how the main model treats the prompt section. ## Marinara Engine version Not specified. ## Install type Other ## OS + version Not specified. ## Browser or app shell Not specified. ## Screenshots or video Not a visual/UI issue. ## Logs Not provided. ## Additional context Reporter's two noted problems: 1. The generated tag uses the old agent name instead of the current renamed agent name. 2. The main LLM judged text in the tag when deciding what to do; in the example, seeing `test` in the tag made it treat the section as safe to ignore because it looked like a test tag. Reporter suggested that the custom agent creator should have full control over this, likely by using the current agent name. ## Template check - [ ] I provided the required summary, behavior, reproduction, and environment details. - [ ] If this is a visual/UI bug, blank screen, layout issue, mobile/responsive issue, incorrect image or sprite, broken animation, or unexpected error state, I attached screenshots or video.
bsakaguchi 2026-10-20 17:28:14 +07:00
  • closed this issue
  • added the
    bug
    label
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#381
No description provided.