Repository navigation
Description
What happens
On tip 2dd92cb (0.11.0, after #1274), a real 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 and no next: plan --probe / evolve --max-calls N.
agentdescent demo --algorithm rrsi already teaches the working command in its footer:
agentdescent algorithms run rrsi <your-prompt.txt> <your-cases.jsonl> --model <model> [--base-url <url>] --rounds 1 --workers 1 --out spec.json
agentdescent plan spec.json --probe
agentdescent evolve spec.json --max-calls <N>
The host skill, the /algorithms slash command (Claude / Codex / OpenCode, byte-identical), grok-bot HOST.md, and the generated docs/algorithms.md cheatsheet still show a bare algorithms run without those flags. MCP algorithm_spec already accepts model / base_url / key_env and says they come from the user, but the slash-command run branch tells the host to call it with only name, path, cases and params.
This is the same leftover-surface class as #1201 / #1217 / #1228 / #1232, now for the flags that make algorithms run actually plan.
docs/plugin-quickstart.md §4 already shows --model / --base-url on init. The earlier paragraph that points a refused offline demo at algorithms run NAME <path> <cases.jsonl> still omits them.
Repro
Fresh clone of ThinkFlowLab/agentdescent at 2dd92cb. pip install -e ".[mcp]". Isolated --home so this does not touch a real host tree.
agentdescent demo --algorithm rrsi --dir ./rrsi-demo
# footer names --model [--base-url], as above
# The recipe SKILL.md / docs/algorithms.md / HOST.md still print:
cd ./rrsi-demo
agentdescent algorithms run rrsi ./prompt.txt ./cases.jsonl --rounds 1 --workers 1 --out spec.jsonMeasured exit 2. The useful lines:
error: agent.model is still the placeholder '<your-model>' that `init` wrote; put the real value there (it comes from the user, never guess it); agent.default_base_url is still the placeholder '<your-endpoint-url>' ...
wrote spec.json
warning: `agent.model` and `agent.default_base_url` in spec.json are placeholders ...
next: fix spec.json, then agentdescent plan spec.json
The same command with the flags the demo footer already names plans successfully (no live key needed):
agentdescent algorithms run rrsi ./prompt.txt ./cases.jsonl \
--model m --base-url https://example.test/v1 \
--rounds 1 --workers 1 --out spec.json
# exit 0
# next: agentdescent plan spec.json --probe, then agentdescent evolve spec.json --max-calls 19Exact leftover text (all measured on this tip, after install --home of claude-code / dsh / codex / opencode / grok-bot; five SKILL.md files were byte-identical, as were the three slash-command bodies):
agentdescent/integrations/SKILL.md(alsointegrations/claude-code/skills/agentdescent/SKILL.md): “For a quick first look at a named method,agentdescent algorithms run NAME PATH [cases.jsonl] --rounds 1 --workers 1”ALGORITHMS_COMMANDinagentdescent/integrations/__init__.py(Claude/agentdescent:algorithms, Codex/prompts:algorithms, OpenCode/agentdescent/algorithms): “Without MCP:agentdescent algorithms run <name> <path> [cases.jsonl] [--param k=v...] [--rounds N] [--workers N](init + plan), thenplan <spec> --probe…”. The MCP branch says to callalgorithm_specwith name, path, cases and params only.- grok-bot
HOST.md(“Drive AgentDescent”): “agentdescent algorithms run NAME PATH [cases.jsonl](init + plan in one step; add--rounds 1 --workers 1for a quick trial; thenplan --probe…)” docs/algorithms.md(generated fromtools/gen_algorithms_docs.py; do not edit the page by hand):agentdescent algorithms run NAME PATH [cases.jsonl] [--param k=v...] [--rounds N] [--workers N] [--probe]docs/plugin-quickstart.md: a refused offline demo is pointed atagentdescent algorithms run NAME <path> <cases.jsonl>with no model flags.
tests/test_first_run_caps.py already requires --model / --base-url when it runs algorithms run, and it already requires --probe / --max-calls on these surfaces, but it does not yet require those surfaces to name --model / --base-url.
Not a duplicate of #1268 (start.md vs AGENTDESCENT_MAX_CALLS) or #1270 (capped demo footer wording).
Expected
Every first-run recipe that tells a user or a host to run algorithms run / algorithm_spec for a real model names --model and --base-url (and --key-env when needed), in the same shape the demo --algorithm footer already prints. It must not guess a model name. A bare algorithms run should still refuse placeholders — the docs just need to teach the flags before that refusal.
Suggested fix
One PR, text-only plus a pin in tests/test_first_run_caps.py (same pattern as #1228 / #1232):
- Update
SKILL.md,ALGORITHMS_COMMAND(including the MCPalgorithm_specrun branch),grok_bot_host_md(),tools/gen_algorithms_docs.py(then regeneratedocs/algorithms.md), and the plugin-quickstart refusal line. - Extend the existing first-run caps tests so those leftovers fail on main until they name
--modeland--base-url. - Do not change the placeholder-refusal behaviour of
init/algorithms run/plan.
Acceptance
- The five leftover surfaces above name
--modeland--base-url. tests/test_first_run_caps.py(or a sibling) pins that, so a later edit cannot drop the flags again.pytest -q tests/test_first_run_caps.py tests/test_slash_command_parity.pypluspython -m tools.gen_algorithms_docs --check(or the repo’s equivalent) pass.- A bare
algorithms runwithout model flags still exits non-zero with the placeholder error.
Activity