Skip to content
Agentmart
Submit a tool

pstack-harness

Adapt pstack delegation, role configuration, skill paths, verification, and session handling to Claude Code or Codex.

Skill by MachineLearning-Nerd

IndexedMIT
Write a review

Chalk Labs

Need help deploying pstack-harness?

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.

Book a call

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/machinelearning-nerd-pstack-harness

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.

We use your email only for this newsletter. Privacy

About

Adapt pstack delegation, role configuration, skill paths, verification, and session handling to Claude Code or Codex. Read when a pstack workflow delegates or uses a host-specific capability.

Use cases: productivity, agent-building

No 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/pstack-harness

What's inside

Skill name
pstack-harness
Description
Adapt pstack delegation, role configuration, skill paths, verification, and session handling to Claude Code or Codex. Read when a pstack workflow delegates or uses a host-specific capability.
License
MIT
Instructions
125 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • models.md · references/

SKILL.md (first lines)

# Native harness contract

This file is the authority for host mechanics in this derivative. Upstream
examples describe intent; do not call a tool or use a model just because an example
names it. Inspect the live tools. User instructions and actual permissions govern
scope, including external messages, commits, pushes, merges, and deployments.

Resolve `PSTACK_SKILLS_ROOT` to the absolute logical directory containing this
skill and its siblings. Follow installed symlinks when needed. Resolve the project
root separately; never assume the source checkout is the consumer project.
Read sibling skills and their references directly, even if they are absent from
the host's skill selector. Do not read the entire suite for one task.

## Roles and models

Resolve each role before delegation with the bundled command:

```sh
python3 "$PSTACK_SKILLS_ROOT/pstack-harness/scripts/pstack.py" resolve --host codex --project "$PROJECT_ROOT" --role "bug-fix"
```

Use `claude-code` for Claude. The result lists arms with `model` and `effort`;
null means inherit. Every delegate uses the current chat's model. Never pass a
model override, choose a different role model, or change models after a rejected
spawn. This policy supersedes model-selection examples in imported workflows.
The user controls the model by selecting it in the chat.

Project `.pstack-dual/models.json` overrides user settings for effort and panel
size. Legacy explicit model settings remain readable but are ignored; the
resolver reports them as `ignored_model`. Preserve separate panel arms and label
them independent same-model review. Different efforts do not establish model
diversity. Do not claim cross-provider execution.

## Task difficulty and effort

Before each spawn, assess the task's difficulty, subtlety, and urgency. Select the
role that describes the work, then resolve its configured effort. Use that exact
effort only if the live host supports it for the current chat's model. A null
effort inherits the parent. Assessment informs the brief, scope, and verification;
it does not authorize raising or lowering configured effort, choosing another
role to obtain a different effort, or changing the user's settings.

Do not encode effort or fast mode in a model slug. Do not guess another effort
after a rejected spawn. If the host cannot honor an effort, inherit and report
the requested and inherited result. If speed controls are unavailable, report
that limitation when relevant; do not substitute another model or CLI default.
Verification workers follow the same configured-effort contract.

## Claude Code

Use the live Agent/delegation tool (older releases call it Task). Omit its `model`
argument so the delegate inherits the chat. Use `poteto-agent` when loaded for implementation;
otherwise brief a general-purpose agent to read poteto-mode and the matched
playbook at their absolute paths. For read-only reviews, use `pstack-reviewer`
when loaded; it has read-only tools. Resolve names from the live agent catalog.
A written effort uses `pstack-effort-<level>` only if that agent is loaded; give
it the complete persona brief and report any inherited effort otherwise.
Use the host's supported background/wait mechanisms. Do not invent fields.

## Codex

Use native `spawn_agent` when available and omit `model`. Set `fork_turns: "none"`
when setting `reasoning_effort`; a full-history fork inherits the parent's identity.
Pass the resolved effort only when supported without changing the model. Set the custom agent type when the
live tool exposes it; otherwise include the persona and absolute skill paths in
the brief. Use the host's message, wait, and close capabilities as exposed.
For a read-only reviewer, select `pstack-reviewer` if loaded and always state the
read-only scope. Its installed TOML requests a read-only sandbox; when the live
tool cannot select it, the brief is an instruction, not an enforced sandbox.
For full-history inheritance, the host may need a persisted parent session. Codex
0.162.0's ephemeral mode can reject spawning with "no rollout found". Treat a
failed spawn as failed: it creates no live worker. Do not wait on missing IDs or
report that a worker is implementing. Retry once with a fresh-context native
spawn when supported; otherwise use the bounded separate-process fallback.

## Isolation and fallbacks

Native subagents are preferred. If unavailable, a separate `codex exec` or
`claude -p` process may implement a bounded brief only when the actual parent
model identity is known and can be selected unchanged, with the same permission
scope. A CLI default or guessed model is insufficient. If that identity cannot
be established, report unavailable delegation and continue inline within scope.
Do not bypass permission checks to make it work. Report unavailable independent
verification if neither mechanism works; inline self-review is not independent.
Each concurrent writer gets its own git worktree. Record its path and base commit.
Review the returned diff before cherry-picking or applying it in the lead checkout.
When isolation cannot be created, use one writer at a time in the current checkout.
Use local workers in place of cloud workers; cloud-only launch fields do not apply.
Delegate bounded tasks and return file references, evidence, and a thin report.

## Tasks, sessions, and verification

Use a native task/plan tracker when available; otherwise maintain a concise worklist
in progress messages. No host config changes are needed just to obtain a tracker.
Explicitly invoke poteto-mode at the start of a new task; Cursor's custom-mode
frontmatter and reminder mechanism have no portable persistence guarantee.
Re-read the mode and active playbook after context compaction or a session handoff.
Use a host loop only if it exists, and otherwise state that re-invocation is manual.
Do not start timers or unattended publishing just because a playbook mentions them.

For transcripts, use the current session's known path first. Claude's project
store is under `~/.claude/projects/`; Codex's store is under `$CODEX_HOME/sessions`
or `~/.codex/sessions`. For Codex, select records whose session metadata `cwd`
belongs to this project before reading messages. Claude workspace encoding can
vary by release: verify the directory's recorded workspace. Never bulk-read
other projects' messages. If session access is unavailable, use the current
conversation and say which evidence is missing.

Drive the product's actual entry point. Reuse a project verification skill or the
bundled control-cli/control-ui skills, and capture before/after evidence. A green
test that did not run assertions is not proof. Read-only investigation and review
may run safe commands but must not edit project files. Preserve explicit scope;
the skill's autonomy language never grants external actions on its own.

## Skill changes and optional runtimes

Before applying an approved reflection edit, identify the skill's actual source
and show the destination. Never edit a plugin cache, `.pstack-dual/bundle`, or a
managed skill symlink. A path under `.agents/skills` or `.claude/skills` may point

From MachineLearning-Nerd/pstack-dual, MIT.

More from MachineLearning-Nerd/pstack-dual

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Oct 15, 2026 (16 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from MachineLearning-Nerd

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 pstack-harness 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.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying pstack-harness?

CallGet help
Cite this page

pstack-harness skill. Agent Mart. https://agentmart.dev/skills/machinelearning-nerd-pstack-harness (last updated 2026-10-24)