Subagent tool’s model-parameter instruction conflicts with model routing defined in AGENTS.md

Aperta
#62,787 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start by locating the subagent tool definition and tracing how its model parameter instructions are presented to the parent agent. Compare that behavior with how AGENTS.md instructions are handled during delegation, then check related tests for model selection. Done means an explicit model-routing instruction can guide delegation as intended; the issue does not identify specific files or a reliable reproduction, so first map the relevant code and tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Description

The subagent tool available in my session describes its model parameter as:

NEVER set this unless the user explicitly asks for a particular model or variant.

My global AGENTS.md defines a model-routing matrix and explicitly instructs
the parent agent to select a model from that matrix and pass it in
subagent.model for every delegation.

The parent agent treated the tool description as a higher-priority restriction
and left model unset, despite the instructions in AGENTS.md.

This drives me insane, sometimes even direct request to use predefined configuration is not enough to override this stupid behaviour.

Plugins

None

OpenCode version

2.2.6

Steps to reproduce

I'm not sure how to do it reliably, but i'm using it with OpenAI/ChatGPT (mainly 5.6 Terra) and have orchestrator role which decline's to spawn subagents with other model withut explicitly threatening it.

Screenshot

No response

Operating System

Fedora 44

Terminal

OpenCode Desktop App

Lingua principale
TypeScript
Stelle
225k
Fork
30.4k
Merge medio
4h 16m
PR unite (30g)
528

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di anomalyco/opencode

Tutte le issue di anomalyco/opencode

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.