Skip to content

fix(plugins): name probe and max_calls on installed slash commands - #1229

Merged
Birfy merged 1 commit into
mainfrom
agent/1228-slash-command-probe-cap
Nov 23, 2026
Merged

Birfy merged 1 commit into
mainfrom
agent/1228-slash-command-probe-cap

Conversation

@Birfy

@Birfy Birfy commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #1228

Base: 29d49ce
Tip SHA: 7d28808

What changed

#1212 / #1218 updated the first-run surfaces a CLI user follows (SKILL.md, demo footers, plan / algorithms run next:) so they name plan --probe and evolve --max-calls N. The slash-command files a host actually follows on /evolve and /algorithms run still skipped both, and the MCP algorithm_spec description still said to pass its spec straight to start.

  • EVOLVE_COMMAND and ALGORITHMS_COMMAND (the single source install writes for Claude / Codex / OpenCode) now name the same preflight and per-call cap as SKILL.md: plan with --probe / probe=true, no start on a refused probe, and max_calls / --max-calls (plus max_usd beside usd_per_call when a price is known) on the first real start / evolve, starting at the plan's agent_calls_upper_bound.
  • The algorithm_spec tool is unchanged (it still only builds and plans). Its description now requires the follow-up plan(spec, probe=true) and start(..., max_calls=N) instead of a bare start.
  • Shared SKILL.md, demo footers, and CLI next: are untouched.

Verification at the tip

Tip SHA: 7d28808843942be83b5e48dc070ef17de14a44a8

Ran:

  • new assertions against main 29d49ce4 command files and the algorithm_spec description: no probe / max_calls, and the run branch still said “then evolve after yes”
  • pytest -q -o addopts='' tests/test_first_run_caps.py tests/test_slash_command_parity.py tests/test_mcp_algorithm_spec.py tests/test_integrations.py::test_checked_in_claude_plugin_matches_the_package at the tip → 30 passed
  • python -m tools.gen_api_docs --check → docs/api.md is up to date
  • python -m tools.changelog_fragments check → 24 changelog fragment(s) OK

Not run:

  • Full offline suite locally — the CI test matrix is the line
  • mkdocs build --strict — no docs/ page or mkdocs.yml change

…1228)

After #1218 the CLI next: line and SKILL.md already name plan --probe and
evolve --max-calls, but the /evolve and /algorithms run command files a
host follows still skipped both. Copy that wording into EVOLVE_COMMAND /
ALGORITHMS_COMMAND (and the algorithm_spec description) so the first real
start is probed and capped. Claude / Codex / OpenCode stay byte-identical.
@Birfy

Birfy commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator Author

Review (Birfy)

Tip SHA: 7d28808
Ran:

  • .github/scripts/risk_gate.py --repo ThinkFlowLab/agentdescent --pr 1229 → T3 (76 lines / 7 files; paths agentdescent/integrations/init.py, integrations/claude-code/commands/algorithms.md, integrations/claude-code/commands/evolve.md)
  • pytest -q -o addopts='' tests/test_first_run_caps.py tests/test_slash_command_parity.py tests/test_mcp_algorithm_spec.py tests/test_integrations.py::test_checked_in_claude_plugin_matches_the_package at this tip → 30 passed
  • python -m tools.gen_api_docs --check → docs/api.md is up to date
  • python -m tools.changelog_fragments check → 24 changelog fragment(s) OK
  • Required CI at this tip → still running; --auto --squash armed
    Not run:
  • Full offline suite locally — the CI test matrix is the line
  • mkdocs build --strict — no docs/ page or mkdocs.yml change
    Findings:
  • No actionable defects. After fix(cli): default demo and bare plan name --probe and --max-calls (#1217) #1218, a host following /evolve or /algorithms run still started a first real run without the preflight or the per-call cap, and the algorithm_spec description still pointed at a bare start. The installed command texts now name plan --probe / probe=true and max_calls / --max-calls the same way SKILL.md and the CLI next: line do; a refused probe still means no start. The tool itself is unchanged (build + plan only). Shared SKILL.md, demo footers, and CLI next: are untouched, and Claude / Codex / OpenCode command files stay byte-identical.
    Verdict: PASS

@Birfy
Birfy enabled auto-merge (squash) November 23, 2026 04:29
@github-actions github-actions Bot added risk:T3 Risk tier T3 (core loop, release, process; needs Danyang's click), set by the controller agent-pr Pull request opened by an agent labels Nov 23, 2026
@Birfy
Birfy merged commit 761eb4c into main Nov 23, 2026
12 checks passed
@Birfy
Birfy deleted the agent/1228-slash-command-probe-cap branch November 23, 2026 04:52
Birfy added a commit that referenced this pull request Nov 23, 2026
#1233)

Closes #1232

Base: 761eb4c
Tip SHA: 5095228

## What changed

#1212 / #1218 / #1229 updated the first-run surfaces a CLI user or a
slash-command host follows so they name `plan --probe` and `evolve
--max-calls N`. The copy-paste command lists a new user or a no-MCP host
actually types were still the shorter uncapped form.

- README and `docs/start.md`: the `init ./my-skill` bash block now
includes `plan --probe` and `evolve --max-calls N --detach`.
- `docs/plugin-quickstart.md`: the same block already had `--probe`; the
`evolve` line now takes `--max-calls N` too (it was only in a later
habits paragraph).
- The host skill's `## Without MCP` cheatsheet names both flags. The
checked-in Claude `SKILL.md` and dsh plugin `CONTENT` were re-rendered
from that body and stay byte-identical with it.
- `grok_bot_host_md()` "Drive AgentDescent" now names `plan --probe` and
`evolve --max-calls N` after `algorithms run`, and no longer says to
`evolve` the written spec after yes with no cap.

Slash commands, demo footers, and CLI `next:` are untouched.

## Verification at the tip

Tip SHA: `509522826fde8b7c5f27da6775e4e6412970d98c`

Ran:
- new assertions against main `761eb4cb`: the four lists omitted
`--probe` and/or `--max-calls`, and HOST.md still said "evolve the
written spec after yes"
- `pytest -q -o addopts='' tests/test_first_run_caps.py
tests/test_slash_command_parity.py
tests/test_integrations.py::test_checked_in_claude_plugin_matches_the_package
tests/test_integrations.py::test_checked_in_dsh_plugin_matches_the_package
tests/test_changelog_fragments.py tests/test_grok_bot_user_skill.py` at
the tip → 81 passed
- `python -m tools.gen_api_docs --check` → docs/api.md is up to date
- `python -m tools.changelog_fragments check` → 25 changelog fragment(s)
OK

Not run:
  - Full offline suite locally — the CI test matrix is the line
- `mkdocs build --strict` — start.md / plugin-quickstart.md wording
only; no `mkdocs.yml` change
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 risk:T3 Risk tier T3 (core loop, release, process; needs Danyang's click), set by the controller

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant