From e32109076dc039effcd44f2a8e48d97b5c061c8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Thu, 1 Oct 2026 22:25:53 +0200 Subject: [PATCH] Describe --model in the companions skill The Claude Code call now says how to pick a model: an alias (fable, opus, haiku) for the latest of a family or a full name to pin a version. The companions check greps the generated skill for the flag. --- checks/default.nix | 1 + modules/companions.nix | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/checks/default.nix b/checks/default.nix index 5d17fe5d9c0521986cef7f9ab03993788ad32353..ebbf9fa4652888d1935e55e6a445ae131c56eae4 100644 --- a/checks/default.nix +++ b/checks/default.nix @@ -306,6 +306,7 @@ in skill=$HOME/.local/agent-environments/claude-work/skills/companions/SKILL.md grep -qF '`codex-pers exec --sandbox read-only' $skill || fail "codex call missing from skill" grep -qF '`claude-work -p ""' $skill || fail "claude call missing from skill" + grep -qF -- '--model' $skill || fail "model choice missing from skill" # The companion runs with its own login and without companions of its own. $companion exec x diff --git a/modules/companions.nix b/modules/companions.nix index 4f0f0ed8ac7ce4c5cee87e204d690d1eb877cca8..8eb43d655f6e4d920b6069332c8e3ae2386890c2 100644 --- a/modules/companions.nix +++ b/modules/companions.nix @@ -53,6 +53,10 @@ let - **Claude Code** (`-p`): prints the final answer on stdout. Tools that need approval are refused in this mode, so it is effectively read-only. Allow specific commands with `--allowedTools 'Bash(git diff:*)'` when needed. + Pick the model with `--model`: an alias for the latest of a family + (`fable` is the strongest, then `opus`, then `haiku`) or a full name such + as `claude-fable-5-1` to pin a version. Without it the profile's default + model answers. - **Codex** (`exec`): the final answer goes to `-o `, the transcript to stderr. Keep `< /dev/null`: with stdin open it waits forever ("Reading additional input from stdin...").