Improve and reduct classifier runs#11
Open
kdejaeger wants to merge 36 commits into
Open
Conversation
Updated documentation
Add `enableOnNewSession` config option to control router activation behavior
Fix/exclude agents from npm package
… is just too much effort when developing and debugging.
…tra ',' at the end, the whole plugin failed silently. Now showing warning when configuration loading fails.
…tra ',' at the end, the whole plugin failed silently. Now showing warning when configuration loading fails.
…mprove image detection accuracy for recent messages instead of the whole session.
…tatus updates and fallback handling.
Image escalation improvements
Introduce a new `classifierModelThinking` configuration parameter that allows specifying reasoning levels for the classifier model. Include validation, fallback handling, and improved routing logic integration. Update documentation accordingly.
…king Add `classifierModelThinking` option to enhance routing flexibility
…ssifier prompt. It contains a list of all tools, skilles and AGENT.md's that are NOT necessary to determine the tier.
…ery turn, gate it behind three smart triggers:
- Fresh feedback (first N tool continuations after a user message, default: 1)
- Crisis (consecutive failed tool results ≥ threshold, default: 2)
- Cadence (every N tool continuations, default: 8)
- **Google lock**: Move Google thinking tool-continuation check before the classifier — preserves exact model during Google thinking chains to avoid thought-signature replay errors
- **Heuristic fix**: Both lookup and planning-phase heuristics now use turn-local tool counts (`countToolResultsSinceLastUserPrompt`) instead of session-wide counts, so a fresh user message is never permanently stuck above the `low` tier
- **New config fields**: `classifierInitialContinuations`, `classifierFailureTrigger`, `classifierCadence`
- **Debug logging**: Classifier gating shows `RUN classifier — <triggers>` or `SKIP classifier (cont:N, fail:N)` in debug mode
- **Docs**: Updated `README.md`, `ARCHITECTURE.md`, and `model-router.example.json`
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.
No description provided.