[GH-ISSUE #8148] [Feature]: Explain custom-agent limits and expose per-chat lorebook attachments #7583

Closed
opened 2026-10-24 04:04:29 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

The New Custom Agent editor does not explain that custom agents may lack official agents' dedicated backend functionality. Users can reasonably expect a prompt/configuration-based agent to support every official feature, even when those features depend on Engine-owned code.

Custom agents also need to participate in the per-chat lorebook attachment workflow requested in #8145, so a selected lorebook can provide extra reference information for that particular agent.

Proposed solution

Dismissible custom-agent information

  • In New Custom Agent, place an informational warning at the very top of the form, above Description.
  • Style it with the user's current accent color and readable theme-aware text/background.
  • Include an accessible X button to dismiss it without closing the editor or changing the draft.
  • Explain that custom agents have more limited functionality than official agents because some official features rely on dedicated backend code that custom-agent prompts/settings cannot change.
  • Suggested copy: “Custom agents may have fewer features than official agents. Some official functions rely on dedicated backend code and cannot be added or changed through a custom agent's prompt and settings.”
  • Localize the notice and dismiss-button accessibility text.

Lorebook attachments for custom agents

  • Explicitly include custom agents in #8145's attachment controls, rather than restricting them to official agents.
  • Keep the previously requested location and scope: Chat Settings → Agents → the specific custom agent's menu, saved per chat and per agent.
  • Show “Attach lorebook for the specific agent”, off by default. Enabling it reveals a dropdown below to select one lorebook.
  • Use matching entries as additional reference context for that agent, following ordinary lorebook activation rules. Do not inject the whole book unconditionally.
  • Preserve agent-only scope and the grouped-agent shared-context exception described in #8145.
  • Reuse and align the existing custom-agent lorebook scanning/source controls; avoid a second conflicting attachment setting. Reading reference entries must not require Lorebook Writer permissions.

Alternatives considered

Documentation alone is easy to miss while creating an agent. A persistent, non-dismissible warning would obstruct the editor.

Custom agents already have a global editor setting for lorebook triggering and source selection. That provides reusable functionality, but does not replace the requested per-chat attachment flow.

Additional context

Requested by and assigned to @SpicyMarinara. Related: #8145. This issue records the requested UI/settings work; implementation has not started.

Engine owns this change: the custom-agent editor, chat-scoped settings and prompt/context orchestration are host integration.

Investigation pointers from the current checkout:

  • packages/client/src/components/agents/AgentEditor.tsx: new-agent form starts with Description; existing custom-agent controls include “Trigger lorebooks for agent calls” and lorebook context sources.
  • packages/server/src/services/generation/agent-lorebook-triggers.ts and agent-specific context injection provide existing read/trigger mechanisms.
  • Keep this feature distinct from Lorebook Writer, which authorizes writing lorebook content.

Suggested verification:

  • The notice appears above Description in new custom-agent creation, matches the selected accent in dark/light themes, and dismisses without losing draft changes.
  • The notice and X button fit desktop/mobile layouts and support keyboard/screen-reader use.
  • Custom-agent lorebook attachments are off by default, show the dropdown when enabled, persist independently per chat/agent, and obey the isolation/grouping rules in #8145.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8148 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? The New Custom Agent editor does not explain that custom agents may lack official agents' dedicated backend functionality. Users can reasonably expect a prompt/configuration-based agent to support every official feature, even when those features depend on Engine-owned code. Custom agents also need to participate in the per-chat lorebook attachment workflow requested in #8145, so a selected lorebook can provide extra reference information for that particular agent. ## Proposed solution ### Dismissible custom-agent information - In **New Custom Agent**, place an informational warning at the **very top of the form, above Description**. - Style it with the user's current **accent color** and readable theme-aware text/background. - Include an accessible **X** button to dismiss it without closing the editor or changing the draft. - Explain that custom agents have more limited functionality than official agents because some official features rely on dedicated backend code that custom-agent prompts/settings cannot change. - Suggested copy: “Custom agents may have fewer features than official agents. Some official functions rely on dedicated backend code and cannot be added or changed through a custom agent's prompt and settings.” - Localize the notice and dismiss-button accessibility text. ### Lorebook attachments for custom agents - Explicitly include **custom agents** in #8145's attachment controls, rather than restricting them to official agents. - Keep the previously requested location and scope: **Chat Settings → Agents → the specific custom agent's menu**, saved **per chat and per agent**. - Show **“Attach lorebook for the specific agent”**, **off by default**. Enabling it reveals a dropdown below to select **one lorebook**. - Use matching entries as additional reference context for that agent, following ordinary lorebook activation rules. Do not inject the whole book unconditionally. - Preserve agent-only scope and the grouped-agent shared-context exception described in #8145. - Reuse and align the existing custom-agent lorebook scanning/source controls; avoid a second conflicting attachment setting. Reading reference entries must not require Lorebook Writer permissions. ## Alternatives considered Documentation alone is easy to miss while creating an agent. A persistent, non-dismissible warning would obstruct the editor. Custom agents already have a global editor setting for lorebook triggering and source selection. That provides reusable functionality, but does not replace the requested per-chat attachment flow. ## Additional context Requested by and assigned to **@SpicyMarinara**. Related: #8145. This issue records the requested UI/settings work; implementation has not started. Engine owns this change: the custom-agent editor, chat-scoped settings and prompt/context orchestration are host integration. Investigation pointers from the current checkout: - `packages/client/src/components/agents/AgentEditor.tsx`: new-agent form starts with Description; existing custom-agent controls include “Trigger lorebooks for agent calls” and lorebook context sources. - `packages/server/src/services/generation/agent-lorebook-triggers.ts` and agent-specific context injection provide existing read/trigger mechanisms. - Keep this feature distinct from **Lorebook Writer**, which authorizes writing lorebook content. Suggested verification: - The notice appears above Description in new custom-agent creation, matches the selected accent in dark/light themes, and dismisses without losing draft changes. - The notice and X button fit desktop/mobile layouts and support keyboard/screen-reader use. - Custom-agent lorebook attachments are off by default, show the dropdown when enabled, persist independently per chat/agent, and obey the isolation/grouping rules in #8145. ## Template check - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

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

Codex is implementing this in the dedicated agent UI lane, tracked by draft PR #8150 and assigned to @SpicyMarinara. That PR covers mode filtering (#8146), custom-only Copy actions (#8149), and only the dismissible new-agent notice portion of #8148. Per-chat lorebook controls remain in a separate coordinated lane.

<!-- gh-comment-id:6361015467 --> @SpicyMarinara commented on GitHub (Oct 23, 2026): Codex is implementing this in the dedicated agent UI lane, tracked by draft PR #8150 and assigned to @SpicyMarinara. That PR covers mode filtering (#8146), custom-only Copy actions (#8149), and only the dismissible new-agent notice portion of #8148. Per-chat lorebook controls remain in a separate coordinated lane.
Author
Owner

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

@SpicyMarinara (Codex) is implementing the per-chat lorebook attachment flow in #8153. It covers official writing/tracking agents and custom agents, reusing existing trigger machinery and preserving agent/group context boundaries. The custom-agent creation notice portion of #8148 is separately owned by #8150. No contributor-covered issue work is being duplicated.

<!-- gh-comment-id:6361085861 --> @SpicyMarinara commented on GitHub (Oct 23, 2026): @SpicyMarinara (Codex) is implementing the per-chat lorebook attachment flow in #8153. It covers official writing/tracking agents and custom agents, reusing existing trigger machinery and preserving agent/group context boundaries. The custom-agent creation notice portion of #8148 is separately owned by #8150. No contributor-covered issue work is being duplicated.
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#7583
No description provided.