docs: add opencode and condense other LLM commit tools#1295
Conversation
Add opencode as a supported tool for LLM commit generation, and reorder the tool sections to: Claude Code, Codex, opencode, llm, aichat. Closes #911 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
let's condense this:
then, for opencode, yes, use |
Claude Code and Codex keep their own sections. opencode, llm, and aichat are condensed into one block with just recommended commands. opencode now uses -m and --variant flags for a fast model. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Updated — condensed opencode, llm, and aichat into a single "Other tools" section with just the recommended commands. Claude Code and Codex keep their own sections. For opencode, I used |
|
great! as a follow-up — are there any settings in codex or opencode to use an empty system prompt? that would speed up the commit generation |
|
Good question! Here's what I found:
If either of these would be worth documenting in the LLM commits page, happy to open a follow-up PR. |
|
yes, please follow-up with the codex change; and search online for whether this exists in opencode |
Add `-c system_prompt=''` to the Codex example so it skips the default system prompt, reducing tokens and latency for commit message generation. Follow-up from #1295. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Done — opened #1300 which adds For opencode: there's no way to disable the system prompt currently. The system prompt is always injected, and even the plugin system has a safety fallback that restores it if emptied. There are open feature requests (sst/opencode#1242, sst/opencode#1894) but nothing available yet. |
## Summary - Add `-c system_prompt=''` to the Codex example command to skip the default system prompt, reducing tokens and latency for commit message generation Follow-up from #1295 — @max-sixty asked about using empty system prompts for speed. **opencode**: Does not currently support disabling the system prompt. The system prompt is always injected, and even the plugin system has a safety fallback that restores the original if emptied. There are open feature requests ([#1242](anomalyco/opencode#1242), [#1894](anomalyco/opencode#1894), [#5005](anomalyco/opencode#5005)) but nothing available yet. **Codex**: Has an undocumented `system_prompt` config key that can be overridden via `-c system_prompt=''`. There are feature requests for dedicated `--system-prompt` flags ([#6023](openai/codex#6023), [#11588](openai/codex#11588)) but not yet merged. Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…config) (#1807) This PR adds OpenCode integration: activity tracking markers in `wt list`, plugin installation via CLI, `wt config show` diagnostics, and LLM commit generation detection. Continues the work started in #1295 and #1533 which added OpenCode to the docs and example config. ## What's included - **Activity tracking plugin** (`dev/opencode-plugin.ts`): maps `session.status`/`session.idle`/`session.deleted` to branch markers, same pattern as Claude Code's plugin - **`wt config plugins opencode install/uninstall`**: installs the plugin to `~/.config/opencode/plugins/worktrunk.ts` — source embedded via `include_str!()`, no npm needed. Sits under `wt config plugins` alongside Claude Code's `wt config plugins claude`. - **`wt config show` OPENCODE section**: shows plugin install status with actionable hints (only when `opencode` is on PATH) - **`LlmTool::OpenCode` variant**: detected via PATH for commit generation auto-config ## Docs approach Kept deliberately low-profile — no dedicated docs page, no README mention. OpenCode is discoverable via `wt config show` and a mention in tips-patterns. If it becomes popular, docs prominence can increase. > _This was written by Claude Code on behalf of @max-sixty_ --------- Co-authored-by: Maximilian Roos <m@maxroos.com> Co-authored-by: Claude <noreply@anthropic.com>
Summary
Closes #911
Feedback welcome
@viicslen @gabimoncha — does
opencode run -m anthropic/claude-haiku-4.5 --variant fastwork correctly? Happy to adjust the flags.