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.tomlindex 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 configdiff --git a/docs/content/config.md b/docs/content/config.mdindex 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 configdiff --git a/skills/worktrunk/reference/config.md b/skills/worktrunk/reference/config.mdindex 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 configdiff --git a/src/cli/mod.rs b/src/cli/mod.rsindex 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 configdiff --git a/tests/snapshots/integration__integration_tests__help__help_config_create.snap b/tests/snapshots/integration__integration_tests__help__help_config_create.snapindex 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 [2m~/.config/worktrunk/config.toml[0m with the following content:[107m [0m [2m# # [commit.generation][0m[107m [0m [2m# # 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'"[0m[107m [0m [2m#[0m+[107m [0m [2m# ### opencode[0m+[107m [0m [2m#[0m+[107m [0m [2m# # [commit.generation][0m+[107m [0m [2m# # command = "opencode run -m anthropic/claude-haiku-4.5 --variant fast"[0m+[107m [0m [2m#[0m+[107m [0m [2m# ### llm[0m+[107m [0m [2m#[0m+[107m [0m [2m# # [commit.generation][0m+[107m [0m [2m# # command = "llm -m claude-haiku-4.5"[0m+[107m [0m [2m#[0m+[107m [0m [2m# ### aichat[0m+[107m [0m [2m#[0m+[107m [0m [2m# # [commit.generation][0m+[107m [0m [2m# # command = "aichat -m claude:claude-haiku-4.5"[0m+[107m [0m [2m#[0m[107m [0m [2m# See LLM commits docs (https://worktrunk.dev/llm-commits/) for setup and Custom prompt templates (#custom-prompt-templates) for template customization.[0m[107m [0m [2m#[0m[107m [0m [2m# ## Command config[0mdiff --git a/tests/snapshots/integration__integration_tests__help__help_config_long.snap b/tests/snapshots/integration__integration_tests__help__help_config_long.snapindex 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[107m [0m [2m# [commit.generation][0m[107m [0m [2m# 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'"[0m+[32mopencode[0m++[107m [0m [2m# [commit.generation][0m+[107m [0m [2m# command = "opencode run -m anthropic/claude-haiku-4.5 --variant fast"[0m++[32mllm[0m++[107m [0m [2m# [commit.generation][0m+[107m [0m [2m# command = "llm -m claude-haiku-4.5"[0m++[32maichat[0m++[107m [0m [2m# [commit.generation][0m+[107m [0m [2m# command = "aichat -m claude:claude-haiku-4.5"[0m+See LLM commits docs for setup and Custom prompt templates for template customization.[1m[32mCommand config[0m