[GH-ISSUE #6561] [Feature]: Configurable Agent Execution Order / Agent Queue #3676

Closed
opened 2026-10-21 06:05:48 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @scavru on GitHub (Sep 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6561

Originally assigned to: @SpicyMarinara on GitHub.

It would be useful to have a configurable agent execution order in the chat settings for Conversation, Roleplay, and Game modes.

Currently, when multiple agents are enabled, users may want more control over which agents run first and which agents process the result of previous agents.

I suggest adding an Agent Queue / Execution Order section to the chat settings where users can arrange enabled agents in a custom order.

For example:

My Custom Agent
Knowledge Retrieval
Lorebook Keeper
World State
Narrative Director
Prose Guardian

The important part is that the order should be user-configurable, including both built-in and custom agents.

Expected behavior
Drag-and-drop agents to change their execution order.
Built-in and custom agents can be freely mixed.
The queue applies independently to each chat.
Optionally provide a global/default queue that new chats inherit.
Disabled agents are skipped.
If an agent produces output/state that is used by another agent, the next agent in the queue should receive the updated context/state.
Ideally, the UI should show which phase/stage each agent belongs to, while still allowing the user to control the order where technically possible.
Example use case

A user may have a custom agent that modifies or prepares context before the built-in agents process it:

Custom Context Agent → Knowledge Retrieval → Lorebook Keeper → World State → Narrative Director

Another user may want the built-in processing first and their custom agent as the final post-processor:

Knowledge Retrieval → Lorebook Keeper → World State → Narrative Director → Custom Post-Processor

This would make custom agents significantly more flexible and allow users to build their own agent pipelines without having to change the underlying agent implementation.

UI idea

In Chat Settings:

Agents → Execution Order

☰ Custom Context Agent
☰ Knowledge Retrieval
☰ Lorebook Keeper
☰ World State
☰ Narrative Director

with drag-and-drop reordering and an option such as Reset to default order.

This could work particularly well for Conversation, Roleplay, and Game modes, since Marinara already supports different agent-enabled workflows across these modes.

Originally created by @scavru on GitHub (Sep 23, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6561 Originally assigned to: @SpicyMarinara on GitHub. It would be useful to have a configurable agent execution order in the chat settings for Conversation, Roleplay, and Game modes. Currently, when multiple agents are enabled, users may want more control over which agents run first and which agents process the result of previous agents. I suggest adding an Agent Queue / Execution Order section to the chat settings where users can arrange enabled agents in a custom order. For example: My Custom Agent Knowledge Retrieval Lorebook Keeper World State Narrative Director Prose Guardian The important part is that the order should be user-configurable, including both built-in and custom agents. Expected behavior Drag-and-drop agents to change their execution order. Built-in and custom agents can be freely mixed. The queue applies independently to each chat. Optionally provide a global/default queue that new chats inherit. Disabled agents are skipped. If an agent produces output/state that is used by another agent, the next agent in the queue should receive the updated context/state. Ideally, the UI should show which phase/stage each agent belongs to, while still allowing the user to control the order where technically possible. Example use case A user may have a custom agent that modifies or prepares context before the built-in agents process it: Custom Context Agent → Knowledge Retrieval → Lorebook Keeper → World State → Narrative Director Another user may want the built-in processing first and their custom agent as the final post-processor: Knowledge Retrieval → Lorebook Keeper → World State → Narrative Director → Custom Post-Processor This would make custom agents significantly more flexible and allow users to build their own agent pipelines without having to change the underlying agent implementation. UI idea In Chat Settings: Agents → Execution Order ☰ Custom Context Agent ☰ Knowledge Retrieval ☰ Lorebook Keeper ☰ World State ☰ Narrative Director with drag-and-drop reordering and an option such as Reset to default order. This could work particularly well for Conversation, Roleplay, and Game modes, since Marinara already supports different agent-enabled workflows across these modes.
bsakaguchi 2026-10-21 06:05:48 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 23, 2026):

Maybe in the future, for now, agents on the same pipeline get grouped together anyway as one call, so there is no point in deciding the queue.

<!-- gh-comment-id:5791309715 --> @SpicyMarinara commented on GitHub (Sep 23, 2026): Maybe in the future, for now, agents on the same pipeline get grouped together anyway as one call, so there is no point in deciding the queue.
Author
Owner

@scavru commented on GitHub (Sep 23, 2026):

I’d still really like to have this level of control over the agent order.

For example, in my use case I may have a pipeline like:

Clothing consistency agent → selfie prompt modification agent → image generation agent → message cleanup agent

These agents are not interchangeable and can’t really be treated as a single grouped call, because the output of one agent is specifically meant to become the input for the next one.

I understand having a default order for the built-in agents, and that should definitely remain the default. I’m mainly suggesting an option to override that order when custom agents are involved.

So ideally:

built-in agents have the default order you define;
users can reorder agents in chat settings if they need to;
custom and built-in agents can be mixed in the same pipeline;
the default order remains unchanged unless the user explicitly customizes it.

For more complex workflows, having explicit sequential execution would make the agent system much more useful.

<!-- gh-comment-id:5792006601 --> @scavru commented on GitHub (Sep 23, 2026): I’d still really like to have this level of control over the agent order. For example, in my use case I may have a pipeline like: Clothing consistency agent → selfie prompt modification agent → image generation agent → message cleanup agent These agents are not interchangeable and can’t really be treated as a single grouped call, because the output of one agent is specifically meant to become the input for the next one. I understand having a default order for the built-in agents, and that should definitely remain the default. I’m mainly suggesting an option to override that order when custom agents are involved. So ideally: built-in agents have the default order you define; users can reorder agents in chat settings if they need to; custom and built-in agents can be mixed in the same pipeline; the default order remains unchanged unless the user explicitly customizes it. For more complex workflows, having explicit sequential execution would make the agent system much more useful.
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#3676
No description provided.