Skip to content

feat(hopper): model pool routing in cecli.hopper#577

Open
JessicaMulein wants to merge 4 commits into
cecli-dev:mainfrom
Digital-Defiance:pr/hopper
Open

feat(hopper): model pool routing in cecli.hopper#577
JessicaMulein wants to merge 4 commits into
cecli-dev:mainfrom
Digital-Defiance:pr/hopper

Conversation

@JessicaMulein

Copy link
Copy Markdown

Summary

  • Add cecli/hopper/ — model pool (fast/code/think tiers), prompt classification, escalation, and apply_route_to_coder for per-turn LiteLLM kwargs.
  • Optional host hooks: set_backend_client_resolver, set_static_vram_bytes_resolver for preload without coupling to a specific host runtime.
  • Env think overrides read from CECLI_LLM_ENV, XDG local-llm/env, CECLI_REPO_ROOT/local-llm.env, or cwd local-llm.env.
  • 65 unit tests under cecli/tests/hopper/.

Motivation

Headless IDE hosts already use a three-tier model hopper for local LLM routing. Lifting the pure Python router into cecli keeps the engine product-neutral and testable without HTTP or desktop shell dependencies.

Test plan

  • python -m pytest cecli/tests/hopper/ -q (65 passed)

agentpike and others added 4 commits June 15, 2026 14:36
Move fast/code/think hopper pool, prompt classification, escalation, and apply-route from host integration into cecli.hopper with optional preload resolver hooks. Add 65 unit tests under cecli/tests/hopper/.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Run verify-cecli-pre-commit on pr/hopper before upstream merge.

Co-authored-by: Cursor <cursoragent@cursor.com>
Expand architect(?:ure|ural)? to explicit words so codespell does not flag "ure".

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

2 participants