Repository navigation
config: forward any model name to the harness CLI - #1294
Merged
Merged
Conversation
`KNOWN_MODELS_BY_HARNESS` enumerated `opus`, `sonnet`, `haiku` for Claude and nothing for Codex, so `init` refused `model: claude-opus-5` — the exact id a consumer pins to keep a bot's behavior fixed across a provider promotion — while accepting any string at all under Codex. Both CLIs take an alias or an exact id, and either catalog can gain a model the generator has not heard of, so the allowlist bought a typo check at the price of a pin. Neither harness enumerates models now: the value must be a non-empty string, and `claude` or `codex exec` judges the name. A typo fails the job with the CLI naming it (`[claude-code:unrecognized_model]`, exit 1) rather than failing `init`. `_parse_effort` loses its `model` argument and the `effort` + `model: haiku` refusal with it. That guard matched one spelling of one model, so `claude-haiku-4-5-20251001` with `effort: low` already walked past it — and once exact ids are legal, the same configuration is accepted or refused depending on how it is written. The Claude CLI takes `--effort low --model haiku` at exit 0, ignoring the level rather than failing, so nothing outward depends on the check. Effort is still validated against the harness, including for a workflow that switches harness and inherits the top-level value. `_effective_model` is now `effective_model`: dropping the cross-family check leaves `workflows.py` as its only caller, and it was the package's one cross-module underscore import. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
tend-agent
reviewed
Sep 18, 2026
tend-agent
left a comment
Collaborator
There was a problem hiding this comment.
plugins/install-tend/skills/install-tend/SKILL.md's config template still reads # effort: medium # low | medium | high | xhigh; Claude Opus/Sonnet also accept max — the claim this diff rewrote in the README and in both tend.example.yaml copies. With _parse_effort's haiku guard gone it is the only text left in the repo asserting model-specific effort support, and it ships: that skill is what writes a new consumer's .config/tend.yaml, so an install reads max as Opus/Sonnet-only while the generator now accepts the pair and the example config stamped next to it says otherwise. It's outside this diff — say the word and I'll push the one-line fix onto this branch.
…t note The new `workflows.<name>.model` string check had no test while its top-level twin had four cases; an uncaught list or int would have reached the template and rendered `model: ['opus']` into a consumer's workflow. Bare `model:` stays out of the cases — at workflow level it reads as inherit, the same as `prompt:`. `install-tend`'s config template still said effort's `max` was Opus/Sonnet-only, the claim this branch dropped everywhere else. It ships: that template is what writes a new consumer's `.config/tend.yaml`. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
tend-agent
approved these changes
Sep 18, 2026
Merged
max-sixty
added a commit
that referenced
this pull request
Sep 18, 2026
Version bump, lockfile, and the `## 0.2.11` section the release workflow publishes verbatim as the GitHub Release notes. 19 commits since 0.2.10. The headline is the skills change that just landed: the twelve cross-cutting `references/` files are now skills in their own right and `running-in-ci` is `run-tend`, so the harness's skill listing — which fires on the action rather than on picking a task — is the index ([#1305](#1305), [#1306](#1306)). Alongside it: `model:` forwards any name to the harness CLI so a consumer can pin an exact id ([#1294](#1294)), `install-tend` hands the OAuth mint to the user and drops the pty wrapper ([#1295](#1295)), the sandbox boundary's Ubuntu and npm packages resolve as of one recorded instant ([#1289](#1289), [#1291](#1291)), and `tend check` can verify release immutability from the releases when it lacks admin — a check that had never produced a verdict in a scheduled run ([#1290](#1290)). Each bullet was written from the commit's diff rather than its subject. > _This was written by Claude Code on behalf of max-sixty_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A consumer wanted
model: claude-opus-5so their bot's behavior stays fixed when Anthropic promotes the next model behind theopusalias, and found the route closed:KNOWN_MODELS_BY_HARNESSlistedopus,sonnet,haikuand nothing else, soinitrefused the exact id. Codex, by the same dict, got no model validation at all — any string passed. Both CLIs accept an alias or an exact id, and either catalog can gain a model the generator has not heard of, so the allowlist bought a typo check at the price of a pin, for one harness.Neither harness enumerates models now.
modelmust be a non-empty string; beyond thatclaudeandcodex execjudge the name, which is the only place that knows the current catalog. A typo now fails the job rather thaninit—claude -p --model opsuexits 1 with[claude-code:unrecognized_model] {"model":"opsu"}, naming the bad value._parse_effortloses itsmodelargument, and with it theeffort+model: haikurefusal. That guard matched one spelling of one model —claude-haiku-4-5-20251001witheffort: lowalready walked past it — so once exact ids are legal the same configuration would be accepted or refused depending on how it was written. The Claude CLI takes--effort low --model haikuat exit 0, ignoring the level rather than failing, so nothing outward depended on it. Effort is still checked against the harness, including for a workflow that switches harness and inherits the top-level value; the newtest_inherited_effort_rejected_when_a_workflow_switches_harnesscovers that path, which previously rode along with the model checks._effective_modelbecomeseffective_model: dropping the per-workflow cross-family check leavesworkflows.pyas its only caller, and it was the package's one cross-module underscore import.install-tend's config template said the same thing aboutmaxand is what writes a new consumer's.config/tend.yaml, so it moves too.Nothing downstream reads the model string —
shared/steps/token_usage.pycopies it into the usage record, andchecks.pyand the site never see it — so the only consumer is the--modelflag.docs/tend.example.yaml(with itsinstall-tendmirror) and the README's effort line say what the values are now.This is the half of a consumer's request that #1161 left open; the
effortinput shipped there.