我正在做我梦寐以求了几个月的项目,感觉真好。

1作者: sebestindragos7 个月前
大家好, 想跟大家说一下,我已经很久没有对写代码感到这么兴奋了。没有压力,只是在构建我一直以来想要的东西,而且现在各个部分终于开始契合了。 没错,它用到了 AI……本地 Ollama 模型通过 Playwright 控制一个 electron 浏览器上下文,Playwright 作为 MCP 工具连接到一个 agent 实例。听起来很酷,对吧?而且你知道吗?确实很酷,而且非常棒。 我至少等了 6 个月才开始构建它,因为我找不到一个好用的、适用于 Node.js 的 AI agent SDK 库。幸运的是,前段时间,OpenAI 终于发布了他们的 Python 版本。 现在我有了所有需要的工具,就开始着手开发了,在几个周末的时间里,我成功地做出了一个原型。它还很粗糙,需要很多润色,但作为一个概念验证,它已经可以工作了。 我甚至不记得上次因为沉迷于编码而凌晨 4 点才睡觉是什么时候了。但感觉真好,哥们。
查看原文
Hey everyone,<p>Just wanted to say that I haven&#x27;t felt this good about writing code in a very long time. No pressure, just building something I&#x27;ve been wanting for a long time and the pieces are finally falling into place.<p>Yes, it is using AI ... local Ollama models to control an electron browser context via Playwright connected as an MCP tool to an agent instance. Sounds fancy, right? And you know what? It is and it&#x27;s pretty darn cool. I&#x27;ve been waiting at least 6 months to build this because I couldn&#x27;t find an ai agent sdk library for nodejs that didn&#x27;t suck. Fortunately a while ago, Open AI released their python port finally.<p>Now that I had all the tools that I needed, I got to work and in a couple of weekends I managed to get a prototype working. It&#x27;s still rough around the edges and needs a lot of polishing, but as a proof of concept, it works.<p>I can&#x27;t even remember the last time when I went to bed at 4am because I got stuck on a coding frenzy. But it feels nice man.