Skip to content

Config: --subagent-model has no settings.yaml home — add a models.subagent: key #288

Closed

Description

@JAORMX

What happens

--subagent-model (the global default model for every Subagent / Parallel-branch / team-member child that does not pin its own model; precedence per-call/def model > SubagentModel > session model) exists only as a CLI flag, on both mecated and mecatui. The operator models: subtree in settings.yaml (permconfig.ModelsSection) has slots, aliases, default, default_provider, allowlist, and router — but no home for the child-default model.

Why it matters

The child-default model is a deployment-wide, operator-tier model policy exactly like models.default and the router taxonomy — and it's the practical lever for "orchestrate on model X, delegate work on model Y" (e.g. default: kimi-k3, subagent default coder). Today that intent requires remembering a flag on every launch of every binary, while the rest of the model policy lives durably in settings.yaml. This is the same "configured-in-one-place" gap ADR 0042 closed for the router enable.

Ask

  • Add subagent: (selector: alias or concrete id) to ModelsSection, folded like models.default (foldOperatorModelDefault sibling), CLI flag winning when set (the existing cliModelKeys discipline).
  • Operator-tier only, same as the rest of the subtree (project-tier ignored with a WARN), alias-resolved through the same normalizeSubagentModel fail-fast validation the flag uses today.
  • Docs: docs/usage.md models: block.

Related: ADR 0030 (slots/aliases spine), ADR 0042 (configure-=-enable precedent); #285/#286 (the routing gaps this default is the operator-side mitigation for).

Activity

  1. added a commit that references this issue on Jul 21, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions