Skip to content

ocx-* agent note 'pass model: haiku as a placeholder' runs real Haiku outside the proxy #6358

Closed as not planned

Description

@WisarutB

Summary

The NO_MODEL_ARG note appended to every ocx-* agent description (src/claude/agents-inject.ts) tells the dispatcher to pass model: "haiku" as a placeholder because "the model argument is ignored". That is true only when Claude Code runs through the opencodex proxy. When the same ~/.claude/agents/ocx-*.md files are loaded by a Claude Code session that is not routed through the proxy (for example the Claude desktop app), the model argument overrides the agent's model: frontmatter and the subagent really runs on Claude Haiku.

Observed (opencodex 2.73.0, Windows)

  • Agent file ocx-gpt-6-1-sol.md pins model: "ocx-claude-native--gpt-6.1-sol".
  • The dispatcher followed the description and passed model: "haiku".
  • The subagent ran as Claude Haiku 4.5 and returned a review labelled "GPT-6.1 Sol"; the substitution was silent.

Suggested fix

  • Reword the note so it is safe in both cases, e.g. "omit the model argument; outside the opencodex proxy it overrides the pin", or
  • only emit the placeholder instruction when the injected agents are used by a proxied session (or write the ocx agents to a proxy-only agents directory).

Related: #252 (placeholder label choice).

Activity

  1. github-actions commented on Oct 1, 2026

    @github-actions
    Contributor

    Automated translation bookkeeping — detected language: English.

  2. github-actions commented on Oct 1, 2026

    @github-actions
    Contributor

    Issue closed: use an issue template

    Thanks for taking the time to submit this issue. It was closed automatically because it was not opened with a recognized issue template (Bug report, Feature request, Documentation, or Provider compatibility). Freeform and API-opened issues cannot skip this check.

    • This issue does not use a recognized issue template.

    Please edit the issue to add:

    • Open a new issue with the Bug report, Feature request, Documentation, or Provider compatibility template.
    • Or edit this issue so the body uses the template section headings for the kind of report you are filing.

    See the Contributing guide for details.

    Once the report passes the automated checks, it will be reopened automatically unless a maintainer has changed its state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliCLI, config inject, packaging flags

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions