[GH-ISSUE #1102] [Feature]: Add keyword activation filters for custom agents #543

Closed
opened 2026-10-20 17:30:00 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @cha1latte on GitHub.

What problem does this solve?

Custom agents currently run on a simple interval, such as once every N messages. This can make active custom agents run even when the recent narrative context has nothing relevant for them to do, adding unnecessary latency, cost, and prompt activity.

This is a narrowed QoL slice from the broader custom-agent trigger request in #1073.

Source: Discord forum post by Albatross Ascot in #marinara-engine-bugs-features, posted May 20, 2026 at 6:01 PM. Waylander also shared a local prototype screenshot showing activation keywords, scan depth, whole-word matching, case sensitivity, regex, and selective mode.

Proposed solution

Add keyword activation filters for custom agents.

For the first slice:

  • Custom agents can define activation keywords.
  • The agent is skipped unless at least one configured keyword appears in the last N messages.
  • Users can configure the scan depth.

Out of scope for this first slice:

  • Tracker-based triggers.
  • Agent-only lorebook entries.
  • Built-in/existing agent behavior changes.
  • A complex condition builder.
  • Broader prompt-pipeline scheduling rules beyond skipping non-matching custom agents.

Alternatives considered

Keep custom agent frequency controlled only by run interval.

The broader version in #1073 covers lorebook-like trigger conditions, tracker-based triggers, and agent-only lorebook entries, but that larger scope needs product/architecture approval before implementation.

Additional context

The smallest useful behavior is keyword-gated custom agents only. Regex, whole-word matching, and case sensitivity could be added only if they reuse existing keyword-matching patterns without expanding the first slice.

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 22, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1102 Originally assigned to: @cha1latte on GitHub. ## What problem does this solve? Custom agents currently run on a simple interval, such as once every N messages. This can make active custom agents run even when the recent narrative context has nothing relevant for them to do, adding unnecessary latency, cost, and prompt activity. This is a narrowed QoL slice from the broader custom-agent trigger request in #1073. Source: Discord forum post by Albatross Ascot in `#marinara-engine-bugs-features`, posted May 20, 2026 at 6:01 PM. Waylander also shared a local prototype screenshot showing activation keywords, scan depth, whole-word matching, case sensitivity, regex, and selective mode. ## Proposed solution Add keyword activation filters for custom agents. For the first slice: - Custom agents can define activation keywords. - The agent is skipped unless at least one configured keyword appears in the last N messages. - Users can configure the scan depth. Out of scope for this first slice: - Tracker-based triggers. - Agent-only lorebook entries. - Built-in/existing agent behavior changes. - A complex condition builder. - Broader prompt-pipeline scheduling rules beyond skipping non-matching custom agents. ## Alternatives considered Keep custom agent frequency controlled only by run interval. The broader version in #1073 covers lorebook-like trigger conditions, tracker-based triggers, and agent-only lorebook entries, but that larger scope needs product/architecture approval before implementation. ## Additional context The smallest useful behavior is keyword-gated custom agents only. Regex, whole-word matching, and case sensitivity could be added only if they reuse existing keyword-matching patterns without expanding the first slice. ## 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 22, 2026):

Triage note: labeling this as normal-scope because this narrows the broader custom-agent trigger idea to keyword-gated skipping for custom agents only, leaving tracker triggers, agent-only lorebook entries, built-in agent changes, and complex condition logic out of scope.

Keep this in the QoL backlog as the smallest actionable slice of #1073.

<!-- gh-comment-id:4521917021 --> @cha1latte commented on GitHub (May 22, 2026): Triage note: labeling this as `normal-scope` because this narrows the broader custom-agent trigger idea to keyword-gated skipping for custom agents only, leaving tracker triggers, agent-only lorebook entries, built-in agent changes, and complex condition logic out of scope. Keep this in the QoL backlog as the smallest actionable slice of #1073.
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#543
No description provided.