[rig-claude] Improve Claude dynamic-workflow compatibility for rig - #422
Closed
github-actions[bot] wants to merge 1 commit into
Closed
[rig-claude] Improve Claude dynamic-workflow compatibility for rig#422github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
Closes the model-selection discoverability gap for users porting Claude
dynamic workflows to rig. Claude workflows select models with { model: sonnet }
at the call site; rig uses the same option but requires a full Claude model ID
when running with anthropicEngine(). No sample demonstrated this before.
- Add skills/rig/samples/411-anthropic-model-selection-workflow.md: shows
anthropicEngine() setup, per-agent model tier (claude-haiku-3-5), and
per-call override (claude-sonnet-4-5) — a direct port of the Claude pattern
- Update skills/rig/references/claude-workflow-conversion.md: add the new
sample to the example programs table
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Compatibility gap addressed
Anthropic model selection — the highest-discoverability gap for Claude dynamic-workflow users.
Claude dynamic workflows select models with
{ model: "sonnet" }at the call site. Rig supports the same option but requires:anthropicEngine()(or settingRIG_ENGINE=anthropic), and"claude-sonnet-4-5") instead of a short alias.No sample demonstrated this before; the mapping was only described in prose in
claude-workflow-conversion.md.Why this improves transfer
A Claude dynamic-workflow user searching "how do I use Claude / Sonnet in rig" or "how do I set the model" previously had to read through the full conversion reference to find the engine setup pattern. Now there is a concrete, runnable sample that mirrors the Claude pattern exactly.
Files changed
skills/rig/samples/411-anthropic-model-selection-workflow.md(new): ShowsanthropicEngine()registration, a per-agentclaude-haiku-3-5default, and a per-call{ model: "claude-sonnet-4-5" }override — all within a two-phaseworkflow()that discovers tickets and classifies/drafts replies.skills/rig/references/claude-workflow-conversion.md: Added411-anthropic-model-selection-workflow.mdto the "Example programs" table.Validation
Remaining intentional differences
"sonnet".configureAgent(anthropicEngine())must be called explicitly; there is no automatic engine if no env var is set.effortis not a rig option; model tier selection is the idiomatic equivalent.