Repository navigation
Conversation
Realign declared sub-agent model tiers and document anthropics/claude-code#43869 which silently ignores all subagent `model:` declarations. Tiers are kept aligned with intended defaults so they reactivate automatically when upstream fixes ship; meanwhile, every haiku claim in docs/skills is annotated as inert. AC-1: sequant-qa-checker haiku→sonnet across .claude/agents/ + templates/agents/ (community baseline for code-review agents); explorer/testgen keep haiku. Each agent file gains an inline `# Note: per anthropics/claude-code#43869 this is currently a no-op; agent runs on parent's model` comment. AC-2: sequant doctor emits an unconditional one-line warning (suppressible via `--quiet`/`-q`) citing #43869 + linking the upstream issue. New tests in src/commands/doctor.test.ts cover (a) warning emitted by default, (b) --quiet suppresses, (c) inert-field note appears only when agents.model differs from the shipped default. AC-3: Audit-gate grep `grep -rn '\bhaiku\b' .claude/ templates/ docs/ src/lib/settings.ts` returns only updated tier claims or explicit "inert per #43869" annotations: - docs/features/declarative-agents.md: agent table footnoted, frontmatter updated, new "Known Upstream Limitations" subsection citing #43869+#57718 - docs/features/plugin-distribution.md: agents.model row annotated - docs/concepts/workflow-phases.md: haiku claim qualified - Three-way-mirrored (`.claude/skills/`, `templates/skills/`, `skills/`): _shared/references/subagent-types.md, testgen/SKILL.md, exec/SKILL.md, setup/SKILL.md, spec/references/parallel-groups.md — all annotated - testgen/SKILL.md fictional token-cost claim rewritten - exec/SKILL.md [model:...] parser kept intact (with inert-note comment) so it reactivates when #43869 closes AC-4: AgentSettings.model marked `@deprecated` in src/lib/settings.ts but kept in the Zod schema so existing user .sequant/settings.json files with `"model": "haiku"` continue to parse. When agents.model differs from DEFAULT_AGENT_SETTINGS.model, doctor appends a second-line `Note: agents.model is currently inert (see #43869).` AC-5: CHANGELOG.md [Unreleased] / ### Changed entry citing #632 + upstream.
26 tasks
AC-3 renamed the section heading and removed the fictional 90% token cost reduction claim. The pre-existing assertions in testgen-skill.test were pinning the old wording and failed CI on build (22.x). - Update heading assertion: "Token Optimization with Haiku Sub-Agents" → "Sub-Agent Delegation for Stub Generation" - Replace cost-savings assertion with one that pins the actual invariant this PR establishes: the upstream caveat note (#43869) + "inert" wording - Refresh top-of-file doc comment to reflect the new contract
admarble
deleted the
feature/632-fix-agents-realign-declared-model-tiers-document-u
branch
May 13, 2026 21:14
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.
Summary
sequant-qa-checkerhaiku→sonnet; explorer/testgen keep haiku) and annotates every haiku claim across docs/skills with the upstreamanthropics/claude-code#43869caveat — declarations are kept aligned with intended tiers so they reactivate when the upstream fix ships.sequant doctorwarning (suppressible via--quiet/-q) that cites #43869, plus a second-lineNote: agents.model is currently inert (see #43869).when the user'sagents.modeldiffers from the shipped default.AgentSettings.modelin the Zod schema (marked@deprecated) so existing.sequant/settings.jsonfiles with"model": "haiku"continue to parse without error.Pre-PR AC Verification
.claude/agents/*.md+templates/agents/*.mdupdated with inline# Note: per anthropics/claude-code#43869sequant doctorwarning +--quietsrc/commands/doctor.ts(emitUpstreamWarning);bin/cli.tsregisters-q, --quiet; 4 new tests indoctor.test.tsAgentSettings.model@deprecated+ non-default inert-field noteDEFAULT_AGENT_SETTINGS.model[Unreleased] / ### Changedentry citing #632 + upstream #43869Verification commands
Quality gates
npm run build— no TypeScript errorsnpm run lint— cleancommands/+scope/test suites: 338/338 passnpx tsx scripts/check-skill-sync.ts— all 5 modified skill files showsynced 3/3--quietsuppressesTest plan
npx sequant doctorprints the warning line + URLnpx sequant doctor --quiet(and-q) suppresses the warning.sequant/settings.jsonagents.modelset to a non-default value, the second-lineNote: agents.model is currently inert (see #43869).appears.sequant/settings.jsonfiles with"model": "haiku"still load without errorCloses #632
Refs anthropics/claude-code#43869, anthropics/claude-code#57718