[GH-ISSUE #147] [Feature]: support using OpenCode agents in custom hats #57

Closed
opened 2026-02-27 10:21:59 +03:00 by kerem · 2 comments
Owner

Originally created by @francocalvo on GitHub (Feb 2, 2026).
Original GitHub issue: https://github.com/mikeyobrien/ralph-orchestrator/issues/147

Use case

When using a multi hat ralph loop, it would be excellent to be able to pass the --agent flag to Opencode.
For example, I already have the 'planner' and 'builder' agents for me, with it's own permissions, default model and so on.

Proposed solution

Add the 'agent' property to the custom hat configuration.

Area

CLI

Backend(s) impacted

No response

Alternatives considered

No response

Additional context

No response

Originally created by @francocalvo on GitHub (Feb 2, 2026). Original GitHub issue: https://github.com/mikeyobrien/ralph-orchestrator/issues/147 ### Use case When using a multi hat ralph loop, it would be excellent to be able to pass the `--agent` flag to Opencode. For example, I already have the 'planner' and 'builder' agents for me, with it's own permissions, default model and so on. ### Proposed solution Add the 'agent' property to the custom hat configuration. ### Area CLI ### Backend(s) impacted _No response_ ### Alternatives considered _No response_ ### Additional context _No response_
kerem 2026-02-27 10:21:59 +03:00
Author
Owner

@mikeyobrien commented on GitHub (Feb 2, 2026):

You should be already able do this by passing args: ["--agent", "name"]

<!-- gh-comment-id:3837092345 --> @mikeyobrien commented on GitHub (Feb 2, 2026): You should be already able do this by passing `args: ["--agent", "name"]`
Author
Owner

@francocalvo commented on GitHub (Feb 2, 2026):

Incredible. Thank you! This really ticks most of the things I imagined for a tool like this! :D

<!-- gh-comment-id:3837155281 --> @francocalvo commented on GitHub (Feb 2, 2026): Incredible. Thank you! This really ticks most of the things I imagined for a tool like this! :D
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ralph-orchestrator#57
No description provided.