Skip to content

fix(plugins): first-run algorithms run recipes name --model and --base-url - #1276

Merged
Birfy merged 3 commits into
mainfrom
agent/1275-algorithms-run-model-flags
Nov 25, 2026
Merged

Birfy merged 3 commits into
mainfrom
agent/1275-algorithms-run-model-flags

Conversation

@Birfy

@Birfy Birfy commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

Closes #1275

Base: 0a6e782
Tip SHA: 0af878b

What changed

A first look at a named algorithm card needs --model and --base-url (and --key-env when several keys are set). init never guesses those values; without them algorithms run writes placeholders and exits 2, so there is no plan estimate. The demo --algorithm footer already taught the working command; the leftover first-run recipes did not.

  • Host skill (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 MCP algorithm_spec run branch now takes the user's model / base_url (and key_env when needed), and the Without-MCP command names the same flags.
  • Grok Bot HOST.md, the generated docs/algorithms.md cheatsheet, and the plugin-quickstart refusal line follow the same shape.
  • tests/test_first_run_caps.py pins those leftovers, and still asserts a bare algorithms run without 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 passed
  • python -m tools.gen_algorithms_docs --check → docs/algorithms.md is up to date
  • python -m tools.changelog_fragments check → 46 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

…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
@github-actions github-actions Bot added risk:T3 Risk tier T3 (core loop, release, process; needs Danyang's click), set by the controller agent-pr Pull request opened by an agent labels Nov 25, 2026
@Birfy

Birfy commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

Review (Birfy)

Tip SHA: 0af878b
Ran:

  • .github/scripts/risk_gate.py --repo ThinkFlowLab/agentdescent --pr 1276 → T3 (integrations/SKILL.md, integrations/init.py, and the rendered Claude plugin copies)
  • 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 at this tip → 30 passed
  • python -m tools.gen_algorithms_docs --check → docs/algorithms.md is up to date
  • python -m tools.changelog_fragments check → 46 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
    Findings:
  • No actionable defects. The leftover first-run algorithms run / algorithm_spec recipes now name --model and --base-url in the same shape the demo --algorithm footer already prints. A bare algorithms run without those flags still refuses placeholders. No model name is guessed, and placeholder-refusal behaviour is unchanged.
    Verdict: PASS

@Birfy
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.
@Birfy

Birfy commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

Review (Birfy)

Tip SHA: fc0bd00
Ran:

  • Merged origin/main into this branch (no rebase; no conflicts) so the tip includes docs: stop claiming a both-flags-off run is uncapped (#1268) #1278/test(docs): fail a citation pin the page stopped citing, reject :0 and ../ (#1265) #1277/fix(cli): name the limit that stopped the demo #1272
  • Regenerated integrations/dsh-agentdescent/README.md and lib/index.js from render_dsh_plugin() — CI had failed test_checked_in_dsh_plugin_matches_the_package because those two files still had the old algorithms run recipes without --model / --base-url
  • .github/scripts/risk_gate.py --repo ThinkFlowLab/agentdescent --pr 1276 → T3 (integrations SKILL / package, Claude plugin copies, and the regenerated dsh plugin README / lib/index.js; the subprocess hit on lib/index.js is prose inside the generated skill body, not a new shell-out)
  • pytest -q -o addopts='' tests/test_integrations.py::test_checked_in_dsh_plugin_matches_the_package tests/test_integrations.py::test_checked_in_claude_plugin_matches_the_package tests/test_first_run_caps.py tests/test_slash_command_parity.py at this tip → 31 passed
  • python -m tools.gen_algorithms_docs --check → docs/algorithms.md is up to date
  • python -m tools.changelog_fragments check → changelog fragments 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 on this tip is the line
  • mkdocs build --strict — CI build covers the docs path
    Findings:
  • No actionable defects. First-run algorithms run / algorithm_spec recipes now name --model and --base-url in the package skill, Claude copies, dsh plugin, and docs. A bare algorithms run without those flags still refuses placeholders.
    Verdict: PASS

@Birfy
Birfy merged commit 48fdc67 into main Nov 25, 2026
10 checks passed
@Birfy
Birfy deleted the agent/1275-algorithms-run-model-flags branch November 25, 2026 11:02
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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-pr Pull request opened by an agent risk:T3 Risk tier T3 (core loop, release, process; needs Danyang's click), set by the controller

Projects

None yet

Development

Successfully merging this pull request may close these issues.

plugin/docs: first-run algorithms run recipes still omit --model / --base-url that plan requires

1 participant