From ca0156a69887412daa23f519974228ddf3cd2fcc Mon Sep 17 00:00:00 2001 From: Bruno Pagis Date: Sat, 31 Oct 2026 15:01:50 +0100 Subject: [PATCH 1/2] Add Mistral Vibe to the default coding agents Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- bin/omarchy-agent | 6 ++++++ bin/omarchy-default-agent | 5 +++-- default/i18n/en/menu.json | 3 +++ default/omarchy/omarchy-menu.jsonc | 1 + etc/mise/conf.d/omarchy-tools.toml | 1 + manual/17-ai.md | 1 + 6 files changed, 15 insertions(+), 2 deletions(-) diff --git a/bin/omarchy-agent b/bin/omarchy-agent index ec632b983394..f1f24066a0c7 100755 --- a/bin/omarchy-agent +++ b/bin/omarchy-agent @@ -197,6 +197,12 @@ commandcode) command=(commandcode --yolo) [[ -n ${prompt:-} ]] && command+=(-- "$prompt") ;; +vibe) + # Permission prompts follow Vibe's own config; a positional prompt seeds + # the interactive session. + command=(vibe) + [[ -n ${prompt:-} ]] && command+=("$prompt") + ;; *) echo "Unsupported default agent: $agent" >&2 exit 1 diff --git a/bin/omarchy-default-agent b/bin/omarchy-default-agent index 69d4c229194e..f71bdf7e6d26 100755 --- a/bin/omarchy-default-agent +++ b/bin/omarchy-default-agent @@ -1,7 +1,7 @@ #!/bin/bash # omarchy:summary=Set and launch the default coding agent -# omarchy:args=[pi|omp|opencode|ori|claude|codex|grok|openclaw|agy|hermes|copilot|crush|cursor-agent|muse|kimi|qwen|dsh|mcode|kiro-cli|freebuff|kilo|devin|amp|commandcode] +# omarchy:args=[pi|omp|opencode|ori|claude|codex|grok|openclaw|agy|hermes|copilot|crush|cursor-agent|muse|kimi|qwen|dsh|mcode|kiro-cli|freebuff|kilo|devin|amp|commandcode|vibe] # omarchy:examples=omarchy default agent | omarchy default agent codex | omarchy default agent claude installing=false @@ -64,8 +64,9 @@ devin | devin-cli) ;; amp | ampcode) agent="amp"; name="Amp" ;; commandcode | command-code | cmdc) agent="commandcode"; name="Command Code"; agent_package="npm:command-code" ;; +vibe) agent="vibe"; name="Vibe"; agent_package="pipx:mistral-vibe" ;; *) - echo "Usage: omarchy-default-agent " + echo "Usage: omarchy-default-agent " exit 1 ;; esac diff --git a/default/i18n/en/menu.json b/default/i18n/en/menu.json index bafed044544e..1a75fd9c7ddf 100644 --- a/default/i18n/en/menu.json +++ b/default/i18n/en/menu.json @@ -568,6 +568,9 @@ "setup.default.agent.qwen": { "label": "Qwen Code" }, + "setup.default.agent.vibe": { + "label": "Vibe" + }, "setup.default.browser": { "label": "Browser", "title": "Default Browser" diff --git a/default/omarchy/omarchy-menu.jsonc b/default/omarchy/omarchy-menu.jsonc index da07a04ff30f..d6023473e72b 100644 --- a/default/omarchy/omarchy-menu.jsonc +++ b/default/omarchy/omarchy-menu.jsonc @@ -219,6 +219,7 @@ "setup.default.agent.ori": {"icon":"","iconFont":"omarchy","label":"Ori","checked":"[[ \"$(omarchy-default-agent)\" == \"ori\" ]]","action":"omarchy-default-agent ori"}, "setup.default.agent.pi": {"icon":"","iconFont":"omarchy","label":"Pi","checked":"[[ \"$(omarchy-default-agent)\" == \"pi\" ]]","action":"omarchy-default-agent pi"}, "setup.default.agent.qwen": {"icon":"","iconFont":"omarchy","label":"Qwen Code","checked":"[[ \"$(omarchy-default-agent)\" == \"qwen\" ]]","action":"omarchy-default-agent qwen"}, + "setup.default.agent.vibe": {"icon":"󰖐","label":"Vibe","checked":"[[ \"$(omarchy-default-agent)\" == \"vibe\" ]]","action":"omarchy-default-agent vibe"}, "setup.default.browser": {"icon":"","label":"Browser","title":"Default Browser"}, "setup.default.browser.chromium": {"icon":"","label":"Chromium","checked":"[[ \"$(omarchy-default-browser)\" == \"chromium\" ]]","action":"omarchy-default-browser chromium"}, "setup.default.browser.chrome": {"icon":"󰊯","label":"Chrome","checked":"[[ \"$(omarchy-default-browser)\" == \"chrome\" ]]","action":"omarchy-default-browser chrome"}, diff --git a/etc/mise/conf.d/omarchy-tools.toml b/etc/mise/conf.d/omarchy-tools.toml index b784d7198a91..84b932d56f35 100644 --- a/etc/mise/conf.d/omarchy-tools.toml +++ b/etc/mise/conf.d/omarchy-tools.toml @@ -34,6 +34,7 @@ node = { version = "latest", lazy = true, minimum_release_age = "0s" } "npm:command-code" = { version = "latest", lazy = true, auto_update = "4h", lazy_bins = ["commandcode"], minimum_release_age = "0s" } "npm:freebuff" = { version = "latest", lazy = true, auto_update = "4h", lazy_bins = ["freebuff"], minimum_release_age = "0s" } oh-my-pi = { version = "latest", lazy = true, auto_update = "4h", minimum_release_age = "0s" } +"pipx:mistral-vibe" = { version = "latest", lazy = true, auto_update = "4h", lazy_bins = ["vibe"], minimum_release_age = "0s" } opencode = { version = "latest", lazy = true, auto_update = "4h", minimum_release_age = "0s" } ori = { version = "latest", lazy = true, minimum_release_age = "0s" } pi = { version = "latest", lazy = true, auto_update = "4h", minimum_release_age = "0s" } diff --git a/manual/17-ai.md b/manual/17-ai.md index 5da16aeab347..dda8f0bdcee6 100644 --- a/manual/17-ai.md +++ b/manual/17-ai.md @@ -27,6 +27,7 @@ Omarchy includes launchers for the coding agents below without choosing a defaul | `ori` | [Ori](https://openrouter.ai/docs/guides/ori/harness), OpenRouter's harness | | `pi` | [Mario Zechner's Pi](https://github.com/badlogic/pi-mono) | | `qwen` | [Qwen Code](https://github.com/QwenLM/qwen-code), Alibaba's coding agent | +| `vibe` | [Mistral Vibe](https://github.com/mistralai/mistral-vibe), Mistral's coding agent | `ori` is the odd one out: it runs the other harnesses against OpenRouter's whole model catalog, so `ori claude`, `ori codex`, or `ori opencode` start those agents on whichever model you point them at, and `ori code` is Ori's own agent. From e0532a16cbc8b215779728d62631c5f80867bcc5 Mon Sep 17 00:00:00 2001 From: Bruno Pagis Date: Sat, 31 Oct 2026 22:43:37 +0100 Subject: [PATCH 2/2] vibe collector: bill a model entry that names no provider on Mistral /model persists a bare alias and a thinking level to config.toml, with no provider to read. Such an entry shadowed the built-in model list, so its sessions resolved to no provider and were billed to no one and the panel showed no Vibe usage at all. A model Vibe serves without an explicit provider is one of its own: bill it on the default Mistral backend, and likewise a config that names a model with no models list. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- bin/omarchy-agent-usage-vibe | 11 ++++++++++- test/shell.d/agent-usage-vibe-test.sh | 12 ++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/bin/omarchy-agent-usage-vibe b/bin/omarchy-agent-usage-vibe index c1e23418c8bd..e604f4d6fbb2 100755 --- a/bin/omarchy-agent-usage-vibe +++ b/bin/omarchy-agent-usage-vibe @@ -219,12 +219,21 @@ def session_model(meta): None when it names no model.""" config = obj(meta.get("config")) model = resolve_model(config) + if not isinstance(model, dict): + # A config without a models list still names the model it ran on, and + # Vibe serves a model it names no entry for on its default backend. + alias = config.get("active_model") + model = {"alias": alias} if isinstance(alias, str) and alias.strip() else None if not isinstance(model, dict): return None label = model_label(model.get("alias") or model.get("name")) if label is None: return None - return label, provider_owner(str(model.get("provider") or ""), config.get("providers"), str(model.get("name") or "")) + # An entry that names no provider is one of Vibe's own models: /model + # persists a bare alias and thinking level, and the built-in list serves + # it on the default Mistral backend. + provider = str(model.get("provider") or PROVIDER) + return label, provider_owner(provider, config.get("providers"), str(model.get("name") or "")) def count_prompts(messages_path): diff --git a/test/shell.d/agent-usage-vibe-test.sh b/test/shell.d/agent-usage-vibe-test.sh index 9b2e751214f4..7a71a733a564 100755 --- a/test/shell.d/agent-usage-vibe-test.sh +++ b/test/shell.d/agent-usage-vibe-test.sh @@ -244,6 +244,18 @@ with contextlib.redirect_stderr(io.StringIO()): expect("a Unified Harness session on an alias config.toml dropped is billed to no one", [record["todayTokensByModel"], local["todayTokensByModel"]], [{}, {}], [record, local]) +# An entry /model persists names a bare alias and a thinking level, with no +# provider: it is one of Vibe's own models, served on the default Mistral +# backend, so its sessions are Mistral's. +sandbox() +(home() / ".vibe").mkdir(parents=True, exist_ok=True) +(home() / ".vibe" / "config.toml").write_text('[[models]]\nalias = "mistral-medium-3.5"\nthinking = "high"\n') +write_unified("ses_builtin", usage(500, 50), entries=[message("b1", "user", "turn_start")], alias="mistral-medium-3.5") +with contextlib.redirect_stderr(io.StringIO()): + record = vibe("--force") +expect("a model entry that names no provider runs on Vibe's default Mistral backend", + [record["todayTokensByModel"], record["todayPrompts"]], [{"mistral-medium-3.5": 550}, 1], record) + # ------------------------------------------------------- model resolution sandbox()