Files
ansible/roles/mac/files/hermes-scripts/hermes-model-context.sh
T
PhilandClaude Opus 5.5 a0e49f4670 Mac: Hermes models (Sol chat, cheap side tasks) and monthly model review
Models, from the Nov 2026 review (Nous Hermes Index, OpenRouter data):
- chat: openai/gpt-6.1-sol (user's pick), reasoning high (was ultra)
- side tasks (compression, approval, titles, mcp, memory query rewrite,
  curator, mail monitor) and unpinned cron: z-ai/glm-5.3-flash
- subagents: deepseek/deepseek-v4.1-flash
- /model aliases: deepseek, haiku
agent.reasoning_effort needs --force (hermes-agent #140221), so settings
can list keys in hermes_settings_force. `config get` exits 1 for unset
keys without a default; that now reads as unset, not a failure.

hermes-model-review: monthly cron job on Sol (pinned, high effort,
continuity) that redoes this research and sends keep/change
recommendations as Ansible keys to Telegram. A script injects the live
model setup and 30-day usage into its prompt. hermes_cron_jobs gains
model/provider, reasoning_effort and continuity.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:13:00 -07:00

16 lines
847 B
Bash

#!/bin/bash
# Injected into the monthly model review's prompt: the live model setup and
# last month's usage, which the agent can't read from inside its sandbox.
h="$HOME/.local/bin/hermes"
echo "## Current Hermes model setup (cogitator-02)"
for k in model.provider model.default agent.reasoning_effort model_aliases \
auxiliary.compression.model auxiliary.approval.model \
auxiliary.title_generation.model auxiliary.mcp.model \
auxiliary.memory_query_rewrite.model auxiliary.curator.model \
auxiliary.monitor.model cron.model delegation.model; do
printf -- '- %s: %s\n' "$k" "$("$h" config get "$k" 2>/dev/null | tr '\n' ' ')"
done
echo
echo "## Usage over the last 30 days (hermes insights)"
"$h" insights --days 30 2>/dev/null | sed -n '/Overview/,/Activity Patterns/p' | grep -v -E '^[[:space:]]*$|─'