setup-pstack
Configure which models pstack uses per role and at what reasoning budget.
Skill by chinlung
Chalk Labs
Need help deploying setup-pstack?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/chinlung-setup-pstack
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: finance
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/setup-pstack
What's inside
- Skill name
setup-pstack- Description
- Configure which models pstack uses per role and at what reasoning budget. Detects the models Pi can launch and writes the role map that overrides the skill defaults. Use for /setup-pstack, "configure pstack models", "pstack budget", or changing pstack's model choices.
- License
- MIT
- Instructions
- 75 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Setup pstack
The pstack role map sets the model each pstack role runs on and the reasoning budget for all of them. The `pi-pstack` extension owns it: `/setup-pstack` writes it, `/pstack-models` shows it, and the `pstack_models` tool returns it resolved.
## Steps
### 1. Hand the user the command
`/setup-pstack` is the user's command. You cannot type slash commands. Tell the user to run it, with the budget as its argument when they already named one:
```text
/setup-pstack large
```
The command detects the models the session can launch, asks for a budget when none was given, keeps every role the user set before whose model is still available, lets the user confirm or change each role, and writes the map. A budget argument only skips the budget question; with dialog UI the user still confirms the roles.
### 2. Explain the budget when asked
The budget caps the reasoning level of every role's model, panel seats included.
- `unlimited — max reasoning`
- `large — xhigh reasoning` (upstream pstack's default)
- `medium — high reasoning`
- `small — medium reasoning`
The budget is stored once. Role values carry no level; a role resolves to the highest level its model supports at or below the budget. A model that offers only levels above the budget runs at its lowest one and is reported as above budget.
### 3. Show the current map when asked
Call the `pstack_models` tool. It returns the budget, whether the map is the user's stored map or defaults, and each role's seats with the level applied.
### 4. Write the map by hand only when the command is unavailable
Ask the user first. The file is JSON at `~/.pi/agent/state/pi-pstack/models.json`. Write all of it, so a re-run stays idempotent. A role's value is a `provider/id` model id, a list of them for a panel role, or `inherit-parent` / `auto` for the parent chat model. An alias in a panel still counts as a seat.
```json
{
"budget": "large",
"roles": {
"feature, refactoring": { "value": "openai/gpt-6-sol" },
"bug-fix": { "value": "openai/gpt-6-sol" },
"perf-issue": { "value": "openai/gpt-6-sol" },
"hillclimb": { "value": "openai/gpt-6-sol" },
"judgment and prose": { "value": "anthropic/claude-opus-5-5" },
"hardest tasks": { "value": "anthropic/claude-opus-5-5" },
"how explorer": { "value": "openai/gpt-6-sol" },
"how explainer": { "value": "anthropic/claude-opus-5-5" },
"why investigators": { "value": "openai/gpt-6-sol" },
"why synthesizer": { "value": "anthropic/claude-opus-5-5" },
"reflect tooling": { "value": "openai/gpt-6-sol" },
"reflect judgment, divergent, synthesizer": { "value": "anthropic/claude-opus-5-5" },
"arena runners": { "value": ["anthropic/claude-sonnet-5-5", "openai/gpt-6-sol"] },
"arena cross-judge pool": { "value": ["anthropic/claude-opus-5-5", "openai/gpt-6-astra"] },
"swarm workers": { "value": "openai/gpt-6-sol" },
"architect runners": { "value": ["anthropic/claude-opus-5-5", "openai/gpt-6-astra"] },
"interrogate reviewers": { "value": ["anthropic/claude-opus-5-5", "openai/gpt-6-astra"] }
}
}
```
The model ids above are examples. Use ids from the `pstack_models` tool or from the user. Give a panel's seats different model families (`claude`, `gpt`, `gemini`, …), not one model through two providers, because a panel exists to get a second opinion. A role name not listed above is retired and is dropped when the map is read.
### 5. Confirm
Tell the user the map was written and that it applies to subagents launched after it. Re-running `/setup-pstack` updates it.
### 6. Offer a verification skill (optional)
Check whether the project has a way to drive the real app for proof (a `verify-*` skill, or an existing harness). If not, offer once: "want a project-local verification skill, so agents can drive the app the way a user does and prove changes work? I can generate one with /create-verification-skill." On yes, invoke `/create-verification-skill`. On no, move on without pushing.
### 7. Offer a formal verification skill (optional)
Check whether the project already has a formal verification skill (a project skill that runs a model checker, a proof, or another verifier against the code). If not, offer once: "want a formal verification skill, so agents can prove a key property of your code holds in every case in scope, not only the cases tests reach? I can generate one with /create-formal-verification-skill." On yes, invoke `/create-formal-verification-skill`. On no, move on without pushing.From chinlung/pi-pstack, MIT.
More from chinlung/pi-pstack
- 0.541score
architect
chinlung
Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in.
SkillAFreshness: AClaude Code +9 - 0.541score
how
chinlung
Use for "how does X work", code walkthroughs before changing something, and placement / ownership / layering questions ("where should this live", "which…
SkillAFreshness: AClaude Code +9 - 0.541score
create-verification-skill
chinlung
Generate a project-local verification skill that drives your app the way a user does — any language, framework, or platform.
SkillAFreshness: AClaude Code +9 - 0.541score
interrogate
chinlung
Use for "interrogate", "adversarial review", "multi-model review", "challenge this", "stress test this code", "find blind spots", or "tear this apart".
SkillAFreshness: AClaude Code +9 - 0.536score
automate-me
chinlung
Use for "automate me", "create/update/refresh my -mode skill", "turn/capture my preferences or working style into a skill", or wanting agents to follow how…
SkillAFreshness: AClaude Code +9 - 0.536score
arena
chinlung
Spawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it.
SkillAFreshness: AClaude Code +9 - 0.536score
maintain-verification-skill
chinlung
Periodic pass that keeps a project's verification skill and feature map honest: parallel source readers per feature, one live session driving every feature…
SkillAFreshness: AClaude Code +9 - 0.533score
no-comments
chinlung
Spawn Comment Sicko, fix accepted findings, and offer encodings for claimed constraints.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 22, 2026 (8 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/chinlung/pi-pstack
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from chinlung
- 0.541score
architect
chinlung
Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in.
SkillAFreshness: AClaude Code +9 - 0.541score
how
chinlung
Use for "how does X work", code walkthroughs before changing something, and placement / ownership / layering questions ("where should this live", "which…
SkillAFreshness: AClaude Code +9 - 0.541score
create-verification-skill
chinlung
Generate a project-local verification skill that drives your app the way a user does — any language, framework, or platform.
SkillAFreshness: AClaude Code +9 - 0.541score
interrogate
chinlung
Use for "interrogate", "adversarial review", "multi-model review", "challenge this", "stress test this code", "find blind spots", or "tear this apart".
SkillAFreshness: AClaude Code +9 - 0.536score
automate-me
chinlung
Use for "automate me", "create/update/refresh my -mode skill", "turn/capture my preferences or working style into a skill", or wanting agents to follow how…
SkillAFreshness: AClaude Code +9 - 0.536score
arena
chinlung
Spawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it.
SkillAFreshness: AClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get setup-pstack running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
setup-pstack skill. Agent Mart. https://agentmart.dev/skills/chinlung-setup-pstack (last updated 2026-10-24)