Repository navigation
Description
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.jsonMeasured 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 NThe same omission is in:
agentdescent demo --kind skill_libraryanddemo --kind textfooters- MCP
demo(noalgorithm)next - README "your own run" and
docs/start.mdopening CLI blocks - the first
init ./my-skillfence indocs/plugin-quickstart.md§4 (the later Ark example already has the flags) docs/algorithms.mdcheatsheet:init PATH --algorithm NAMEstill has no--model/--base-url, unlike thealgorithms runline 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 /--kinddemofooterown_steps(the branches that start withagentdescent init, including the MCPnextlist) should add--model <model> [--base-url <url>]on theinitline. - The same flags on the README,
docs/start.mdopening CLI block, the first plugin-quickstartinit ./my-skillfence, and theinitline indocs/algorithms.md. - Extend
tests/test_first_run_caps.py: the existing default-demo / skill_library footer tests and_first_init_my_skill_blockchecks for README, start, and plugin-quickstart should also require--modeland--base-urlon thatinitline. Keep the existing assertion that a bareinit/algorithms runwithout 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 MCPdemoall print aninitline that includes--model <model> [--base-url <url>].- The first-run
init ./my-skillblocks in README,docs/start.md, anddocs/plugin-quickstart.mddo the same. pytest -q -o addopts='' tests/test_first_run_caps.pypasses, including the new pins.- A bare
initwithout the flags still writes placeholders andplanstill refuses them.
Activity