Add OnlyOnDemand plugin flag to defer expensive plugins#88
Open
Add OnlyOnDemand plugin flag to defer expensive plugins#88
Conversation
Plugins configured with OnlyOnDemand=true are skipped during normal plugin runs and force reruns with an empty plugin list. They are only executed when explicitly requested by name in the RerunPlugins handler. Skipped on-demand plugins get a "deferred" status in the DB so clients can display them as available but not yet requested. https://claude.ai/code/session_01NKp4J384seA5EbiaZyF4Kc
Add OnlyOnDemand configuration option documentation with examples and explanation of how on-demand plugins behave during normal runs versus explicit rerun requests. https://claude.ai/code/session_01NKp4J384seA5EbiaZyF4Kc
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
Adds support for marking plugins as "on-demand only" via a new
OnlyOnDemandconfiguration flag. When enabled, these plugins are skipped during normal runs and only executed when explicitly requested by name. This allows expensive or resource-intensive plugins to be deferred until needed while still being discoverable via a "deferred" status in the database.Changes
OnlyOnDemandboolean field toPluginstruct in configRunPluginsForce()to skip on-demand plugins unless explicitly requested by nameParseConfigForTest()helper for testing config parsingTest Plan
OnlyOnDemanddefaults to false in config parsinggo test ./...passes with new test caseshttps://claude.ai/code/session_01NKp4J384seA5EbiaZyF4Kc