Skip to content

cli: leftover algorithms run refusal recipes still omit --model / --base-url that plan requires #1291

Done

Description

@Birfy

What happens

On tip ffae7bcd (after #1290 / #1276), first-run algorithms run recipes on the host skill, the /algorithms slash command, Grok Bot HOST.md, the generated docs/algorithms.md cheatsheet, and the plugin-quickstart refusal line already name --model <model> [--base-url <url>]. Two live CLI refusal recipes that a user would copy were not in that set:

  1. demo --algorithm NAME when NAME is a registered card but not an offline demo algorithm. The error still reads:

    Run it for real with `agentdescent algorithms run NAME <path> <cases.jsonl>`
    

    docs/plugin-quickstart.md already documents this refusal with --model <model> [--base-url <url>]. The CLI (and MCP demo, which uses the same demo_payload) does not. All seven built-in cards are in OFFLINE_ALGORITHMS today, so this path is a third-party or newly registered card, or a future card — but the page still promises the flags, and following the live error writes placeholders that plan refuses.

  2. kind_mismatch_message still suggests:

    agentdescent algorithms run NAME FILE --kind text
    

    (and the init … --algorithm NAME form) without those flags. This path is hit today: algorithms run gepa <skill-dir> is a common first-run mistake (gepa is text-only). Copying the hint then exits on placeholders instead of planning.

init / algorithms run never guess a model or endpoint.

Expected

Both refusal recipes should name --model <model> [--base-url <url>], the same shape #1276 already uses on first-run algorithms run recipes. Placeholder refusal stays. No model name is guessed.

Suggested fix

  • Add the flags to the demo --algorithm live-model refusal in agentdescent/cli.py.
  • Add the flags to both via="run" and via="init" hints in kind_mismatch_message.
  • Pin them in tests/test_demo.py and tests/test_cli_algorithms_run.py.
  • changelog.d/<n>-run-refusal-model-flags.md.

Acceptance

  • The demo --algorithm live-model error (CLI and MCP demo) includes --model <model> [--base-url <url>].
  • The kind-mismatch one-file hint includes the same flags.
  • pytest -q -o addopts='' tests/test_demo.py tests/test_cli_algorithms_run.py passes, including the new pins.
  • A bare algorithms run without the flags still refuses placeholders.

Activity

  1. added
    bug
    area:cli
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clibug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions