mirror of
https://github.com/mikeyobrien/ralph-orchestrator.git
synced 2026-04-25 07:05:57 +03:00
[GH-ISSUE #173] Support per-hat backend args (e.g. --model) #69
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ralph-orchestrator#69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Teo-Asinari on GitHub (Feb 12, 2026).
Original GitHub issue: https://github.com/mikeyobrien/ralph-orchestrator/issues/173
Feature Request: Per-Hat Backend Arguments
Problem
Ralph supports per-hat
backendoverrides, but there's no way to pass additional CLI arguments to the backend on a per-hat basis. This makes it impossible to control model selection per hat when using Claude Code as the backend.Use Case
When using Claude Code, users may want different hats to run on different models:
Currently the only option is
ralph run -- --model sonnet, which applies globally to all hats.Proposed Solution
Add a
backend_argsfield to the hat schema:These args would be appended to the backend command when invoking that hat's session.
Alternatives Considered
claude --model opusvsclaude --model sonnet). Works but is verbose and fragile.CLAUDE_CODE_SUBAGENT_MODEL(undocumented) but this only affects subagents within a session, not the top-level model.-- <CUSTOM_ARGS>: Applies to all hats, no per-hat control.Impact
This would make Ralph backend-agnostic model routing possible, useful for cost optimization and performance tuning across hat workflows.
@francocalvo commented on GitHub (Feb 19, 2026):
Is this not the same as herE?
https://github.com/mikeyobrien/ralph-orchestrator/issues/147
@mikeyobrien commented on GitHub (Feb 20, 2026):
Should be functional as described in #147 otherwise there is a regression.
@francocalvo commented on GitHub (Feb 23, 2026):
@mikeyobrien
I think there is a bug, yes. https://github.com/mikeyobrien/ralph-orchestrator/issues/178
@mikeyobrien commented on GitHub (Feb 25, 2026):
Validated this is implemented and working.
What is in place:
Also consistent with issue #147 behavior.
Closing as completed.