~ruther/agent-environments

e32109076dc039effcd44f2a8e48d97b5c061c8b — František Boháček a month ago 81614f9
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.
2 files changed, 5 insertions(+), 0 deletions(-)

M checks/default.nix
M modules/companions.nix
M checks/default.nix => checks/default.nix +1 -0
@@ 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 "<prompt>"' $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

M modules/companions.nix => modules/companions.nix +4 -0
@@ 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 <answer-file>`, the
        transcript to stderr. Keep `< /dev/null`: with stdin open it waits forever
        ("Reading additional input from stdin...").