Repository navigation
Pass only the model id from a role line - #45
Conversation
Role lines stay grok-4.6 xhigh. spawn_subagent receives the model id, checked against grok models. This CLI has no effort argument, so the child keeps the parent's effort. Co-authored-by: Kaitian Xie <caelaxie@users.noreply.github.com>
caelaxie
left a comment
There was a problem hiding this comment.
changes requested (comment review, same account as author).
content mostly matches #43's smallest fix: role lines stay grok-4.6 xhigh, model gets only the id, validated against grok models, and the no-effort-argument note is in. Validate plugin is green on 01d3c82. two things before merge:
- poteto-mode:96 splits upstream's ", and the hardest changes read
hardest tasks" into extra sentences. keep that clause verbatim and change only the model part (inline suggestion). - no grok harness proof yet. this touches skill text, so post on 01d3c82:
grok plugin validate,grok plugin install --trustof the exact head,grok plugin list, and the installed copy (orinspect) showing the changed how/why/reflect/swarm/arena/architect/poteto-mode/setup-pstack text. per the 2026-10-19 precedent, install+list+installed-copy is enough if a live turn is auth-blocked.
| **Use `subagent_type: "pstack:poteto-agent"` for any subagent you spawn inside a playbook step** (code-writing delegates, ad-hoc helpers). The chat that receives `/poteto-mode` runs the playbook and is the only chat that may call `spawn_subagent`. A child cannot spawn. Never spawn a `poteto-agent` to run the playbook itself. Routed workflow skills (`how`, `why`, `interrogate`, `reflect`, `swarm`) omit `subagent_type`, or set the type they name. Respect what the skill prescribes, don't override to `poteto-agent`. | ||
|
|
||
| **Defaults for every `spawn_subagent` call.** `run_in_background: true` (a steer or resume of a running agent too, because a foreground call holds your turn while other reports wait). There is no readonly flag. When a child must not edit files, say so in the prompt. MCP stays available through `search_tool` and `use_tool`. Pass file pointers, not inlined context. Pass `model` only when the tool schema includes it. Otherwise omit `model` so the child inherits the parent. If it rejects a slug, use the closest slug from `grok models` and say so. Defaults are `grok-4.6` at `xhigh` for code and for prose and judgment. Code delegates tier by difficulty. The hardest changes (cross-cutting design, gnarly concurrency, subtle algorithms) go to your strongest judgment model (`grok-4.6` at `xhigh`), whether the task needs judgment on vague intent or is a precisely specified sequence of steps to execute to the letter. Trivial mechanical edits go to your fast code model. Per-role lines in `~/.grok/rules/pstack-models.md` (written by `/setup-pstack`) override these defaults and the model choices in the routed skills (`how`, `why`, `arena`, `swarm`, `architect`, `interrogate`, `reflect`). A role with no line keeps its default, and a role line of `inherit-parent` or `auto` runs that role on the parent chat model (omit `model`). Each code playbook's configured model comes from its line (`feature, refactoring`, `bug-fix`, `perf-issue`, or `hillclimb`), and the hardest changes read `hardest tasks`. Prose and judgment read `judgment and prose`. When `spawn_subagent` has no `model` argument, omit `model` for this session so every role inherits the parent, and apply step 1 of **setup-pstack** so the next session can pass `model`. | ||
| **Defaults for every `spawn_subagent` call.** `run_in_background: true` (a steer or resume of a running agent too, because a foreground call holds your turn while other reports wait). There is no readonly flag. When a child must not edit files, say so in the prompt. MCP stays available through `search_tool` and `use_tool`. Pass file pointers, not inlined context. Pass `model` only when the tool schema includes it. Otherwise omit `model` so the child inherits the parent. If it rejects a slug, use the closest slug from `grok models` and say so. Defaults are `grok-4.6` at `xhigh` for code and for prose and judgment. Code delegates tier by difficulty. The hardest changes (cross-cutting design, gnarly concurrency, subtle algorithms) go to your strongest judgment model (`grok-4.6` at `xhigh`), whether the task needs judgment on vague intent or is a precisely specified sequence of steps to execute to the letter. Trivial mechanical edits go to your fast code model. Per-role lines in `~/.grok/rules/pstack-models.md` (written by `/setup-pstack`) override these defaults and the model choices in the routed skills (`how`, `why`, `arena`, `swarm`, `architect`, `interrogate`, `reflect`). A role with no line keeps its default, and a role line of `inherit-parent` or `auto` runs that role on the parent chat model (omit `model`). Each code playbook passes only the model id from its line (`feature, refactoring`, `bug-fix`, `perf-issue`, or `hillclimb`), validated against `grok models`. The id is `grok-4.6` in `grok-4.6 xhigh`. The hardest changes read `hardest tasks`. Prose and judgment read `judgment and prose`. When `spawn_subagent` has no `model` argument, omit `model` for this session so every role inherits the parent, and apply step 1 of **setup-pstack** so the next session can pass `model`. |
There was a problem hiding this comment.
minimum change: keep upstream's sentence shape and swap only the model part, e.g.
Each code playbook passes only the model id from its line (
feature, refactoring,bug-fix,perf-issue, orhillclimb), validated againstgrok models, and the hardest changes readhardest tasks.
the extra "The id is grok-4.6 in grok-4.6 xhigh." sentence isn't needed here; the id example already lives in setup-pstack and the routed skills.
Pass only the model id, and keep upstream's ", and the hardest changes read `hardest tasks`" wording. Co-authored-by: Kaitian Xie <caelaxie@users.noreply.github.com>
|
Harness at head Installed checkout
Installed text after the review suggestion. Line 96 keeps
The rule lines in Local A live |
caelaxie
left a comment
There was a problem hiding this comment.
pass (comment review, same account as author).
f5a8dbf matches #43's smallest fix: rule lines stay grok-4.6 xhigh, model gets only the id validated against grok models, no-effort-argument note is in. poteto-mode:96 now keeps upstream's ", and the hardest changes read hardest tasks" verbatim. grok 1.0.77 validate + install --trust + list --json + inspect + installed-copy text on the exact head (issuecomment-6731247399), live turn auth-blocked, which the text-only precedent covers. Validate plugin green, Closes #43, not draft. merging.
Closes #43
Role lines stay
grok-4.6 xhigh. Spawn passes only the model id (grok-4.6), checked againstgrok models. This CLI'sspawn_subagenthas no effort argument, so the child keeps the parent's effort.