byterover-cli icon indicating copy to clipboard operation
byterover-cli copied to clipboard

Feature request: Support task-specific model routing for query, search, curate, sync, and dream

Open 999cleo opened this issue 6 months ago • 3 comments

Summary

ByteRover currently appears to use one active provider/model for all task types. It would be useful to configure different models per task category so latency-sensitive tasks can use a fast model, while background/offline tasks can use a higher-quality model.

Motivation

Some ByteRover tasks sit directly on the critical path of an agent conversation. Others are background or offline maintenance.

For example:

  • query / memory prefetch affects perceived response latency in an agent chat.
  • search should stay fast and cheap.
  • curate and automatic turn sync are usually background writes, where quality matters more.
  • dream is offline/background consolidation, where using a stronger model is desirable and latency is less important.

With only one active model, users have to choose between:

  • a fast model that keeps chat responsive but may be weaker for curation/consolidation, or
  • a strong model that improves curation/dream quality but can slow down query/prefetch.

Proposed config

Something like:

models:
  default:
    provider: google
    model: gemini-3.1-flash-lite-preview
  tasks:
    query:
      provider: google
      model: gemini-3.1-flash-lite-preview
    search:
      provider: google
      model: gemini-3.1-flash-lite-preview
    curate:
      provider: google
      model: gemini-3-flash-preview
    sync_turn:
      provider: google
      model: gemini-3-flash-preview
    dream:
      provider: google
      model: gemini-3.1-pro

or if providers are shared globally:

modelRouting:
  query: gemini-3.1-flash-lite-preview
  search: gemini-3.1-flash-lite-preview
  curate: gemini-3-flash-preview
  sync_turn: gemini-3-flash-preview
  dream: gemini-3.1-pro

Desired behavior

  • brv query uses the configured query model.
  • brv search uses the configured search model, or no LLM when the search path is pure retrieval.
  • brv curate uses the configured curate model.
  • automatic conversation sync uses the configured sync_turn model.
  • brv dream and daemon-triggered dream use the configured dream model.
  • if no task-specific model is configured, ByteRover falls back to the current active model to preserve existing behavior.

Example use case

For an agent using ByteRover as a memory provider:

query/search: gemini-3.1-flash-lite-preview
curate/sync_turn: gemini-3-flash-preview
dream: gemini-3.1-pro

This keeps regular agent responses fast while improving quality for background memory writes and offline consolidation.

Why this matters

In an interactive agent, even a few extra seconds of prefetch latency is noticeable. But for dream and background curation, latency is much less important than quality and reliability.

Task-specific model routing would let users optimize for both:

  • low perceived latency during normal chat
  • higher quality long-term memory organization

Backwards compatibility

This can be fully backwards compatible if the current active provider/model remains the default for all task types unless a task override is configured.

Related issue

This is related to a curator quality issue where a lighter model appeared to copy prompt examples into the context tree. Task-specific routing would let users keep fast models for latency-sensitive retrieval while using stronger models for write/consolidation tasks.

999cleo avatar May 13 '26 05:05 999cleo

Thanks a lot for the detailed write-up and proposal 🙌

This makes a lot of sense, especially the separation between latency-sensitive tasks (query, search) and quality-oriented background tasks (curate, dream, sync_turn).

We can definitely see the value of task-specific model routing here:

  • faster interactive agent experience
  • stronger long-term memory organization/consolidation
  • better cost/performance tuning per workflow

The backwards compatibility approach you suggested also feels very reasonable.

We’ll take a closer look internally and add this to our wishlist / feature backlog for further discussion and design exploration.

Really appreciate you taking the time to write such a thoughtful proposal and concrete config examples - super helpful 🙏

cuongdo-byterover avatar May 13 '26 09:05 cuongdo-byterover

In addition to this the ability to set reasoning mode: none, low, medium, high. In hermes for example, as a memory plugin, byterover is useless right now (no one's fault! just different expectations): query have a hard-coded timeout of 10s. If one sets the byterover model to anything with reasoning there is barely any hope. Even without reasoning is it kinda hard.

erwindassen avatar May 27 '26 11:05 erwindassen

Hermes expect "queries" to be fast (~10s) and the way it is setup it wants to do what brv query currently does, that is, it expects just the source material and to come to the best understanding from itself. That's what the other memory providers are doing: queries do not use LLMs (at most a reranker) and return the most relevant sources.

erwindassen avatar May 27 '26 16:05 erwindassen