worktrunk icon indicating copy to clipboard operation
worktrunk copied to clipboard

Opencode support

Open gabimoncha opened this issue 10 months ago • 7 comments

Hi, just wanted to say that this library is amazing, and would be curios it is planned to support Opencode in the near future

gabimoncha avatar Feb 01 '26 14:02 gabimoncha

thanks!

what support would be helpful?

I've directed the documentation towards Claude Code, and there's the Claude Code plugin. but generally Worktrunk isn't coupled to any specific app

max-sixty avatar Feb 01 '26 23:02 max-sixty

@gabimoncha also curious what you're thinking. I've been using opencode daily since it was very first launched and similar with wt. Would love to hear about some of your workflows.

strangemonad avatar Feb 05 '26 04:02 strangemonad

sry for not being clear, i was referring mostly to the commit generation: https://worktrunk.dev/claude-code/

gabimoncha avatar Feb 09 '26 20:02 gabimoncha

OK, if someone would like to add a good opencode example for commit generation to the docs, I'd be happy to take it

(please consider how to make it the lowest possible latency, not just opencode 'write commit', etc)

max-sixty avatar Feb 10 '26 04:02 max-sixty

This is what I have so far, I could not find any options to lower the latency

command = "opencode run -m opencode/minimax-m2.5-free"
Image

viicslen avatar Mar 05 '26 14:03 viicslen

is there a variant of the model that is minimal thinking, for example?

is there a model that folks who use opencode are most likely to use?

@worktrunk-bot could you draft an abbreviated section in our docs with some suggested commands for models (but not a whole section), and include this? probably we have a section for claude & codex and then a series of commands for opencode llm, ai-chat, in that order? (and make adjustmets in @viicslen or @gabimoncha have feedback)

max-sixty avatar Mar 06 '26 00:03 max-sixty

Drafted a PR: #1295

Changes:

  • Added opencode section with opencode run (uses whatever model is in the user's opencode config)
  • Reordered to: Claude Code, Codex, opencode, llm, aichat
  • Claude Code and Codex keep their fuller descriptions; opencode, llm, and aichat are brief command entries

I kept the opencode example as just opencode run without a -m flag, since the right model depends on the user's setup and provider. @viicslen @gabimoncha — let me know if you'd prefer a specific model in the example (e.g., opencode run -m anthropic/claude-haiku-4.5) or if the bare command is better as the default.

worktrunk-bot avatar Mar 06 '26 00:03 worktrunk-bot