跳到正文
lauren· @poteto · X·· 2 小时前AI 评分45
AI 导读

这里有一些 pstack 强力提示词,你可以试试来升级你的代码,先从这条开始(提示词在帖子底部) 重构,让你的代码对智能体更友好 https://x.com/poteto/status/2106542593656111276?s=46&t=HFNOJ7P2JmfjDfKskFwLUw

正文

here are some power pstack prompts you can try to upgrade your code, starting with this one (prompt is at the bottom of the post)

refactoring to make your code friendlier to agents
https://x.com/poteto/status/2106542593656111276?s=46&t=HFNOJ7P2JmfjDfKskFwLUw

引用lauren@poteto
it's easy to fall into the trap of micromanaging your agents instead of correcting the environment that shapes its behavior. pstack 0.15.9 now ships a new /correct skill: if you keep correcting agents for the same mistakes, it finds the pattern and fixes it with architecture, types, and checks. i like to imagine that commits rapidly flowing into the codebase are like a bonsai tree rapidly growing in whatever direction it pleases. what you want to do is not to give in to the chaos, but tame it intentionally with the right constraints 0.15.9 also has improvements to: • /architect: now includes instructions on designing agent friendly architecture • a new /benchmark-checklist skill based on @brendangregg's benchmarking checklist here's a prompt you can give to grok bot to start architecting a better codebase with pstack: /poteto-mode create a new Project agent to refactor and rearchitect my repo so that our architecture is more agent friendly. it should use both the /correct and /architect skill to look through past commits and find the most common pitfalls that agents fall into, whether its with code quality, performance, or bugs. if relevant you can also use the /recall skill to find past conversations for context. it should make a high level plan for me to review. it should also answer its own open questions by prototyping rather than defer to me. come back to me with a plan backed by real data. once i approve the plan, use either the stack or full autopilot playbook (ask me which i want) to execute
在 X 查看被引用的帖子

来源:lauren · x.com