Repository navigation
Add agy as an external pstack-runner provider - #31
realtime3392 wants to merge 2 commits into
Conversation
pstack-runner can now launch one Agy print-mode child with the same preflight, receipt, and no-fallback contract as Grok. Agy stays provider-only. xhigh and max pin to high. JSON receipts use pinned-argv because the CLI does not report a served model id.
Record Agy on the parent route table and in External lanes without adding a fifth first-run matrix family. Setup and the four-model panel stay Fable, Sol, Grok, and Opus.
Greptile SummaryThe PR adds Agy as an external runner provider while keeping Claude Code and Codex as the only parent harnesses.
Confidence Score: 5/5The reviewed implementation appears safe to merge once the draft PR’s stated real-surface verification requirement is completed. The Agy lane is consistently wired through provider validation, preflight, invocation, parsing, failure handling, receipts, tests, and documentation, with no concrete changed-code defect remaining.
|
| Filename | Overview |
|---|---|
| plugins/pstack/skills/poteto-mode/scripts/runner/commands.ts | Adds Agy preflight and invocation arguments, including access-mode and effort mappings. |
| plugins/pstack/skills/poteto-mode/scripts/runner/run.ts | Integrates Agy model-list validation, failure classification, and pinned-argv model evidence. |
| plugins/pstack/skills/poteto-mode/scripts/runner/parse-output.ts | Normalizes Agy’s JSON response, session identifier, and token usage into the runner receipt format. |
| plugins/pstack/skills/poteto-mode/scripts/runner/types.ts | Extends the external provider type and CLI validation universe with Agy. |
| plugins/pstack/skills/poteto-mode/scripts/runner/run.test.ts | Covers Agy execution, receipts, authentication failure, unavailable models, and environment handling. |
| plugins/pstack/skills/poteto-mode/references/provider-dispatch.md | Documents Agy routing, sandbox mappings, preflight behavior, effort normalization, and receipt requirements. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
P[Claude Code or Codex parent] --> R[pstack-runner]
R --> F[agy models preflight]
F -->|authenticated and model listed| M{Access mode}
F -->|sign-in required| U[Unauthenticated receipt]
F -->|model absent| A[Unavailable-model receipt]
M -->|read-only| RO[agy --mode plan --sandbox]
M -->|isolated-write| IW[agy --mode accept-edits --sandbox --disable-slash-commands]
RO --> J[Parse Agy JSON result]
IW --> J
J --> C[Complete receipt with pinned-argv evidence]
Reviews (1): Last reviewed commit: "docs(pstack): document the agy external ..." | Re-trigger Greptile
|
Thanks for this, @realtime3392. I appreciate the time you put into it. Open Pstack now accepts contributions as detailed issues rather than pull requests, so I'm closing this one. If it's still relevant, please open an issue describing the problem, how to reproduce it, and the change you'd suggest. I'll take it from there. |
|
Follow-up to the close: this work is already tracked in #37, so there is no need to open a new issue. This PR is noted there as prior art and will be credited when the fix lands. |
What changed
pstack-runneraccepts--provider agyfrom a Claude Code or Codexparent. The lane preflights
agy models, invokes print mode once,maps read-only to
--mode plan --sandbox, maps isolated-write to--mode accept-edits --sandbox --disable-slash-commands, and neverpasses
--dangerously-skip-permissions. Agy--effortislow|medium|high;xhighandmaxpin tohigh. Receipts useCodex-style
pinned-argvbecause Agy JSON does not report a servedmodel id.
Agy is not a parent harness and is not a fifth first-run matrix
family. The four-model panel stays Fable, Sol, Grok, and Opus. The
portable slug is
agy:gemini-3.1-pro-high@high.Commits:
Verification
validation pass.
Live evidence:
feat/agy-external-providerin a localclone of
open-pstack(f9e5811), runner atplugins/pstack/skills/poteto-mode/scripts/runner/pstack-runner.Child CLI:
agy1.1.19 at/usr/local/bin/agy.pstack-runnerfrom the shell, parentclaude,provider
agy. Not yet installed into Claude Code or Codex pluginsurfaces.
pong, receiptstatus: complete,modelEvidence: pinned-argv, preflight passed, argv used--mode plan --sandboxand--print-timeout 8760h. No--dangerously-skip-permissions.Also: 162 Bun tests, strict typecheck,
PSTACK_STATIC_ONLY=1tests/skill-collision-repro.sh, andgrok plugin validate plugins/pstack.This stays a draft until the candidate is installed and the lane is
run from Claude Code and from Codex.
A pull request without live evidence remains a draft. Do not merge,
tag, release, or roll it out.