Skip to content

About

pstack reworked for T3 Code: delegated subagents, worktree threads, PR watching, scheduled runs.

Resources

Stars

1 star

Watchers

0 watching

Forks

 
 

Repository files navigation

p3-stack

A maintained T3 Code adaptation of Lauren Tan's pstack, forked from uzairansaruzi/p3-stack.

The reviewed mirror baseline is pstack 0.15.50, commit a9eca6cadf8a4f78eae1e8979bee5570e3ed89fd. All 59 skills, 24 principles, and 22 playbooks are included. Principles stay exact. T3 adaptations and all 663 imported-file hashes are recorded in PORTING.md and upstream.lock.json. The current source review covers the clearer statechart instructions; the Lean compiler review records its proof and verification boundaries.

pstack helps agents write less, higher quality code through deliberate design, independent review, and proof on the real application. Use individual skills when you need them, or let /p3-mode route rigorous work.

/statechart checks TLA+ models or Lean 4 proofs and produces Mermaid charts. Lean checks require v4.34.1 and report unproven gaps, failing steps, native computation and custom axioms. The charts support review; they do not replace a separate build or axiom verification gate.

Compatibility tracks stable T3 Code v0.1.13, pinned in t3-runtime.lock.json. Nightly-only functionality stays optional. Runtime capabilities must still be checked for the installed app/provider combination. The runtime contract covers reported execution models, model-family diversity and Arena's different-vendor judge, scoped history pagination/search, native PR/CI tools with current-head pins, watch results and push-hook approval notes, provider mode restrictions, multi-repository isolation limits, optional structured outputs and fresh-session scheduling, and private secret handoff. Beta Workflows do not replace the source's existing playbooks.

Install in WSL or Linux

Requires Node.js 22.18+ on the 22.x line, or Node.js 24+. The executable helper tooling also requires Bun 1.4.3 or newer and Git. GitHub workflows use gh.

mkdir -p ~/src
git clone https://github.com/mrdbstn/p3-stack.git ~/src/p3-stack
cd ~/src/p3-stack
node install.mjs

Use Linux-native Git, Node, and Bun from PATH. Keep this checkout, project checkouts, and dependency stores under your Linux home, not /mnt/c. Run the installer inside WSL using the same Linux user/environment as T3's agent. A Windows installation of the skills is not a WSL installation.

For one project, use node install.mjs --project /home/you/src/project. The installer links skills into ~/.agents/skills/ or the project's .agents/skills/, preserves existing real directories, and can be rerun. Keep this checkout while its skills are installed. ./install.sh is an equivalent Unix convenience wrapper. Native Windows is also supported through node install.mjs, using directory junctions.

Use

  1. Run /setup-p3 to choose your budget and available model roles.
  2. Prefix a task needing rigor with /p3-mode and state how to tell it is done.
  3. Ask /p3-help when unsure which skill fits.

Project-root p3-models.md overrides ~/.agents/p3-models.md. Settings are read at task start. Unconfigured roles inherit the parent model; configure panels to obtain model diversity. Installation alone does not invoke the skills. Save the full mode for work that needs its extra review and verification.

Use /reframe to name an unclear problem, learn the relevant expert terms and neighboring-field analogies, and rewrite the description. It opens every cited link and drops citations it cannot confirm. Skills include explicit-invocation frontmatter and Codex policy metadata; call /p3-help when you want the guide. Providers that ignore that metadata still require their own supported skill invocation.

T3 must expose the orchestration tools used by the chosen workflow. Models and options come from orchestrator_capabilities. Writers use isolated delegated worktrees. The parent owns PR watches. Ordinary top-level conversations are created only when explicitly requested. See the runtime contract.

Proof tooling

Installed skills resolve paths from their own location. Upstream 0.15.43 removes Orchestrate and the plan checker; large or unattended work routes through /figure-it-out. Plans retain unit, live, and performance proof and operator review where required. Every delegated brief starts with the installed worker.md pointer. /interrogate keeps findings reproduced against real code. Statechart bootstraps TLC and Java with mise on first use and needs network access.

Verify and maintain

node scripts/check.mjs
node --test tests/*.test.mjs
bun install --cwd skills/p3-mode/scripts --frozen-lockfile
bun test --cwd skills/p3-mode/scripts
bun run --cwd skills/p3-mode/scripts typecheck

CI checks the port and helper tooling on Linux and Windows, and the statechart suite and typecheck on Linux. In skills/statechart/scripts, run npm install --no-save --package-lock=false --ignore-scripts and npm test for its recorded TLC corpus. Live TLC differential tests also need Java and TLA2TOOLS; otherwise they report skips.

UPSTREAM.md covers ongoing maintenance. A daily GitHub workflow detects pstack and stable T3 drift even when Codex is offline. A daily Codex maintenance task performs reviewed updates through branches, PRs, and passing CI. New source revisions never blindly overwrite T3 adaptations.

These checks establish source coverage and tool behavior. A live T3 model-behavior smoke run is still required to validate an installed app/provider combination.

Credit

The skills, principles, and engineering approach are Lauren Tan's pstack. The original T3 adaptation is by uzairansaruzi. This fork maintains the source sync, native runtime mappings, packaging, and verification. MIT, see LICENSE.

About

pstack reworked for T3 Code: delegated subagents, worktree threads, PR watching, scheduled runs.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages