GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FEATURE] Multi-model orchestration: intent-based routing, vision delegation, turn-level advisor · Issue #34370 · anomalyco/opencode

[FEATURE] Multi-model orchestration: intent-based routing, vision delegation, turn-level advisor #34370

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[FEATURE] Multi-model orchestration: intent-based routing, vision delegation, turn-level advisor#34370
Copy link
Assignees
rekram1-node

Description

@LawyerCH
LawyerCH
opened on Jun 29, 2026
Issue body actions

Problem

Currently OpenCode requires manual model switching and lacks real-time multi-model collaboration. Inspired by oh-my-pi's design, three capabilities would significantly improve autonomous workflows.

Proposed Features

1. Intent-based model routing

Automatically route tasks to appropriate models based on intent detection:

  • Simple formatting/linting → fast/cheap model
  • Complex reasoning/architecture → deep reasoning model
  • Planning → balanced model

oh-my-pi implements this via role system (default/smol/slow/plan/commit). A plugin hook like prompt.classify that returns an intent label would allow plugins to implement this.

2. Vision model delegation

When the primary model doesn't support image understanding, transparently delegate image processing to a vision-capable model and pass structured results back. Currently users must manually coordinate via @explore or switch models.

A tool.requires_vision hook or automatic fallback chain would enable this.

3. Turn-level advisor agent

A second model that observes every turn (not just session.idle) and can inject corrections inline. The current plugin events are:

  • session.idle — too coarse (only fires when entire session is idle)
  • tool.execute.before/after — tool-level, not turn-level

A turn.completed event would enable real-time review patterns like oh-my-pi's advisor, where a separate model reads each turn and can interrupt with suggestions before the next turn starts.

Use Case

User sets a goal → intent router selects appropriate model → advisor watches each turn and catches issues early → vision model handles images transparently → task completes with higher quality.

References

  • oh-my-pi roles: https://omp.sh/docs/providers
  • oh-my-pi advisor: [readme] [bug] cant install #6 in README
  • OpenCode plugin events: https://opencode.ai/docs/plugins/
Reacted by Jimmi Hested, Pablo Picasso, BnnaFish, hucet and Aldo Fathoni

