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
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