Skip to content

docs/cli: default demo footer and README/start init recipes still omit --model / --base-url that plan requires #1287

Backlog

Description

@Birfy

What happens

On tip 3a388a1 (0.11.0, after #1276), a first successful agentdescent demo still teaches an init command that plan will refuse.

#1276 fixed the leftover algorithms run recipes (host skill, slash commands, docs/algorithms.md, the demo --algorithm footer) so they name --model <model> [--base-url <url>]. The default path — a bare demo, demo --kind skill_library, demo --kind text, the MCP demo tool's next list, and the first-run init ./my-skill blocks in README, docs/start.md, and docs/plugin-quickstart.md §4 — still prints:

agentdescent init <your-skill-dir> --data <your-cases.jsonl> --out spec.json
agentdescent doctor
agentdescent plan spec.json --probe
agentdescent evolve spec.json --max-calls <N>

init never guesses the model or endpoint. Following that footer writes <your-model> / <your-endpoint-url> placeholders and exits 0 with a warning; the very next command the footer names, plan / plan --probe, exits 2 and never reaches a probe or a next: evolve.

docs/plugin-quickstart.md already shows the working flags in a later paragraph. The block a new user copies, and the footer they see right after the offline demo, do not. tests/test_first_run_caps.py pins --probe / --max-calls on these surfaces (#1217 / #1232) but does not yet pin --model / --base-url on the default init path.

This is the same leftover-surface class as #1275, now for the flags that make a default (no --algorithm) init actually plan.

Repro

Fresh clone of ThinkFlowLab/agentdescent at 3a388a1. pip install -e ".[mcp]". Isolated AGENTDESCENT_HOME so this does not touch a real host tree.

agentdescent demo --dir ./demo-default
# footer (and `demo --json` / MCP demo `next`) still print a bare init, as above

agentdescent init ./demo-default/csv-total --data ./demo-default/cases.jsonl --out spec.json
# exit 0; writes placeholders

agentdescent plan spec.json --probe
# also: agentdescent plan spec.json

Measured plan exit 2. The useful lines:

warning: `reflect.model` and `reflect.default_base_url` in spec.json are placeholders: the model (and the endpoint for a non-OpenAI key) come from you, never a guess. ... `plan` refuses the spec until then

error: reflect.model is still the placeholder '<your-model>' that `init` wrote; put the real value there (it comes from the user, never guess it); reflect.default_base_url is still the placeholder '<your-endpoint-url>' that `init` wrote; ...

--json is ok: false with no ready / probe / next (the refusal happens before a probe). The same footer commands with the flags demo --algorithm already names plan successfully (no live key needed for a plain plan):

agentdescent init ./demo-default/csv-total --data ./demo-default/cases.jsonl --out spec.json \
  --model m --base-url https://example.test/v1
agentdescent plan spec.json
# ok: skill_dir ...  then: plan --probe, then evolve --max-calls N

The same omission is in:

  • agentdescent demo --kind skill_library and demo --kind text footers
  • MCP demo (no algorithm) next
  • README "your own run" and docs/start.md opening CLI blocks
  • the first init ./my-skill fence in docs/plugin-quickstart.md §4 (the later Ark example already has the flags)
  • docs/algorithms.md cheatsheet: init PATH --algorithm NAME still has no --model / --base-url, unlike the algorithms run line above it

Expected

Every first-run init recipe that is followed by plan / plan --probe should name --model <model> [--base-url <url>] (and --key-env when several keys are set), the same shape #1276 already uses on algorithms run. init should still not guess a model name.

Suggested fix

  • In agentdescent/cli.py, the default / --kind demo footer own_steps (the branches that start with agentdescent init, including the MCP next list) should add --model <model> [--base-url <url>] on the init line.
  • The same flags on the README, docs/start.md opening CLI block, the first plugin-quickstart init ./my-skill fence, and the init line in docs/algorithms.md.
  • Extend tests/test_first_run_caps.py: the existing default-demo / skill_library footer tests and _first_init_my_skill_block checks for README, start, and plugin-quickstart should also require --model and --base-url on that init line. Keep the existing assertion that a bare init / algorithms run without the flags still exits non-zero on placeholders.
  • changelog.d/<n>-demo-init-model-flags.md.

No change to the placeholder-refusal behaviour of init / plan. No model name is guessed.

Acceptance

  • agentdescent demo, demo --kind skill_library, demo --kind text, and MCP demo all print an init line that includes --model <model> [--base-url <url>].
  • The first-run init ./my-skill blocks in README, docs/start.md, and docs/plugin-quickstart.md do the same.
  • pytest -q -o addopts='' tests/test_first_run_caps.py passes, including the new pins.
  • A bare init without the flags still writes placeholders and plan still refuses them.

Activity

  1. added
    bug
    area:cli
    area:docs
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cliarea:docsbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions