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

オープン
#62,787 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
TypeScript
スター
225k
フォーク
30.4k
平均マージ
4時間 16分
マージ済み PR(30日)
528

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

anomalyco/opencode のほかの issue

anomalyco/opencode の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。