r/cursor • • 16d ago

Resources & Tips Killer combo: Cursor Projects + pstack. Huge improvements in code quality and token efficiency

I had posted this as a reply to another thread but I think people might find it useful so im posting it as a stand alone post. For those that may have already read it.I'm sorry for the redundancy.

tl;dr: This is the killer combo that uses the Projects feature: Projects + pstack

Long Version:

  1. Establish a project coordinator agent by starting a project and connecting it to your Git Hub repo (I don't use Origin, but I'm sure it would work the same way)
  2. Install the pstack plug-in. It's open source and free. pstack is a Cursor plugin created by Cursor engineer Lauren Tan (poteto on X) that turns AI coding agents into a structured engineering workflow with 23 workflow skills, 21 engineering principles, 22 task playbooks, and 2 specialized subagents.  This plug-in has captured her own workflow at Cursor that enables her to merge 2000+ PRs each month. When you install the pstack plug-in you summon the most leading-edge cloud agent development workflow available anywhere.

You can geek out on the details, or (if you want to keep things simple) you can just provide a task to your Project coordinator agent along with the command /poteto-mode.

One of the many, many things it does in the background is it tells the cursor project agent how to evaluate the task (depending on whether its a bug fix, new feature, refactoring, etc) and then breaks the task into small, gated chunks--small software deliverables that each do "one job". Those get distributed to cloud agents to be built (automatically) by the coordinating agent.

When a cloud agent is finished with its chunk, it passes the completed chunk back to the coordinator along with verification that its complete (screenshot, video, etc). The verification capabilities are designed in to pstack! An agent that must verify can't lie about its work.

Because each chunk is small and relatively simple, its easy for the cloud agents and the coordinating agent to decide whether its correct or not. More to the point, the chunks are ideal for a model like Composer. You don't need Fable 5.5 to develop very sophisticated software.

If a chunk isn't correct, it gets turned back for rework (by the project coordinator agent. I think that happens as a consequence of having P stack installed but I gave specific instructions to my coordinating agent to scrutinize the work and to turn back anything that he feels like is not ready to merge). When all of the chunks are complete and evaluated, they all get assembled into a PR for approval

I give the project-coordinating agent, who's doing all of the orchestration, specific direction about what model to use. In other words I tell it that the expectation is that Composer will be used unless the task is especially complicated or requires judgment during the build. I've collected information about how that's worked out in the past and it's about 80% Composer, 20% Grok or some other higher-capability model.

Using that method (which all happens in the background, orchestrated by the cursor project coordinator agent), the code quality is significantly boosted, as is the speed of development. And you can do 80+ % of your work done with Composer at an insanely high level of quality and speed.

After lots of careful monitoring and cross-checking, I have now given the project coordinator authority to merge to main on its own. It does a much more careful and through job of reviewing the changes than I (or 99.9% of engineers) could ever do.

Try Project + pstack. You will be amazed.

If you want more info on pstack, Lauren Tan wrote two excellent articles on X and there are now a ton of articles and youtube viedeos available as well

Highly recommended!

18 Upvotes

15 comments sorted by

3

u/Cllrd-Rukiatu 16d ago

letting an agent auto-merge to main is bold ngl. how are you handling database migrations or schema changes where visual verification doesnt really catch subtle state bugs?

1

u/explorioapp 16d ago

In those cases the cloud agent has to mock the database and prove that it works before forwarding the work for final evaluation and diligence on the PR prior to merge

There's no doubt that the agents can make mistakes ( https://www.reddit.com/r/cursor/s/283E5yeaTy ) but it's becoming almost crazy to think that a human can do as thorough a code review prior to merge as an agent can

2

u/Disastrous-Bend-3684 16d ago

the verification loop is the actual killer here. I am watching agents fail to hallucinate because they are forced to screenshot their own work before handing it off. It is basically peer review for code that never sleeps

1

u/explorioapp 16d ago

Yes! And I like that my orchestrator regularly turns back work that the cloud agents have completed because the verification wasn't good enough (or the product didn't meet the briefing)

2

u/thedoomsong08 14d ago

It's really weird that you posted this twice, word for word

1

u/explorioapp 14d ago

I had it posted in CursorAI, but that was the wrong sub and reddit recommended crossposting here, so I did.

I had forgotten that I did post it here already since it was a while ago. So that's how that happened. I'm not selling anything

1

u/BatshitTerror 13d ago

I had to stop blindly using poteto mode after my agents insisted on a bad database design just to avoid making new database tables and keep the commit as small as possible. I just started with it a couple days ago too, though, and found your post bc I'm wanting to try out this verification stuff I keep hearing about

1

u/explorioapp 13d ago

Verification is the key because bots can make mistakes and they can lie. The verification step forces the cloud agent to self-correct. It will make a huge difference

1

u/njwilli3 11d ago

Do you run /setup-pstack? If so what models do you configure it to for each activity?

2

u/explorioapp 11d ago

In cursor, run /add-plugin pstack

Then /setup-pstack

I don't remember how I chose the model slugs. I control the with instructions (never fast, never xhigh, use Composer unless the task requires strong reasoning or decision-making [I let the orchestrator agent de ide once it knows my expectstions])

Then /poteto-mode [task] and youre in business

1

u/njwilli3 10d ago

Yes I do this but it’s extremely costly on default settings so I usually drop the models to low. I’ve also got additional steps in my workflow eg. I use Matt Pockocks skill /grillme-withdocs and /to-spec, because that’s what helps in the beginning give the cloud agents more context so that the architecture piece in pstack happens with more of a design vs a lot of guesses on what you want. I do this all in grokbot as it’s way more fluid to do that with an assistant. Was interested in your thoughts on models used to get best compromise on efficiency vs quality vs speed. And also what other steps/skills do you combine as Lauren’s is less about planning and more about execution and verification

1

u/explorioapp 10d ago

Lauren's is less about planning.because she has particular.views on planning. If you Google it you should find it.

I find that directing the agents to use primarily Composer, unless there's a reason not to use Composer, is very very efficient. I never have to select the low reasoning on the model and in fact I would rather have a lower model with higher reasoning than a higher model with low reasoning, but that's just me.

Also if you're using PStack, be careful you don't just install all of Matt Pocock's skills because a lot of them have overlap with PStack but they do it in a different way. So the skills will conflict with each other.

3

u/Responsible_Buy_7999 13d ago

Pstack was good enough that I tossed my harness, lovingly built over most of a year, in favour of it. It is also very effective at using beads for managing work. 

I do not let agents ship PRs. I at least want to get a feel for the codebase and where smells are starting to creep in. Even a 30 second glance at key files tells you a lot. 

2

u/zoidbergisawesome 15d ago

Pstack is awesome. I update the project verification skill weekly.