Skip to content

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

Draft
github-actions[bot] wants to merge 1 commit into
mainfrom
rig-claude-compat/2026-08-12-d6f7d784b2daff76
Draft

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

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Compatibility gap addressed

Every Claude dynamic-workflow primitive had a sample demonstrating how to port it to rig — except for the final step: running the ported workflow against Claude using anthropicEngine() and selecting Claude model tiers per-call. This left a discoverable gap for Claude dynamic-workflow users who completed porting but had no concrete example of the last step.

Why this improves transfer from Claude dynamic workflows to Rig

Claude dynamic workflows run on Claude by default; rig requires explicitly selecting an engine. A user completing a port needs to:

  1. Call configureAgent(anthropicEngine())
  2. Switch from short model aliases ("sonnet", "haiku") to full Claude model IDs ("claude-sonnet-4-5", "claude-haiku-3-5")
  3. Override the model per-call for tier selection

The existing conversion doc had a code snippet for this, but no dedicated standalone sample that someone would land on when searching anthropicEngine, claude-sonnet, or ANTHROPIC_API_KEY.

Files changed

  • skills/rig/samples/411-anthropic-engine-workflow.md — new sample showing configureAgent(anthropicEngine()) at program top-level, a two-phase workflow (Triage + Plan), per-call model overrides (claude-haiku-3-5 for cheap classification, claude-sonnet-4-5 for fix planning), and a model tier table in the preamble.
  • skills/rig/references/claude-workflow-conversion.md — added the new sample to the Example programs table.

Validation

npx vitest run scripts/run-sample.test.ts --testTimeout=120000 --testNamePattern="skill markdown samples typecheck"
# Tests  1 passed | 535 skipped

Remaining intentional differences

  • No effort option; model tier selection is explicit (use claude-opus-4-5 over claude-haiku-3-5 when quality matters).
  • No agentType: "Explore" — expressed through prompt wording and a narrow tools list.
  • No sandbox restrictions, resume journal, or worktree isolation — these are Claude Code runtime features, not API surface.

Generated by Daily Rig Claude Dynamic Workflow Compatibility · sonnet46 94.8 AIC · ⌖ 8.47 AIC · ⊞ 5.4K ·

Add 411-anthropic-engine-workflow.md: a new sample that demonstrates
configuring anthropicEngine() and selecting Claude model tiers per-call
(claude-haiku-3-5 for cheap triage, claude-sonnet-4-5 for fix planning).
This is the highest-discoverability gap for Claude dynamic workflow users
completing a port to rig — every other primitive has a sample, but the
final 'run against Claude' step had no standalone example.

Also update claude-workflow-conversion.md to include the new sample in
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.

0 participants