Skip to content

cli: algorithms show and describe_algorithm omit the algorithms run recipe with --model / --base-url #1293

Done

Description

@Birfy

What happens

On tip d7dccf5 (after #1292), first-run algorithms run recipes and the leftover refusal / kind-mismatch hints name --model <model> [--base-url <url>], so a copied command can plan. The card a user or host actually looks at before running a method does not.

  • agentdescent algorithms show NAME (and --json) prints summary, kinds, params and docs, but no copyable algorithms run line.
  • MCP describe_algorithm returns the same describe() object, so a host that did list_algorithms then describe_algorithm still has to invent the Path A verb (or already know to call algorithm_spec with the user's model / base_url).

init / algorithms run never guess the model or endpoint. The flags are what make a copied first run plan instead of writing placeholders and exiting 2. After algorithms list → algorithms show gepa, nothing on that card names them.

This is the same leftover-surface class as #1275 / #1291, now for the list / show / describe path that is supposed to get an already-supported card running quickly.

Expected

algorithms show, describe() and MCP describe_algorithm should include a run recipe in the same shape #1276 / #1292 already use, with a kind-aware target placeholder (<your-prompt.txt> for text-only cards, <your-skill-library> for a skill-library-only card, <your-skill-dir> when every kind is a directory, <path> when kinds mix text and directories). No model name is guessed.

Suggested fix

  • Add the recipe on Algorithm.describe() as run, and print it as a run: line from _algorithm_card_text.
  • Extend tests to pin --model / --base-url and the kind-aware placeholder on show / --json / describe_algorithm.
  • changelog.d/<n>-show-run-recipe.md.

No change to the placeholder-refusal behaviour of init / algorithms run / plan. No model name is guessed.

Acceptance

  • agentdescent algorithms show gepa (text-only) includes agentdescent algorithms run gepa <your-prompt.txt> <your-cases.jsonl> --model <model> [--base-url <url>].
  • A directory-only card such as evoskill uses <your-skill-dir>; a mixed-kind card such as archive_selection uses <path>.
  • --json and MCP describe_algorithm carry the same string in run.
  • pytest pins those recipes.
  • A bare algorithms run without the flags still writes placeholders and plan still refuses them.

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