Repository navigation
fix(plugins): first-run algorithms run recipes name --model and --base-url - #1276
Merged
Merged
Conversation
…e-url The demo --algorithm footer already printed those flags, but the host skill, /algorithms slash command (and its algorithm_spec run branch), Grok Bot HOST.md, the generated algorithms cheatsheet, and the plugin-quickstart refusal line still showed a bare algorithms run, which exits 2 on placeholders. Pin the leftovers in tests/test_first_run_caps.py. Closes #1275
Collaborator
Author
|
Review (Birfy) Tip SHA: 0af878b
|
Birfy
enabled auto-merge (squash)
November 25, 2026 04:30
The first-run recipes now name --model and --base-url, but integrations/dsh-agentdescent still had the old README line and embedded SKILL.md, so test_checked_in_dsh_plugin_matches_the_package failed on CI.
Collaborator
Author
|
Review (Birfy) Tip SHA: fc0bd00
|
Birfy
added a commit
that referenced
this pull request
Nov 26, 2026
…base-url (#1288) Closes #1287 Base: 3a388a1 Tip SHA: 86ad8f9 ## What changed On tip `3a388a1`, a first successful `agentdescent demo` still taught an `init` command that `plan` refuses. #1276 already named `--model <model> [--base-url <url>]` on leftover `algorithms run` recipes and the `demo --algorithm` footer; the default path did not. - In `agentdescent/cli.py`, the default / `--kind text` / `--kind skill_library` `demo` footer `own_steps` (including the MCP `demo` `next` list) now add those flags on the `init` line. - The same flags on the first-run `init ./my-skill` blocks in README, `docs/start.md`, and the first plugin-quickstart fence, and on the generated `docs/algorithms.md` cheatsheet `init` line. - `tests/test_first_run_caps.py` pins `--model` / `--base-url` on those surfaces, including `demo --kind text`, and still asserts a bare `init` without the flags writes placeholders and `plan` refuses them. - `changelog.d/1287-demo-init-model-flags.md`. No change to the placeholder-refusal behaviour of `init` / `plan`. No model name is guessed. ## Verification Tip SHA: 86ad8f9 Ran: - `pytest -q -o addopts='' tests/test_first_run_caps.py tests/test_demo.py tests/test_init_key_aware_reflect.py` → 79 passed - `python -m tools.gen_algorithms_docs --check` → docs/algorithms.md is up to date - `python -m tools.changelog_fragments check` → 49 changelog fragment(s) OK - `python -m tools.gen_api_docs --check` → docs/api.md is up to date Not run: - Full offline suite locally — the CI test matrix is the line - `mkdocs build --strict` — no nav change; CI `build` covers the docs path
This was referenced Nov 26, 2026
Birfy
added a commit
that referenced
this pull request
Nov 26, 2026
…base-url (#1292) Closes #1291 Base: ffae7bc Tip SHA: d30191c ## What changed On tip `ffae7bcd`, #1276 already named `--model <model> [--base-url <url>]` on first-run `algorithms run` recipes, including the plugin-quickstart refusal *line*. Two live CLI refusal recipes a user would copy were left behind: - `demo --algorithm NAME` (and MCP `demo`, which uses the same `demo_payload`) when `NAME` is registered but not an offline demo card now names those flags on the "run it for real" command. - `kind_mismatch_message` now names the same flags on the one-file retarget hint (`algorithms run … --kind text` and the `init` form). - Tests pin both recipes. The live-model path is exercised by shrinking `OFFLINE_ALGORITHMS` so a built-in card takes it. - `changelog.d/1291-run-refusal-model-flags.md`. No change to the placeholder-refusal behaviour of `init` / `algorithms run` / `plan`. No model name is guessed. ## Verification Tip SHA: d30191c Ran: - `pytest -q -o addopts='' tests/test_demo.py tests/test_cli_algorithms_run.py tests/test_mcp.py tests/test_first_run_caps.py` → 124 passed, 6 skipped - `python -m tools.changelog_fragments check` → 51 changelog fragment(s) OK Not run: - Full offline suite locally — the CI test matrix is the line
Birfy
added a commit
that referenced
this pull request
Nov 26, 2026
…l and --base-url (#1294) Closes #1293 Base: d7dccf5 Tip SHA: eeb4342 ## What changed On tip `d7dccf5`, #1292 already named `--model <model> [--base-url <url>]` on leftover `algorithms run` refusal and kind-mismatch hints. The card a user or host looks at *before* running a method still did not: - `algorithms show NAME` (and `--json`) printed summary, kinds, params and docs, but no copyable `algorithms run` line. - MCP `describe_algorithm` (and `list_algorithms`, which already uses `describe()`) returned the same object, so a host that listed a card still had to invent the Path A verb and the flags `plan` requires. `Algorithm.describe()` now carries `run`, in the same recipe 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). `_algorithm_card_text` prints it as a `run:` line. The `describe_algorithm` tool description names the field. No model name is guessed. `changelog.d/1293-show-run-recipe.md`. No change to the placeholder-refusal behaviour of `init` / `algorithms run` / `plan`. ## Verification Tip SHA: eeb4342 Ran: - `pytest -q -o addopts='' tests/test_algorithms.py tests/test_mcp.py tests/test_cli_algorithms_run.py tests/test_first_run_caps.py tests/test_demo.py` → 128 passed, 6 skipped - `python -m tools.changelog_fragments check` → 52 changelog fragment(s) OK - `python -m tools.gen_api_docs --check` → docs/api.md is up to date Not run: - Full offline suite locally — the CI test matrix is the line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1275
Base: 0a6e782
Tip SHA: 0af878b
What changed
A first look at a named algorithm card needs
--modeland--base-url(and--key-envwhen several keys are set).initnever guesses those values; without themalgorithms runwrites placeholders and exits 2, so there is no plan estimate. Thedemo --algorithmfooter already taught the working command; the leftover first-run recipes did not.SKILL.md, and the rendered Claude plugin copy): the refused-demo offer and the first-look recipe now name--model <model> [--base-url <url>].ALGORITHMS_COMMAND(Claude / Codex / OpenCode, kept byte-identical): the MCPalgorithm_specrun branch now takes the user'smodel/base_url(andkey_envwhen needed), and the Without-MCP command names the same flags.HOST.md, the generateddocs/algorithms.mdcheatsheet, and the plugin-quickstart refusal line follow the same shape.tests/test_first_run_caps.pypins those leftovers, and still asserts a barealgorithms runwithout the flags exits non-zero on placeholders.changelog.d/1275-algorithms-run-model-flags.md.No change to the placeholder-refusal behaviour of
init/algorithms run/plan. No model name is guessed.Verification
Tip SHA: 0af878b
Ran:
pytest -q -o addopts='' tests/test_first_run_caps.py tests/test_slash_command_parity.py tests/test_integrations.py::test_checked_in_claude_plugin_matches_the_package→ 30 passedpython -m tools.gen_algorithms_docs --check→ docs/algorithms.md is up to datepython -m tools.changelog_fragments check→ 46 changelog fragment(s) OKpython -m tools.gen_api_docs --check→ docs/api.md is up to dateNot run:
mkdocs build --strict— no nav change; CIbuildcovers the docs path