Skip to content

docs: add opencode and condense other LLM commit tools#1295

Merged
max-sixty merged 2 commits intomainfrom
docs/add-opencode-llm-commits
Mar 6, 2026
Merged

docs: add opencode and condense other LLM commit tools#1295
max-sixty merged 2 commits intomainfrom
docs/add-opencode-llm-commits

Conversation

@worktrunk-bot
Copy link
Copy Markdown
Collaborator

@worktrunk-bot worktrunk-bot commented Mar 6, 2026

Summary

  • Add opencode as a supported tool for LLM commit message generation
  • Condense opencode, llm, and aichat into a single "Other tools" section with just recommended commands
  • Claude Code and Codex retain their own detailed sections
  • Auto-sync skill reference file

Closes #911

Feedback welcome

@viicslen @gabimoncha — does opencode run -m anthropic/claude-haiku-4.5 --variant fast work correctly? Happy to adjust the flags.

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>
@worktrunk-bot worktrunk-bot mentioned this pull request Mar 6, 2026
@max-sixty
Copy link
Copy Markdown
Owner

let's condense this:

  • claude & codex get their own section, like they have now
  • opencode, llm, ai-chat, in that order are just listed with recommended commands; no links etc

then, for opencode, yes, use -m & --variant in the example to propose using the faster models

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>
@worktrunk-bot
Copy link
Copy Markdown
Collaborator Author

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 -m anthropic/claude-haiku-4.5 --variant fast — though I'm not 100% sure on the exact flag syntax since I couldn't verify against their docs. Happy to adjust if the flags are different.

@worktrunk-bot worktrunk-bot changed the title docs: add opencode to LLM commit tools docs: add opencode and condense other LLM commit tools Mar 6, 2026
@max-sixty max-sixty merged commit b49ab2b into main Mar 6, 2026
22 checks passed
@max-sixty max-sixty deleted the docs/add-opencode-llm-commits branch March 6, 2026 03:45
@max-sixty
Copy link
Copy Markdown
Owner

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

@worktrunk-bot
Copy link
Copy Markdown
Collaborator Author

Good question! Here's what I found:

  • Codex: Supports --no-system-prompt (or -N) to skip the system prompt entirely. That should help with speed. It can also take --system-prompt "..." if you want a minimal one instead.
  • opencode: I'm less sure here — I don't see a clear --no-system-prompt equivalent in their docs. It might be configurable via their config file, but I'd want someone with hands-on experience to confirm.

If either of these would be worth documenting in the LLM commits page, happy to open a follow-up PR.

@max-sixty
Copy link
Copy Markdown
Owner

yes, please follow-up with the codex change; and search online for whether this exists in opencode

worktrunk-bot added a commit that referenced this pull request Mar 6, 2026
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>
@worktrunk-bot
Copy link
Copy Markdown
Collaborator Author

Done — opened #1300 which adds -c system_prompt='' to the Codex example.

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.

max-sixty pushed a commit that referenced this pull request Mar 6, 2026
## 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>
max-sixty added a commit that referenced this pull request Apr 6, 2026
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Opencode support

2 participants