Skip to content

feat(cli): add cron model override flags#8239

Open
anthhub wants to merge 1 commit into
NousResearch:mainfrom
anthhub:feat/cron-model-option
Open

feat(cli): add cron model override flags#8239
anthhub wants to merge 1 commit into
NousResearch:mainfrom
anthhub:feat/cron-model-option

Conversation

@anthhub

@anthhub anthhub commented Apr 12, 2026

Copy link
Copy Markdown

What does this PR do?

Adds --model support to hermes cron create and hermes cron edit, and surfaces the configured model in CLI output.

The cronjob tool already supports per-job model overrides, but the standalone CLI subcommands did not expose that capability.

Related Issue

Fixes #8207

Type of Change

  • ✨ New feature (non-breaking change that adds functionality)
  • ✅ Tests (adding or improving test coverage)
  • 📝 Documentation update

Changes Made

  • hermes_cli/main.py
    • added --model to hermes cron create
    • added --model to hermes cron edit
  • hermes_cli/cron.py
    • pass model through to the cronjob tool on create/update
    • show Model: in create/edit/list output when a per-job override exists
  • tests/hermes_cli/test_cron.py
    • added coverage for creating jobs with a model override
    • added coverage for editing/clearing a job model override
    • added coverage for list output including the model
  • website/docs/user-guide/features/cron.md
    • documented --model examples for create/edit

How to Test

  1. Create a cron job with a pinned model:
    hermes cron create "every 1h" "Run a task" --model openai/gpt-5.4-mini
  2. Edit an existing job to change the model:
    hermes cron edit <job_id> --model anthropic/claude-sonnet-4.6
  3. Run hermes cron list and verify the model is shown for jobs that have an override.

Or run:

python -m pytest tests/hermes_cli/test_cron.py -q -n0

Checklist

Code

  • I've read the Contributing Guide
  • My commit messages follow Conventional Commits
  • I searched for existing PRs to make sure this isn't a duplicate
  • My PR contains only changes related to this fix/feature
  • I've run relevant pytest coverage locally
  • I've added tests for my changes
  • I've tested on my platform:
    • macOS

Documentation & Housekeeping

  • I've updated relevant documentation
  • N/A — no config schema changes
  • I've considered cross-platform impact
  • N/A — no tool schema changes

@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard comp/cron Cron scheduler and job management labels Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard comp/cron Cron scheduler and job management P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Model selection option for cron subcommand

2 participants