Repository navigation
Closed
Labels
enhancementNew feature or request
Description
A Grok session running poteto-mode should be able to run the multi-model panels with itself as the parent.
Proposal:
- Add
grokto the runner parent table, the same way Claude and Codex are mapped. The generated route table gains a Grok parent column. Do not hand-edit that catalog. - A Grok lane whose model and effort already match the parent uses native
spawn_subagent. Passmodelonly when that tool lists it. The tool takes no effort, so a pinned model or effort uses the runner instead. - Every other lane from a Grok parent uses
pstack-runner --parent grok, including a Grok provider. That launch keeps--permission-mode auto, the requested model, and the requested effort. - Claude-on-Claude and Codex-on-Codex stay rejected. The runner still tells those parents to use their native subagent route.
- A headless Grok parent stays in auto mode. Headless Grok cancels the turn on a permission prompt. Auto mode reports the blocked call. A native child inherits the parent session's mode, and
spawn_subagenthas no permission-mode argument. - Strip
GROK_SESSION_IDandGROK_AGENTfrom a child of a Grok parent. KeepGROK_HOMEso the Grok CLI still finds its config. - Do not add an implicit timeout or a weaker-model fallback. Do not switch to the runner after a native lane fails. Do not replace an unregistered Grok model with the parent model.
/setup-pstackstill writes the model sheet only for Claude Code and Codex. On a Grok parent it probes, then stops before writing a config home.
Out of scope for the first change: merging, queueing, publishing live-gate, and a Grok config-home writer.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
ericlitman commentedon Nov 8, 2026
Decided scope (Eric, 2026-11-08). We take over draft PR #282 and credit its first commit, as #272 did with fork PR #254. The design pass and its evidence are in Eric's docs records (
projects/open-pstack/records/2026-11-08-281/design.md). A GPT 6.0 Astra design review at high effort said "sound with changes", and all eight of its findings were accepted.Evidence that changed the proposal (Grok 1.0.77, headless probes, checked against each child's session record):
pstack-<family>-<effort>agent files. When a Grok parent spawnspstack:pstack-opus-low, the child runs ongrok-4.7with no warning.model: grok-4.6,effort: mediumran as grok-4.6 at medium). An agent file that names a model Grok cannot serve (grok-4.9) silently runs on the parent's model, and the result shows no error.Acceptance criteria:
pstack-runneraccepts--parent grok. A child of a Grok parent drops Grok's session markers and keepsGROK_HOME. The marker list is confirmed from a live Grok session's environment, names only.inherit-parentandautouse nativespawn_subagentwithpstack:poteto-agent. Every explicitgrok:<model>@<effort>descriptor uses the runner with--parent grok --provider grok. No rule depends on whether the descriptor matches the parent's model or effort. The parent flag readsexplicitLaneRoute: "runner". Claude-on-Claude and Codex-on-Codex stay refused.plugins/pstack/.grok-plugin/plugin.jsonsharesskills/. Grok's runtime discovery does not offer the Claude lane agents, and it does offerpoteto-agentandcomment-sicko. Listing those two files directly is preferred over a second agents directory.codex-tools.mdgains a Grok column, and the dispatch rules cover:cwd,isolation: none), and a native worktree only where the calling skill allows it;${GROK_HOME:-$HOME/.grok}/rules/pstack-models.md. A Grok parent reads it in preference to any model text Grok imports from Claude instructions. A malformed sheet is a visible stop./setup-pstackon a Grok parent probes and writes that file./pstack:poteto-modeby name, as on Codex.verify-open-pstackgains agrokharness:grok agent --no-leader --plugin-dir <exact-head>/plugins/pstack stdio), with no writes to the operator's Grok config.grok:dispatch, which also asserts the Claude lane agents are hidden, andgrok:setup, which restores the Grok sheet byte-exact..grok-plugin/. The version and drift checks cover the Grok manifest.UPSTREAM.md,CHANGES.md,NOTICE.md, the README and the reference name Grok as a parent harness.Out of scope: T3 Code with a Grok runtime, and Grok startup-hook auto-fire.
ericlitman commentedon Nov 8, 2026
PR: #284 (takes over #282).
fix(verify): count Grok's slash-command skill expansion and prove a C…
Merge pull request #284 from ericlitman/feat/281-grok-parent
ericlitman commentedon Nov 8, 2026
#281: Add Grok as a parent harness
The issue body is the only kept version; the tracker keeps no earlier text. Later sources:
../2026-11-08-281/design.md.From the issue body:
grokjoins the runner's parent table, and the generator writes its route column. Done as written. Proved byregistry.test.ts, the repository gate, and the livegrok:dispatchruns on 0d0c5d5 (feat(grok): Grok as a parent harness (#281) #284) and b43e759 (fix(verify): derive Grok live-gate reach from runtime ownership (#287) #288).grok-4.9ran asgrok-4.7and returnedOK.inherit-parentandautostay native, throughspawn_subagentwithpstack:poteto-agent. Every explicitgrok:*descriptor goes through the runner, whose receipt proves the served model.grok:dispatch. The native lane'sSubagentCompletedcarried its marker. The Grok runner receipt wascomplete, servedgrok-4.7-build, and carried provider-report proof.pstack-runner --parent grok, with--permission-mode autoand the requested model and effort.parent: grok.--permission-mode autois proved only byrunner/registry.test.ts:592andrunner/providers/grok.test.ts:24, becausegrokReceipt()does not check it.explicitLaneRoute: "native"keeps the refusal. Proved by the parent-by-adapter matrix inregistry.test.ts.provider-dispatch.md. No live check.GROK_SESSION_IDandGROK_AGENT, and keepGROK_HOME. Done as written.run.test.tschildEnvironment.provider-dispatch.mdand tests inregistry.test.ts. An unregistered Grok model goes to the runner, which keeps it. No live case covers it.${GROK_HOME:-$HOME/.grok}/rules/pstack-models.md.grok:setupon 0d0c5d5 and e4537f0, including the byte-exact restore of the sheet and of its earlier absence.live-gate, and a Grok config writer. Done differently.From the decided-scope comment:
inherit-parentandauto;explicitLaneRoute: "runner". Done as written. Proved bygrok:dispatch, which made exactly onespawn_subagentcall withpstack:poteto-agentand no runner receipt for that lane.[subagents.models]and role override rule from design ruling 1 is documented inprovider-dispatch.mdandsetup-pstack/SKILL.md, with no live check.agentslist entry as a directory, so the manifest points at a generatedgrok-agents/directory.grok:dispatch.pstack:comment-sickoandpstack:poteto-agent. Record:post-release-grok-agents.md. Before the release it listed all 27 agents.codex-tools.md. Live use covers only spawn, wait and the background runner call.run,verify,plugin-dev:skill-developmentandloopskills. New-file creation is mapped tosearch_replace, although Grok also exposeswrite. Both are recorded in Waived review findings: Grok verifier cancellation, deployment-key login, chunk decoding, Grok mapping gaps (unscheduled) #290, unscheduled.grok:setup. Precedence and the malformed-sheet stop are documentation only.docs/reference.md.--plugin-dir, with the candidate proved by_x.ai/plugins/listand its tree hash;grok-4.7at low;session/request_permissionfromGROK_TOOLS;recipes.ts:843-858);<skills_referenced>record.~/.grok/rules/folder in the operator's Grok home on every run, because the snapshot restores files, not the folders setup creates. No action is chosen: an empty rules folder loads nothing. It is recorded in Waived review findings: Grok verifier cancellation, deployment-key login, chunk decoding, Grok mapping gaps (unscheduled) #290. I removed it by hand twice, and it is absent now.features/registry.jsonmaps.grok-plugin/plugin.jsonandgrok-agents/*;skill-collision-repro.shcompares 4 manifests, and thestaticcheck parses the Grok manifest;Reader addition: changes the PRs made that the earlier draft did not report.
grok modelslogin line.isolatedEnvno longer passes an emptyGROK_HOMEthrough.verify.test.tsexpects the two Grok features in a runtime change's permitted set.Batch closeout record: https://github.com/mobilyze-llc/docs/blob/main/projects/open-pstack/records/2026-11-08-batch-281/closeout.md (released in v1.21.0: https://github.com/ericlitman/open-pstack/releases/tag/v1.21.0)
feat(grok): route explicit Grok lanes through the runner by parent flag
feat(grok): route Grok lanes by alias, map Grok tools and give Grok a…
feat(grok): add a Grok manifest that offers only the model-free agents
feat(grok): check the Grok manifest version and name Grok as a parent
feat(verify): add a Grok ACP transport and the grok:dispatch and grok…
feat(verify): classify the Grok manifest and reach the Grok features
feat(verify): document the Grok harness
feat(verify): map the generated Grok agent copies
chore: release Grok as a parent harness as 1.21.0