Skip to content

fix(cli): default demo and first-run init recipes name --model and --base-url - #1288

Merged
Birfy merged 1 commit into
mainfrom
agent/1287-demo-init-model-flags
Nov 26, 2026
Merged

Birfy merged 1 commit into
mainfrom
agent/1287-demo-init-model-flags

Conversation

@Birfy

@Birfy Birfy commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

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

…base-url

The default demo footer, first-run init doc blocks, and the algorithms
cheatsheet init line now name the flags plan requires, so a copied first
run can plan instead of exiting on placeholders.

Closes #1287
@Birfy Birfy added bug Something isn't working area:cli The agentdescent command line (cli.py, doctor, plan/evolve/status/apply) area:docs Documentation site (docs/, mkdocs.yml) and README agent-pr Pull request opened by an agent labels Nov 26, 2026
@github-actions github-actions Bot added the risk:T2 Risk tier T2 (package code or an unnamed path), set by the controller from the diff label Nov 26, 2026
@Birfy

Birfy commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator Author

Review (Birfy)

Tip SHA: 86ad8f9
Ran:

  • .github/scripts/risk_gate.py --repo ThinkFlowLab/agentdescent --pr 1288 → T2 (agentdescent/cli.py and tools/gen_algorithms_docs.py; docs, tests, and the changelog fragment are in the same diff)
  • pytest -q -o addopts='' tests/test_first_run_caps.py tests/test_demo.py tests/test_init_key_aware_reflect.py at this tip → 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 on this tip is the line
  • mkdocs build --strict — no nav change; CI build covers the docs path
    Findings:
  • No actionable defects. The default demo footer (including --kind and MCP next), the first-run init ./my-skill doc blocks, and the generated docs/algorithms.md cheatsheet init line now name --model and --base-url in the same shape fix(plugins): first-run algorithms run recipes name --model and --base-url #1276 already put on algorithms run. A bare init without those flags still writes placeholders and plan still refuses them. No model name is guessed.
    Verdict: PASS

@Birfy
Birfy enabled auto-merge (squash) November 26, 2026 04:26
@Birfy
Birfy merged commit f0b1c34 into main Nov 26, 2026
12 checks passed
@Birfy
Birfy deleted the agent/1287-demo-init-model-flags branch November 26, 2026 04:46
Birfy added a commit that referenced this pull request Nov 26, 2026
…1290)

Closes #1289

Base: f0b1c34
Tip SHA: 9662328

## What changed

On tip `f0b1c34`, #1288 already named `--model <model> [--base-url
<url>]` on the first-run `init ./my-skill` blocks and the default `demo`
footer. Two Path A skill-library recipes that go straight into `plan
--probe` were left behind:

- In `docs/quickstart-skill.md` and `docs/algorithm-decision-tree.md`,
the `init … --kind skill_library --algorithm archive_selection` fences
now add those flags.
- The quickstart comment no longer says "pin reflect/agent, then";
filling `cases.jsonl` is enough to plan.
- `tests/test_first_run_caps.py` pins `--model` / `--base-url` on those
fences, still before `plan --probe`.
- `changelog.d/1289-skill-library-init-model-flags.md`.

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

## Verification

Tip SHA: 9662328

Ran:
  - `pytest -q -o addopts='' tests/test_first_run_caps.py` → 22 passed
- `python -m tools.changelog_fragments check` → 50 changelog fragment(s)
OK
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
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 area:cli The agentdescent command line (cli.py, doctor, plan/evolve/status/apply) area:docs Documentation site (docs/, mkdocs.yml) and README bug Something isn't working risk:T2 Risk tier T2 (package code or an unnamed path), set by the controller from the diff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant