Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Add opencode, llm, and aichat to example config (#1533)

Maximilian Roos7512d8695ea9
diff --git a/dev/config.example.toml b/dev/config.example.toml
index 3bfdeca66..87ba4212a 100644
--- a/dev/config.example.toml
+++ b/dev/config.example.toml
@@ -49,6 +49,21 @@
# # [commit.generation]
# # command = "codex exec -m gpt-5.1-codex-mini -c model_reasoning_effort='low' -c system_prompt='' --sandbox=read-only --json - | jq -sr '[.[] | select(.item.type? == \"agent_message\")] | last.item.text'"
#
+# ### opencode
+#
+# # [commit.generation]
+# # command = "opencode run -m anthropic/claude-haiku-4.5 --variant fast"
+#
+# ### llm
+#
+# # [commit.generation]
+# # command = "llm -m claude-haiku-4.5"
+#
+# ### aichat
+#
+# # [commit.generation]
+# # command = "aichat -m claude:claude-haiku-4.5"
+#
# See LLM commits docs (https://worktrunk.dev/llm-commits/) for setup and Custom prompt templates (#custom-prompt-templates) for template customization.
#
# ## Command config
diff --git a/docs/content/config.md b/docs/content/config.md
index f8f4fa1c6..c21c543f9 100644
--- a/docs/content/config.md
+++ b/docs/content/config.md
@@ -125,6 +125,27 @@ Generate commit messages automatically during merge. Requires an external CLI to
# command = "codex exec -m gpt-5.1-codex-mini -c model_reasoning_effort='low' -c system_prompt='' --sandbox=read-only --json - | jq -sr '[.[] | select(.item.type? == \"agent_message\")] | last.item.text'"
```
+### opencode
+
+```toml
+# [commit.generation]
+# command = "opencode run -m anthropic/claude-haiku-4.5 --variant fast"
+```
+
+### llm
+
+```toml
+# [commit.generation]
+# command = "llm -m claude-haiku-4.5"
+```
+
+### aichat
+
+```toml
+# [commit.generation]
+# command = "aichat -m claude:claude-haiku-4.5"
+```
+
See [LLM commits docs](@/llm-commits.md) for setup and [Custom prompt templates](#custom-prompt-templates) for template customization.
## Command config
diff --git a/skills/worktrunk/reference/config.md b/skills/worktrunk/reference/config.md
index 9292867d5..440fb642b 100644
--- a/skills/worktrunk/reference/config.md
+++ b/skills/worktrunk/reference/config.md
@@ -116,6 +116,27 @@ Generate commit messages automatically during merge. Requires an external CLI to
# command = "codex exec -m gpt-5.1-codex-mini -c model_reasoning_effort='low' -c system_prompt='' --sandbox=read-only --json - | jq -sr '[.[] | select(.item.type? == \"agent_message\")] | last.item.text'"
```
+### opencode
+
+```toml
+# [commit.generation]
+# command = "opencode run -m anthropic/claude-haiku-4.5 --variant fast"
+```
+
+### llm
+
+```toml
+# [commit.generation]
+# command = "llm -m claude-haiku-4.5"
+```
+
+### aichat
+
+```toml
+# [commit.generation]
+# command = "aichat -m claude:claude-haiku-4.5"
+```
+
See [LLM commits docs](https://worktrunk.dev/llm-commits/) for setup and [Custom prompt templates](#custom-prompt-templates) for template customization.
## Command config
diff --git a/src/cli/mod.rs b/src/cli/mod.rs
index a2be64dc4..e8466aad1 100644
--- a/src/cli/mod.rs
+++ b/src/cli/mod.rs
@@ -1634,6 +1634,27 @@ Generate commit messages automatically during merge. Requires an external CLI to
# command = "codex exec -m gpt-5.1-codex-mini -c model_reasoning_effort='low' -c system_prompt='' --sandbox=read-only --json - | jq -sr '[.[] | select(.item.type? == \"agent_message\")] | last.item.text'"
```
+### opencode
+
+```toml
+# [commit.generation]
+# command = "opencode run -m anthropic/claude-haiku-4.5 --variant fast"
+```
+
+### llm
+
+```toml
+# [commit.generation]
+# command = "llm -m claude-haiku-4.5"
+```
+
+### aichat
+
+```toml
+# [commit.generation]
+# command = "aichat -m claude:claude-haiku-4.5"
+```
+
See [LLM commits docs](@/llm-commits.md) for setup and [Custom prompt templates](#custom-prompt-templates) for template customization.
## Command config
diff --git a/tests/snapshots/integration__integration_tests__help__help_config_create.snap b/tests/snapshots/integration__integration_tests__help__help_config_create.snap
index 6100555d5..1a1d6637f 100644
--- a/tests/snapshots/integration__integration_tests__help__help_config_create.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_config_create.snap
@@ -108,6 +108,21 @@ Creates ~/.config/worktrunk/config.toml with the following content:
  # # [commit.generation]
  # # command = "codex exec -m gpt-5.1-codex-mini -c model_reasoning_effort='low' -c system_prompt='' --sandbox=read-only --json - | jq -sr '[.[] | select(.item.type? == \"agent_message\")] | last.item.text'"
  #
+  # ### opencode
+  #
+  # # [commit.generation]
+  # # command = "opencode run -m anthropic/claude-haiku-4.5 --variant fast"
+  #
+  # ### llm
+  #
+  # # [commit.generation]
+  # # command = "llm -m claude-haiku-4.5"
+  #
+  # ### aichat
+  #
+  # # [commit.generation]
+  # # command = "aichat -m claude:claude-haiku-4.5"
+  #
  # See LLM commits docs (https://worktrunk.dev/llm-commits/) for setup and Custom prompt templates (#custom-prompt-templates) for template customization.
  #
  # ## Command config
diff --git a/tests/snapshots/integration__integration_tests__help__help_config_long.snap b/tests/snapshots/integration__integration_tests__help__help_config_long.snap
index a1dc20b4e..361409fc5 100644
--- a/tests/snapshots/integration__integration_tests__help__help_config_long.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_config_long.snap
@@ -153,6 +153,21 @@ Generate commit messages automatically during merge. Requires an external CLI to
  # [commit.generation]
  # command = "codex exec -m gpt-5.1-codex-mini -c model_reasoning_effort='low' -c system_prompt='' --sandbox=read-only --json - | jq -sr '[.[] | select(.item.type? == \"agent_message\")] | last.item.text'"
+opencode
+
+  # [commit.generation]
+  # command = "opencode run -m anthropic/claude-haiku-4.5 --variant fast"
+
+llm
+
+  # [commit.generation]
+  # command = "llm -m claude-haiku-4.5"
+
+aichat
+
+  # [commit.generation]
+  # command = "aichat -m claude:claude-haiku-4.5"
+
See LLM commits docs for setup and Custom prompt templates for template customization.
Command config