Skip to content

agentctl launch opencode: --model with ohm/ prefix causes agent to die on start #175

Open

Description

@doink-kindo

Description

ticket-launch-impl.sh passes --model "ohm/moonshotai/Kimi-K2.6" to agentctl launch opencode. Per TOOLS.md, agentctl strips the ohm/ prefix (splits on /, drops first segment), which breaks local Ohm gateway routing. The agent starts and immediately stops.

Reproduction

agentctl launch opencode --worktree ~/code/mono --branch 'auto/test' --model 'ohm/moonshotai/Kimi-K2.6' -p 'hello'
# Agent starts, stops within 30s

Fix

Either:

  1. Strip the provider prefix before passing to the adapter, or
  2. Document that --model is forbidden for opencode adapter and validate/warn

Context

Documented in TOOLS.md: 'DO NOT pass --model for opencode — agentctl strips the ohm/ provider prefix'. The ticket-launch-impl.sh script in mono violates this rule and needs a fix.

Incident: ENG-9582 implementation agent (session 4ee1ae58) died immediately on 2026-05-05.

Activity

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