add Claude-specific effort level support#157
Open
eggfriedrice24 wants to merge 4 commits intoThePrimeagen:masterfrom
Open
add Claude-specific effort level support#157eggfriedrice24 wants to merge 4 commits intoThePrimeagen:masterfrom
eggfriedrice24 wants to merge 4 commits intoThePrimeagen:masterfrom
Conversation
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
_get_effort_levels()to BaseProvider (nil) and ClaudeCodeProvider (low,medium,high,max)set_effort/get_effortpublic API with runtime validationselect_effort()pickers for both telescope and fzf-lua_build_commandand_get_effort_levelsTest plan
make pr_readypasses (lint, tests, format)_99.set_effort("high")then trigger search — verify--effort highin command_99.set_effort("foo")— verify error notification_99.set_effort(nil)— verify effort clearedset_effort— verify warningNote
Medium Risk
Medium risk: changes provider request command construction and adds new public API state (
set_effort/get_effort) that can affect execution for Claude runs; other providers are guarded to warn/ignore.Overview
Adds Claude-specific “effort level” support end-to-end: a new provider hook
BaseProvider._get_effort_levels()(defaultnil) andClaudeCodeProvider._get_effort_levels()(low|medium|high|max), plus_99.set_effort()/_99.get_effort()with runtime validation and provider capability warnings.Updates
ClaudeCodeProvider._build_command()to optionally append--effort <level>when set, and introducesselect_effort()pickers for bothtelescope.nvimandfzf-luato let users choose effort interactively. Tests are expanded to cover effort flag inclusion/exclusion and the defaultnilbehavior for non-Claude providers.Written by Cursor Bugbot for commit c8168ec. This will update automatically on new commits. Configure here.