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]: chat.model hook for blind LLM benchmarking feat(plugin) · Issue #16932 · anomalyco/opencode

[FEATURE]: chat.model hook for blind LLM benchmarking feat(plugin) #16932

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[FEATURE]: chat.model hook for blind LLM benchmarking feat(plugin)#16932
Copy link
Assignees
rekram1-node

Description

@igor-voloc
igor-voloc
opened on Mar 10, 2026
Issue body actions

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Problem
LLM providers and models have biased benchmarks. Existing evaluations (HumanEval, provider-reported metrics) don't reflect real-world coding performance. I want to build a blind testing plugin that:

  • Randomly assigns models from a pool at session start
  • Hides model identity during use
  • Prompts users to rate after the session
  • Reveals the model only after rating
  • Collects unbiased benchmark data
  • This enables organizations and open-source contributors to compare LLMs for coding without brand bias.

Proposal
Add a chat.model plugin hook to override model selection:

"chat.model"?: (
  input: { sessionID, agent, model, provider, message },
  output: { 
    model?: { providerID: string; modelID: string }
    displayModel?: string
  }
) => Promise<void>
  • model: Override the actual model used
  • displayModel: Custom name shown in UI (e.g., "Model A")
    This follows existing patterns like chat.params and chat.headers.

Why OpenCode Benefits

  1. Zen's mission - OpenCode Zen aims to benchmark the best models. Real-world blind test data would improve recommendations.
  2. Public benchmark dashboard - OpenCode could host a leaderboard at opencode.ai/benchmark showing unbiased model rankings from community contributions. Differentiates from competitors.
  3. Thought leadership - "Most comprehensive real-world LLM benchmark for coding" drives blog posts, press, and adoption.
  4. Generic utility - Beyond benchmarking, the hook enables provider failover, A/B testing, and enterprise model governance.

Implementation
Small scope:

  • packages/plugin/src/index.ts - hook type
  • packages/opencode/src/session/llm.ts - trigger hook before LLM call
  • packages/opencode/src/session/message-v2.ts - add displayModel field
  • TUI components - show displayModel if present

Discussion

  • Is the hook signature appropriate?
  • Interest in OpenCode hosting a public benchmark dashboard?
  • I'm willing to implement the core changes and build the blind test plugin.

Activity

  1. igor-voloc
    added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Mar 10, 2026
  2. github-actions
    assigned
    rekram1-node
    on Mar 10, 2026
  3. github-actions
    added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 10, 2026
  4. thdxr
    removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  5. github-actions commented on Jul 4, 2026

    @github-actions
    github-actionsBot
    on Jul 4, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  6. github-actions
    closed this as not plannedon Jul 4, 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.