Skip to content

Improve and reduct classifier runs#11

Open
kdejaeger wants to merge 36 commits into
yeliu84:mainfrom
kdejaeger:improve-and-reduct-classifier-runs
Open

Improve and reduct classifier runs#11
kdejaeger wants to merge 36 commits into
yeliu84:mainfrom
kdejaeger:improve-and-reduct-classifier-runs

Conversation

@kdejaeger

Copy link
Copy Markdown

No description provided.

kdejaeger added 30 commits May 23, 2026 12:11
Add `enableOnNewSession` config option to control router activation behavior
… 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.
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`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant