Skip to content

After #1218, host slash commands still start a first run without --probe or max_calls #1228

Closed

Description

@Birfy

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 / OpenCode command/agentdescent/evolve.md: "Run doctor, build the spec, plan it, show me the spec and the estimate, and wait for my yes before start." No --probe / probe=true, no --max-calls / max_calls.
  • The matching algorithms.md run branch: call algorithm_spec, show the estimate, "wait for my yes before start with that spec." Without MCP: agentdescent algorithms run … then evolve after yes. It names --rounds 1 --workers 1 for a quick trial, but not --probe or --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: plan with --probe / probe=true; if it refuses, give the user next and do not start.
  • On the first real start / evolve: pass max_calls (and max_usd beside usd_per_call when a price is known), starting at the plan's agent_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_COMMAND and ALGORITHMS_COMMAND in agentdescent/integrations/__init__.py (the single source install writes). Keep them short; copy the probe / cap wording already in SKILL.md rather than inventing a third procedure.
  • Either plumb probe / max_calls / max_usd through algorithm_spec (it already delegates to algorithms_run_payload, which the CLI uses for --probe) and mention them in the tool description, or have that description plus the slash-command run branch require the follow-up plan / start fields above.
  • Extend tests/test_first_run_caps.py (or test_slash_command_parity.py) so the command texts — and, if plumbed, the algorithm_spec schema — cannot drop the probe or the cap again.

Acceptance

Activity

  1. added
    bugSomething isn't working
    area:pluginsHost plugins and installers: Claude Code, Codex, DSH, OpenCode, MCP server
    on Nov 23, 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:pluginsHost plugins and installers: Claude Code, Codex, DSH, OpenCode, MCP serverbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions