Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ To point the same loop at a file or directory:
```bash
agentdescent init ./my-skill --data cases.jsonl --out spec.json
agentdescent plan spec.json # validates and prices it; runs nothing
agentdescent evolve spec.json --detach
agentdescent plan spec.json --probe # one minimal call per model; if it refuses, stop
agentdescent evolve spec.json --max-calls N --detach # N from the plan's upper bound
agentdescent status # then: show, apply --dry-run, apply
```

Expand Down
4 changes: 2 additions & 2 deletions agentdescent/integrations/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,8 @@ to the user rather than looking for a tool.
```
agentdescent demo [--algorithm NAME] --json # zero-key smoke; try this first
agentdescent doctor
agentdescent plan spec.json
agentdescent evolve spec.json --detach
agentdescent plan spec.json --probe
agentdescent evolve spec.json --max-calls N --detach
agentdescent status <run_id>
agentdescent show <run_id>
agentdescent apply <run_id> --dry-run
Expand Down
9 changes: 5 additions & 4 deletions agentdescent/integrations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1113,11 +1113,12 @@ def grok_bot_host_md() -> str:
dropping this folder into the Bot's managed-skills tree by hand is not a
supported install route.
2. **Drive AgentDescent.** Prefer the CLI on the Bot's computer (the shared
box): `agentdescent doctor`, `plan`, `evolve`, `status`, `apply`. Named
methods: `agentdescent algorithms list` / `show <name>`, then
box): `agentdescent doctor`, `plan --probe`, `evolve --max-calls N`,
`status`, `apply`. Named methods: `agentdescent algorithms list` /
`show <name>`, then
`agentdescent algorithms run NAME PATH [cases.jsonl]` (init + plan in one
step; add `--rounds 1 --workers 1` for a quick trial; `evolve` the written
spec after yes) — or MCP `list_algorithms` /
step; add `--rounds 1 --workers 1` for a quick trial; then `plan --probe`
and `evolve --max-calls N` after yes) — or MCP `list_algorithms` /
`describe_algorithm` when the HTTP MCP below is wired. The skill
falls back to those verbs when MCP tools are absent.
3. **MCP (optional, not auto-wired).** Serve the tools over HTTP on loopback
Expand Down
7 changes: 7 additions & 0 deletions changelog.d/1232-first-run-cheatsheet-caps.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Fixed
The README and Get started CLI quickstart, the host skill's Without-MCP
cheatsheet (and the rendered dsh copy), the plugin-quickstart command
block, and Grok Bot `HOST.md` now name the same first-run `plan --probe`
and `evolve --max-calls N` as the skill procedure and the CLI `next:`
line, so a copied first run is no longer missing the preflight or the
per-call cap (#1232).
2 changes: 1 addition & 1 deletion docs/plugin-quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ agentdescent plan spec.json # validates and prices it; runs nothing
agentdescent plan spec.json --probe # + one minimal call per model, so a dead
# key/endpoint/model/subscription is
# refused here, before any run exists
agentdescent evolve spec.json --detach
agentdescent evolve spec.json --max-calls N --detach # N from the plan's upper bound
agentdescent status
```

Expand Down
3 changes: 2 additions & 1 deletion docs/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ print(result.rendered, result.final_reward, result.error)
```bash
agentdescent init ./my-skill --data cases.jsonl --out spec.json
agentdescent plan spec.json # validates and prices it; runs nothing
agentdescent evolve spec.json --detach
agentdescent plan spec.json --probe # one minimal call per model; if it refuses, stop
agentdescent evolve spec.json --max-calls N --detach # N from the plan's upper bound
agentdescent status # then: show <run_id>, apply <run_id> --dry-run, apply <run_id>
```

Expand Down
4 changes: 2 additions & 2 deletions integrations/claude-code/skills/agentdescent/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,8 @@ to the user rather than looking for a tool.
```
agentdescent demo [--algorithm NAME] --json # zero-key smoke; try this first
agentdescent doctor
agentdescent plan spec.json
agentdescent evolve spec.json --detach
agentdescent plan spec.json --probe
agentdescent evolve spec.json --max-calls N --detach
agentdescent status <run_id>
agentdescent show <run_id>
agentdescent apply <run_id> --dry-run
Expand Down
2 changes: 1 addition & 1 deletion integrations/dsh-agentdescent/lib/index.js

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions tests/test_first_run_caps.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,59 @@ def test_bare_plan_next_names_the_probe_then_the_cap(tmp_path, monkeypatch):
f"agentdescent evolve {spec} --max-calls {bound.group(1)}")
assert "ready" not in payload and "probe" not in payload

def _first_init_my_skill_block(text):
"""The first fenced command block that contains the README-style init line."""
parts = text.split("```")
for i, part in enumerate(parts):
if "init ./my-skill" in part:
body = part
if body.startswith("bash"):
body = body.split("\n", 1)[1]
return body
raise AssertionError("no init ./my-skill command block")


def _section_after(text, heading):
assert heading in text, heading
return text.split(heading, 1)[1]


def test_readme_quickstart_names_the_probe_and_the_cap():
# #1232: the README "your own run" block still started uncapped after #1229.
block = _first_init_my_skill_block(_read("README.md"))
assert "plan spec.json --probe" in block
assert "evolve spec.json --max-calls" in block


def test_start_page_opening_cli_block_names_the_probe_and_the_cap():
# The later --probe / --max-calls sections on this page do not count:
# the opening CLI path is what a new user copies.
opening = _read("docs", "start.md").split("## With a real model", 1)[0]
block = _first_init_my_skill_block(opening)
assert "plan spec.json --probe" in block
assert "evolve spec.json --max-calls" in block


def test_plugin_quickstart_command_block_names_the_cap():
# Habits paragraphs already named --max-calls; the copied block did not.
block = _first_init_my_skill_block(_read("docs", "plugin-quickstart.md"))
assert "plan spec.json --probe" in block
assert "evolve spec.json --max-calls" in block


def test_skill_without_mcp_cheatsheet_names_the_probe_and_the_cap():
cheat = _section_after(skill_text(), "## Without MCP")
fence = cheat.split("```", 2)[1]
assert "--probe" in fence
assert "--max-calls" in fence
# The bare evolve line must not remain in this cheatsheet.
assert "evolve spec.json --detach\n" not in fence


def test_grok_bot_host_md_names_the_probe_and_the_cap():
from agentdescent.integrations import grok_bot_host_md
drive = _section_after(grok_bot_host_md(), "Drive AgentDescent")
drive = drive.split("MCP (optional", 1)[0]
assert "plan --probe" in drive
assert "evolve --max-calls" in drive
assert "evolve the written" not in drive
Loading