pstack reflect: give each parallel reviewer its own scratch subdirectory

Open Beginner friendly
#1,154 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@mangeshraut712 is already working on this.

Since Nov 9, 2026.

  • #1196 by @mangeshraut712 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Domain
devtools

Research direction

Start with skills/reflect/SKILL.md, step 2, where the three reviewers are spawned, and check how their prompts currently name no scratch location. Then look at the poteto-mode Subagents section for the general-case note. Done means each reviewer's prompt directs it to write only into its own subdirectory, such as <scratch>/reflect-<lens>/, and the synthesizer in step 3 reads from those paths. No test is named, so verify by reading the revised prompts for consistent paths.

Written by the indexing model from the issue text.

Description

Problem

skills/reflect/SKILL.md step 2 spawns three reviewers in parallel, and step 3 spawns a synthesizer. Nothing in the prompts tells each reviewer where to write intermediate files. In Claude Code, they share the session scratchpad. During one run, a reviewer wrote digest.txt there, and another reviewer overwrote the same file name while the first was still reading it. The first reviewer then read a file in a different format.

The same risk applies to any skill that fans out parallel subagents (for example, swarm lanes or poteto-mode delegates that write logs such as preview.log).

Suggested change

In skills/reflect/SKILL.md step 2, pass each reviewer a dedicated subdirectory (for example <scratch>/reflect-<lens>/) and tell it to write only there. A one-line note in the poteto-mode Subagents section would cover the general case.

Environment

pstack 0.15.36, Claude Code.

Dominant language
TypeScript
Stars
18.2k
Forks
2k
Avg merge
3h 56m
Merged PRs (30d)
96

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cursor/plugins

All issues in cursor/plugins

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.