pstack 'NSFW' prompt: make repeated repo mistakes impossible, not documented

AccBalanced · x · 2026-11-22

Ray Fernando shares a pstack prompt (/poteto-mode) for repo hygiene: have the agent read git logs, past fixes and review comments to find recurring human/agent mistakes, then make each one impossible via architecture first, then types, lint and tests. It also mandates deleting comments that restate code, encoding constraints behind important ones, replacing implementation-pinning unit tests with formal models that replay past bugs in CI, while keeping security/legal tests, shipping one verifiable PR per step.

Original post →

More from coding & agent

coding & agent channel →