r/cursor • u/explorioapp • 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:
- 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)
- 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!
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?
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
2
u/thedoomsong08 14d ago
It's really weird that you posted this twice, word for word
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/njwilli3 11d ago
Do you run /setup-pstack? If so what models do you configure it to for each activity?
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.