Repository navigation
Description
Problem
#1212 (Closes #1201) and #1218 (Closes #1217) updated the first-run surfaces a CLI user follows: the shared SKILL.md, docs/plugin-quickstart.md, the default / --algorithm demo footers, and the next: line from algorithms run / bare plan. Those now name plan --probe and evolve --max-calls N.
The surfaces a host agent actually follows on /evolve and /algorithms run were not updated. After install, Claude Code, Codex and OpenCode get byte-identical command files from EVOLVE_COMMAND / ALGORITHMS_COMMAND in agentdescent/integrations/__init__.py. Those still give a shorter procedure that skips the preflight and the per-call cap, even though they say "use the agentdescent skill":
commands/evolve.md(Claude) /.codex/prompts/evolve.md/ OpenCodecommand/agentdescent/evolve.md: "Rundoctor, build the spec,planit, show me the spec and the estimate, and wait for my yes beforestart." No--probe/probe=true, no--max-calls/max_calls.- The matching
algorithms.mdrunbranch: callalgorithm_spec, show the estimate, "wait for my yes beforestartwith thatspec." Without MCP:agentdescent algorithms run …thenevolveafter yes. It names--rounds 1 --workers 1for a quick trial, but not--probeor--max-calls.
The MCP algorithm_spec tool (the path that slash command tells the host to use) does not take probe or max_calls either. Its description says it already plans and returns spec to pass to start, and does not mention a follow-up plan(spec, probe=true) or start(..., max_calls=N). A host that follows the command — algorithm_spec then start — will start a first real run with no preflight and no cap, which is the same gap #1201 / #1217 described for the CLI trail.
tests/test_first_run_caps.py pins the CLI / SKILL.md words. tests/test_slash_command_parity.py only checks that the three hosts install byte-identical command files, not that those files name the probe or the cap.
Reproduction
main 3759b546 (0.11.0, after #1218 / #1224), fresh clone, pip install -e ".[mcp]":
$ agentdescent install claude-code --home /tmp/probe --json
# wrote …/commands/evolve.md and …/commands/algorithms.md
# Codex and OpenCode install the same two files (byte-identical; sha256
# 90c263e64661 / 1612da989c35 on this tip).
$ grep -n -E 'probe|max-calls|max_calls' \
/tmp/probe/.agentdescent/plugins/claude-code/commands/evolve.md \
/tmp/probe/.agentdescent/plugins/claude-code/commands/algorithms.md
# no matches
$ python3 -c 'from mcp.types import Tool' # Path A tool schema, same session:
# algorithm_spec properties:
# agent, base_url, cases, key_env, kind, model, name, out, params, path,
# rounds, usd_per_call, workers
# (no probe, no max_calls, no max_usd)
# plan / start already accept probe / max_calls / max_usd after #1184.
Contrast with the CLI path #1218 already fixed, on the same checkout:
$ agentdescent algorithms run ace ./prompt.txt ./cases.jsonl \
--model deepseek-v4-flash \
--base-url https://ark.cn-beijing.volces.com/api/coding/v3 \
--rounds 1 --workers 1 --out /tmp/spec.json
# next: agentdescent plan /tmp/spec.json --probe, then agentdescent evolve /tmp/spec.json --max-calls 19
The installed SKILL.md (same bytes on all five hosts, including dsh and grok-bot) already tells the agent to plan(..., probe=true) and to pass max_calls on start. The slash-command procedure contradicts that shorter path.
Expected
The installed /evolve and /algorithms run command text should name the same first-model preflight and per-call cap as SKILL.md and the CLI next: line:
- On a first model:
planwith--probe/probe=true; if it refuses, give the usernextand do notstart. - On the first real
start/evolve: passmax_calls(andmax_usdbesideusd_per_callwhen a price is known), starting at the plan'sagent_calls_upper_bound(or smaller for a trial).
For the MCP run path, either algorithm_spec itself should accept probe / max_calls the way plan / start and CLI algorithms run --probe do, or its description and the slash command should require a follow-up plan(spec, probe=true) and start(..., max_calls=N) before any run exists.
Claude / Codex / OpenCode command files must stay byte-identical.
Suggested fix
- Update
EVOLVE_COMMANDandALGORITHMS_COMMANDinagentdescent/integrations/__init__.py(the single sourceinstallwrites). Keep them short; copy the probe / cap wording already inSKILL.mdrather than inventing a third procedure. - Either plumb
probe/max_calls/max_usdthroughalgorithm_spec(it already delegates toalgorithms_run_payload, which the CLI uses for--probe) and mention them in the tool description, or have that description plus the slash-commandrunbranch require the follow-upplan/startfields above. - Extend
tests/test_first_run_caps.py(ortest_slash_command_parity.py) so the command texts — and, if plumbed, thealgorithm_specschema — cannot drop the probe or the cap again.
Acceptance
- After
install claude-code|codex|opencode --home <probe>, the evolve and algorithms command files containprobeandmax_calls/--max-calls. The three hosts remain byte-identical. /algorithms runno longer tells the host tostart/evolvefromalgorithm_spec(or a barealgorithms run) without a probe and a cap.- A refused probe still follows the mcp/cli: a refused --probe reports ok:true+ready:false on the CLI but ok:false and no ready over MCP plan #1175 / plan/algorithms run --probe: a failed probe still ends with 'next: agentdescent evolve' (and --json says ok: true) #1093 contract (
ok: false,ready: false,nextis the repair, nostart). - Shared
SKILL.md, demo footers, and CLIplan/algorithms runnext:stay as docs(cli): name the probe and the per-call cap on the first-run surfaces #1212 / fix(cli): default demo and bare plan name --probe and --max-calls (#1217) #1218 left them.
Activity