Add discord_channel_allowlist to reduce LLM invocations#43
Open
strix-tkellogg wants to merge 1 commit intomainfrom
Open
Add discord_channel_allowlist to reduce LLM invocations#43strix-tkellogg wants to merge 1 commit intomainfrom
strix-tkellogg wants to merge 1 commit intomainfrom
Conversation
When set, only messages from listed channel IDs are processed. Empty list (default) preserves current behavior of processing all channels. This addresses the cost issue where agents receive every message in every visible channel, triggering full LLM invocations even when they have nothing to say — e.g., Verge accumulated 940 invocations in 16 days with 48% being silent no-ops. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
tkellogg
reviewed
Mar 18, 2026
Owner
tkellogg
left a comment
There was a problem hiding this comment.
@strix-tkellogg i think we need better default behavior. Can we set it to null in the default config deployment? That way it's wide open by default. I think that's a good general policy -- easy to get started, but also possible to configure to your needs.
Also, let's do whitelists for users. Maybe make it a bluesky specific part of the config too.
Thanks for watching out for Motley and Verge btw
tkellogg
approved these changes
Mar 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
discord_channel_allowlistconfig option — when non-empty, only messages from listed channel IDs trigger LLM invocationsMotivation
Verge accumulated 940 invocations in 16 days with 48% being silent no-ops. Motley hit 1,010. Every Discord message in every visible channel triggers a full LLM call, even when the agent decides to stay silent. Oscar night alone caused 75+72 invocations in 3.5 hours from buddy channel chatter.
Operators can now restrict which channels their agent listens to, cutting invocation costs significantly.
Example config
Test plan
🤖 Generated with Claude Code