Repository navigation
fix(cli): algorithms show names the algorithms run recipe with --model and --base-url - #1294
Merged
Merged
Conversation
…l and --base-url Closes #1293
Collaborator
Author
|
Review (Birfy) Tip SHA: eeb4342
|
Birfy
enabled auto-merge (squash)
November 26, 2026 22:33
This was referenced Nov 27, 2026
Birfy
added a commit
that referenced
this pull request
Nov 27, 2026
…1297) Closes #1295 Base: 23b1b1e Tip SHA: a7dc87a ## What changed On tip `23b1b1eb`, #1294 and earlier first-run work already named `plan <spec> --probe` on `algorithms run`, a successful `plan`, the demo footers, and the README / start / plugin-quickstart blocks. A successful `init` — the command those footers tell a new user to run — still ended with the short follow-up: ``` then: agentdescent plan /path/spec.json ``` `--json` `next` was the same short line. Following it skipped the preflight every other first-run surface has been teaching since #1218 / #1232. When `--model` / `--base-url` were omitted, `init` exited 0, warned that `plan` would refuse the placeholders, and then immediately recommended that failing `plan`. `write_starter_spec` now appends `then: agentdescent plan <spec> --probe` when the written spec is plan-ready, and a repair line (`re-run with --model / --base-url, or fill the placeholders in <spec>, then agentdescent plan <spec> --probe`) when placeholders remain. `policy_slot` / missing-cases `next:` lines are unchanged. No model name is guessed. `init` still does not plan. `changelog.d/1295-init-then-probe.md`. No change to the placeholder-refusal behaviour of `init` / `plan`. ## Verification Tip SHA: a7dc87a Ran: - `pytest -q -o addopts='' tests/test_cli_init_policy_slot.py tests/test_cli_json_errors.py tests/test_first_run_caps.py` → 59 passed - `pytest -q -o addopts='' tests/test_init_default_agent.py tests/test_init_key_aware_reflect.py tests/test_init_doctor_opencode_ark.py tests/test_guess_kind_skill_library.py tests/test_skill_library_kind.py tests/test_cli_skill_library_seed.py tests/test_init_data_columns.py tests/test_init_honor_agent.py` → 141 passed - `python -m tools.changelog_fragments check` → 53 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
Birfy
added a commit
that referenced
this pull request
Nov 27, 2026
…art (#1298) Closes #1296 Base: 224e552 Tip SHA: ae85e51 ## What changed On tip `224e5521`, #1294 / #1297 and earlier first-run work already named `plan --probe` then a capped `evolve` on the CLI (`algorithms run`, a successful `plan`, `init`, the demo footers, and the host skills). MCP `algorithm_spec` — documented as the same verb as `algorithms run` — still ended a successful call with: ``` next: show the user this estimate; after their yes, call start with `spec` ``` A host that follows the tool's own `next`, rather than the skill / slash-command prose, would start the run unprobed and uncapped. A related gap on the same Path A surface: MCP `plan(spec)` with the default `probe=false` returned `ok: true` and no `next` field at all, while the CLI counterpart already names `plan --probe`, then `evolve --max-calls N`. A successful `algorithm_spec` now returns a `next` that names `plan(spec, probe=true)` and `start` with `max_calls` from `estimate.agent_calls_upper_bound` (or `<N>` when no bound is known). A successful MCP `plan` without `probe` returns a `next` in the same shape. The plan tool description mentions this `next`. No model name is guessed. `algorithm_spec` still does not probe itself. `changelog.d/1296-mcp-algorithm-spec-next.md`. No change to the probe-refusal contract (`ok: false`, `ready: false`, repair `next`). CLI `algorithms run --json` is unchanged. ## Verification Tip SHA: ae85e51 Ran: - `pytest -q -o addopts='' tests/test_mcp_algorithm_spec.py tests/test_mcp_plan_probe.py tests/test_mcp_algorithm_spec_default_out.py tests/test_mcp_algorithm_spec_target_dir.py tests/test_first_run_caps.py tests/test_mcp.py` → 95 passed - `pytest -q -o addopts='' tests/test_mcp_call_limit.py tests/test_connection_kwargs.py tests/test_cli_algorithms_run.py` → 81 passed (together with the algorithm_spec file already counted above) - `python -m tools.changelog_fragments check` → 54 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 #1293
Base: d7dccf5
Tip SHA: eeb4342
What changed
On tip
d7dccf5, #1292 already named--model <model> [--base-url <url>]on leftoveralgorithms runrefusal 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 copyablealgorithms runline.describe_algorithm(andlist_algorithms, which already usesdescribe()) returned the same object, so a host that listed a card still had to invent the Path A verb and the flagsplanrequires.Algorithm.describe()now carriesrun, 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_textprints it as arun:line. Thedescribe_algorithmtool 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 skippedpython -m tools.changelog_fragments check→ 52 changelog fragment(s) OKpython -m tools.gen_api_docs --check→ docs/api.md is up to dateNot run: