feedback-agent 这个 npm 包能帮你自动修 bug——用户提交反馈后,Cursor agent 会读 PostHog 上下文,改完直接开 PR,你只管手机审。
作者分享了一个反馈自动化流程,并打包成 npm 包 feedback-agent。在应用中嵌入 widget,用户提交反馈后,文本、会话回放和错误日志会同步到 PostHog。Cursor Cloud Agent 通过只读的 PostHog MCP 获取上下文,循环修复直到测试通过,再自动创建 GitHub PR。开发者只需在手机上审查 PR 即可,反馈直接变成可合并的代码变更。
i turned this into an npm package you drop a widget in your app and when someone files feedback, a ...
i turned this into an npm package you drop a widget in your app and when someone files feedback, a cloud agent opens a pr npm i feedback-agent Your browser does not support the video tag. 🔗 View on Twitter eric zakariasson @ericzakariasson i've been building some smaller apps over the last weeks for myself, friends and family and discovered a pretty nice pattern in the process you see, after building, i'm not particularly interested in fixing bugs or triaging feature requests. i just want to get the job done so i've set up a system that lets me and other users fix bugs and build features without me having to actually open cursor the flow: 1. someone files feedback in the app 2. it lands in posthog with the submitted text, session replay, events, and errors 3. a cursor cloud agent picks it up with that context, plus live read-only posthog mcp 4. it loops until the fix is verified, then opens a github pr with tests 5. i get a ping and review it on my phone we give our cloud agents access to all the necessary user context, and they'll figure it out with this in place, we can start setting up more abstractions in between. if we're getting a high volume, we might want to triage first with another cloud agent or some automation. the feedback can create a github or linear issue, which we later pick up with a cron-backed cloud agent that decides which are duplicates. there are so many ways to configure this, you just gotta try it out and see what works for you but there's so much more here that is untapped. with session replays and event logs, you can have a cloud agent look at each session replay to extract ux pitfalls and improvement areas. you can have another agent looking at event logs to see weird patterns. another one for errors or similar try it out and see what you can do! 🔗 View Quoted Tweet 💬 5 🔄 0 ❤️ 45 👀 3331 📊 12 ⚡
- Cursor08-13 16:36原文