Skip to content

[rig-claude] Improve Claude dynamic-workflow compatibility for rig - #422

Closed
github-actions[bot] wants to merge 1 commit into
mainfrom
rig-claude-compat/2026-08-14-c3ae8d1fd7e999c1
Closed

[rig-claude] Improve Claude dynamic-workflow compatibility for rig#422
github-actions[bot] wants to merge 1 commit into
mainfrom
rig-claude-compat/2026-08-14-c3ae8d1fd7e999c1

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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:

  1. Registering anthropicEngine() (or setting RIG_ENGINE=anthropic), and
  2. Using a full Claude model ID (e.g. "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): Shows anthropicEngine() registration, a per-agent claude-haiku-3-5 default, and a per-call { model: "claude-sonnet-4-5" } override — all within a two-phase workflow() that discovers tickets and classifies/drafts replies.
  • skills/rig/references/claude-workflow-conversion.md: Added 411-anthropic-model-selection-workflow.md to the "Example programs" table.

Validation

npm run sample -- --testNamePattern="skill markdown samples typecheck"
# Tests  1 passed | 535 skipped (536)

Remaining intentional differences

  • Rig requires full Claude model IDs; there is no short alias like "sonnet".
  • configureAgent(anthropicEngine()) must be called explicitly; there is no automatic engine if no env var is set.
  • effort is not a rig option; model tier selection is the idiomatic equivalent.

Generated by Daily Rig Claude Dynamic Workflow Compatibility · sonnet46 159.6 AIC · ⌖ 8.36 AIC · ⊞ 5.4K ·

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant