📌 Pin system messages #34

Open
opened 2025-05-14 18:01:51 -04:00 by milo · 0 comments
Owner

System Message Pinning for Persistent Context

Goal: Let Delta reference important messages that are pinned in a channel to enrich context beyond recent chat history.

Features:

  • Automatically fetch and include pinned messages in context
  • Only include messages from bot or privileged users
  • Configurable max pinned messages (context.pins_max in settings.yml)
  • Option to format and label them in the prompt as [Pinned Notes]

Implementation Notes:

  • Use Discord API channel.pins() to fetch
  • Store and update pin cache on startup
  • Include in prompt above recent chat context
  • Add command: !pincontext on/off, !pincontext show, !pincontext refresh

Example Prompt Injection:

Delta is the server’s chaotic mascot.

Milo prefers sassy responses to roasting.

Benefits:

  • Helps Delta keep tone and purpose clear
  • Avoids forgetting core server lore or personality expectations
## System Message Pinning for Persistent Context **Goal**: Let Delta reference important messages that are pinned in a channel to enrich context beyond recent chat history. ### Features: - Automatically fetch and include pinned messages in context - Only include messages from bot or privileged users - Configurable max pinned messages (`context.pins_max` in `settings.yml`) - Option to format and label them in the prompt as `[Pinned Notes]` ### Implementation Notes: - Use Discord API `channel.pins()` to fetch - Store and update pin cache on startup - Include in prompt above recent chat context - Add command: `!pincontext on/off`, `!pincontext show`, `!pincontext refresh` ### Example Prompt Injection: ``` Delta is the server’s chaotic mascot. Milo prefers sassy responses to roasting. ``` ### Benefits: - Helps Delta keep tone and purpose clear - Avoids forgetting core server lore or personality expectations
milo added this to the Beta Build milestone 2025-05-14 18:01:51 -04:00
milo added the
💡feature
label 2025-05-14 18:01:51 -04:00
milo self-assigned this 2025-05-14 18:01:51 -04:00
Sign in to join this conversation.
No description provided.