Activity

  1. github-actions
    assigned
    rekram1-node
    on Jun 29, 2026
  2. github-actions commented on Jun 29, 2026

    @github-actions
    github-actionsBot
    on Jun 29, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • [FEATURE]: add chat.model plugin hook for pre-call model routing #18793: [FEATURE]: add chat.model plugin hook for pre-call model routing — same intent-based model routing concept via a plugin hook
    • [FEATURE]: plugin hook for dynamic model routing based on prompt complexity #18844: [FEATURE]: plugin hook for dynamic model routing based on prompt complexity — nearly identical to the proposed intent router
    • [FEATURE]: opencode could automatically use different models based on task type #8456: [FEATURE]: opencode could automatically use different models based on task type — same automatic task-based model selection idea
    • [FEATURE]: Anthropic "advisor strategy" #23058: [FEATURE]: Anthropic "advisor strategy" — similar turn-level advisor concept
    • [FEATURE]: Add support for Anthropic's Advisor Tool (Beta) #21884: [FEATURE]: Add support for Anthropic's Advisor Tool (Beta) — closely related to the turn-level advisor request
    • Non-vision models blocked from passing images to vision-capable MCP tools #29216: Non-vision models blocked from passing images to vision-capable MCP tools — related to the vision delegation feature
    • [FEATURE]: Task tool should support model parameter for cost-optimized multi-agent orchestration #26925: [FEATURE]: Task tool should support model parameter for cost-optimized multi-agent orchestration — related multi-model orchestration request

    Please review these issues and consider consolidating or linking to any that address the same underlying need.

  3. hiSandog commented on Jun 29, 2026

    @hiSandog
    hiSandog
    on Jun 29, 2026
    More actions

    Intent-based multi-model routing would be powerful, but the first design should define observability and override behavior. Users will need to know why a model was chosen, how to pin a model for a turn, and how tool/vision/file constraints affect routing. Without those guardrails, debugging a bad answer becomes harder because the model choice is another hidden variable.

  4. restuhaqza commented on Aug 21, 2026

    @restuhaqza
    restuhaqza
    on Aug 21, 2026
    More actions

    +1

  5. n24q02m commented on Sep 20, 2026

    @n24q02m
    n24q02m
    on Sep 20, 2026
    More actions

    Related approach worth considering for the routing substrate: TypeSafe's System One (jev-latest) returns typed judgments — a choice over declared tiers plus a calibrated confidence and an independent complexity score — rather than free-text classification. That enables confidence-gated route-down: default to the most capable tier, route down only when confidence ≥ threshold AND complexity ≤ threshold, and fail open toward the expensive tier on any judge error. A deterministic Layer-0 filter (time windows, context ceiling, quota/rate) runs before the judgment call and resolves most turns without spending a call.

    Happy to prototype this as an in-core JevRouter Effect Layer at the createUserMessage model-resolution point if it fits the direction you have in mind here — or as a separate issue if you'd rather keep intent-routing and capability-routing distinct.

    Reacted by Alex Chapin and Andy Macdonald
  6. mixxermannipro commented on Oct 2, 2026

    @mixxermannipro
    mixxermannipro
    on Oct 2, 2026
    More actions

    I opened #52743 as a broader architecture proposal that builds on the intent-based routing discussed here.

    The main extension is to make routing state-aware and provider-agnostic, so the decision is based not only on task intent, but also on available models, capabilities, reasoning/effort levels, subscription and remaining quota state, API/cache costs, quality signals, latency, and user-defined policies.

    It also proposes confidence-aware routing, dynamic escalation, policy-compliant fallbacks, quota conservation, and transparent routing decisions.

    I think #34370's intent classification could be an important building block for that broader routing layer rather than a competing approach.

    See #52743 for the detailed architecture.

  7. opencodejr commented on Oct 29, 2026

    @opencodejr
    opencodejrBot
    on Oct 29, 2026
    Contributor
    More actions

    Thanks for the detailed write-up! You're asking for multi-model orchestration in three parts: route each prompt to a cheap or deep model based on its intent, hand images to a vision-capable model when the main model can't read them, and have an advisor model review every turn and add corrections before the next one. Maintainers will consider it.

    Some of this may already be possible with the current plugin API:

    • Turn-level events: plugins can subscribe to session.step.ended, which fires after each model step, not only on session.idle. From there, a plugin can run a second model with session.generate and inject feedback with session.synthetic / session.prompt, or stop the turn with session.interrupt.
    • Routing for each prompt: the prompt hook together with session.switchModel lets a plugin pick the model for each user prompt. Switching the model in the middle of a turn isn't supported yet.

    Related issues that cover parts of this:

    • [FEATURE]: Auto-switch to vision model when images enter the agent loop (incl. tool-produced) #46794: automatically switch to a vision model when images enter the agent loop (your part 2)
    • [FEATURE]: New chat.model hook #50729: a hook to change the model on each step (your part 1)
    • [FEATURE]: Universal intelligent model & compute router (provider, quota, cost, quality, reasoning aware) #52743, [FEATURE]: Cost-aware multi-provider routing with free-model and credit optimization #52782: broader model routers (cost, quality, quota)
    • [FEATURE]: add session.stopping plugin hook to allow re-entering the agent loop #16626: a session.stopping hook to keep the agent loop going
    • [FEATURE]: add session.turn.completed bus event for plugin hooks #23503, feat: vision sub-model fallback for non-multimodal models #31936, [FEATURE]: Allow plugins to customize behavior when a model doesn't support a media modality (image/audio/video) #36006: earlier turn-completed event and vision fallback requests (closed)
  8. neriousy commented on Nov 12, 2026

    @neriousy
    neriousy
    on Nov 12, 2026
    Member
    More actions

    Thanks for the suggestion. This isn't something we plan to build, so closing to keep the tracker focused.

  9. neriousy
    closed this as not plannedon Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.