Skip to content

[Feature]: Support per-launch --model / --effort for Hermes worker-start #22896

Closed as not planned

Description

@karazaku

Background and problem

I would like to use Hermes as a supervised Orca worker and specify the model and reasoning effort for each task. Hermes itself supports per-invocation overrides, but Orca rejects worker-start --agent hermes --model ... --effort ... before launch.

I want to avoid rewriting the global Hermes configuration before each launch because that can race with other coordinators or concurrent launches. The requested support should preserve Orca-managed agent-first startup, Task/Dispatch tracking, completion reporting, and release.

Environment and reproduction

  • Windows 11
  • Orca CLI: 1.4.211
  • Hermes: v0.21.5+2144.g7b761da (upstream 7b761da2)
  • Hermes provider: openai-codex

With the coordinator bound to a Run, I executed a command of the following form (Run and terminal identifiers are redacted):

orca orchestration worker-start \
  --spec "文書とテンプレートを整備する" \
  --worktree new-child --name model-selection-repro \
  --agent hermes --model gpt-6-luna-900k --effort max \
  --setup run --run <run_id> --from <coordinator_handle> --json

The Japanese task text in --spec means "Prepare documentation and templates."

The result was invalid_argument:

Agent hermes does not support launch-time model selection. Omit --model to run the model from its own config.

After the failure, both task-list and worker-list for the affected Run were empty. The request did not reach the model API, so this report does not establish the availability of any particular model or a successful API call.

Meanwhile, hermes --help in the installed version exposes:

  • -m, --model MODEL: a model override for this invocation, including the TUI.
  • --provider PROVIDER: a provider override for this invocation.
  • --reasoning LEVEL: a reasoning effort override for this invocation.
  • CLI reasoning choices: none, minimal, low, medium, high, xhigh, max, ultra.

These are CLI-accepted values, not a claim that every provider/model supports every effort level.

Source inspection

Inspected upstream main SHA: 646e9a5b02514795af5139961ccca225dfa01b12.

  • CATALOGS in src/shared/agent-session-option-catalog.ts has no Hermes entry.
  • src/shared/agent-session-option-launch.ts returns empty launch arguments and applied values when no catalog exists.
  • src/shared/tui-agent-launch-command.ts uses this shared session-option resolution.

This suggests that support needs to cover validation, Hermes argument generation, and reporting of applied settings, rather than merely expanding a CLI allowlist. This is an inference from source inspection; no patch or runtime trace has been produced.

Proposed solution

  1. Add a Hermes session-option catalog / launch adapter.
  2. Map --model <opaque-id> to Hermes's --model <opaque-id> and --effort <level> to --reasoning <level>, preserving the model ID exactly.
  3. Preserve the provider configured in the selected Hermes profile. If per-launch provider selection is added, handle it per invocation without rewriting secrets or global configuration.
  4. If existing arguments or command overrides conflict with the requested model/effort, apply explicit precedence rules or return a typed error, consistently with other agents. Do not silently ignore the requested settings.
  5. Record requested/effective settings in the receipt. Distinguish settings passed through argv from settings observed in the actual process/session; echoing the request alone must not be treated as proof of the model actually used.
  6. For unsupported remote runtimes or older Hermes versions, return an explicit capability/version error instead of falling back to rewriting configuration.

Scope and acceptance criteria

  • No regressions in existing agent catalogs, unknown-model handling, or argument-conflict detection.
  • Hermes model/effort settings reach both normal TUI agent-first launches and supervised worker-start launches.
  • Launching two workers with different model/effort settings does not change persistent Hermes configuration or affect the other worker.
  • Tests cover generation of --model and --reasoning, invalid-input rejection, and Windows argument quoting.
  • Task/Dispatch ownership, prompt delivery, worker_done, and worker-release remain intact.
  • Verify a real launch with a test model, separately checking configuration-file immutability, generated argv, and observable runtime information.

Related issues and duplicate check

I searched existing Hermes issues and model-launch issues. This request is distinct from:

This proposal is limited to passing model/effort settings when launching an existing Hermes TUI as a supervised worker. It does not request rewriting Hermes configuration, copying provider credentials, or implementing native Chat UI support.

Activity

  1. changed the title [-][Feature]: Hermes の worker-start で起動単位の --model / --effort 指定に対応する[/-] [+][Feature]: Support per-launch --model / --effort for Hermes worker-start[/+] on Sep 25, 2026
  2. karazaku commented on Sep 25, 2026

    @karazaku
    Author

    I opened this issue by mistake and have closed it. Could a maintainer delete it when convenient? Sorry for the inconvenience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions