嘉宾
So there must be are there any kind of automated triggers that trigger stuff in your repo? Like how do you get the software factory kind of triggering work by itself?
而现在我,我处在这样一个位置:我其实不必再亲自待在那里了,因为那个环境,你知道,还是同一个类比,对吧?
Right. Um I'll definitely say that the prerequisite to you know something like a very high volume of of pull requests um is the environment. you know, the the stuff we just talked about where I definitely would not have been able to do this if I had not spent the time, you know, thinking about the kitchen, right, and the knives and the tools for my Asians. And so, in a way, I I think of this as I've spent the time building one kitchen and one restaurant.
它运转得非常好。 [笑声]是啊。你去开连锁餐馆,对吧?那就是 poteto:是啊。完全对。是啊。完全对。就像你就是 Gordon Ramsay,而且你知道,你,你已经把想出好菜单的所有诀窍都教给了你的行政总厨。嗯,而且那间厨房布置得非常好。一切都刚刚好,而你现在处在可以开你的第二家、你的第三家餐馆的位置。而且[哼了一声]我想,我,我多少把我在做的每一个项目,比如每一段大的聊天,都看成一家餐馆,对吧?
And now I I'm in a position where I don't actually have to be there anymore because the environment, you know, that the same analogy, right? It works really well. Yeah. You open chain of restaurants, right? That's Yeah. Exactly. Yeah. Exactly. It's like you're Gordon Ramsay and you know, you you've taught your executive chef like all the tricks of the of coming up with great menu. Uh and like the kitchen is set up really well.
而且我,我,我同时有好几家在。同时运转,而我有点像在它们之间坐直升机来回,有时候在其中一些上面比另一些更多,这取决于我自己介入得有多深,不过是的,我肯定觉得,存在一些外部的触发器和上下文,是那些项目自己没有的,而在很长一段时间里,是我在为那个做代理,所以,嗯,我最好的例子是,比如,你知道,你有一个项目,它正在。
Everything's just perfect and you're now in a position where you can open your second your third restaurant. And I guess I I sort of see each project that I work on, like each big chat is sort of like a restaurant, right?
做一个功能,嗯,或者你在试着修一个 bug,而且你在收到 bug 报告,但这些 bug 报告去往 Slack,或者 Linear,或者 X 这类地方,对吧?
and I'm I'm I have multiple of them operating at the same time and I'm sort of like helicoptering between them sometimes some more than others depending on how in the loop I am but yeah definitely I think there's there are external triggers and context that those projects don't have that for a long time I was the proxy for that so uh the best example I have is like you know you have a project that's working on a feature uh or you're trying to fix a bug and you're getting bug reports, but the bug reports are going to things like Slack or linear or X, right?
而这些是没有连到你的内环上的外部系统。所以,我喜欢谈这个外环和这个内环。嗯,我不知道我是不是把定义用对了,但对我来说,我的内环,基本上就是我的工程师,我的 agent 工程师,在代码上工作,朝着一个意图,或者我的意图的一份快照去构建,对吧? ,而关于这件事的一点是,那份快照会过时,对吧? ,会有新的信息出现,然后我必须去做它的代理,并且,你知道,把那个上下文传给我的 agent,所以,你知道,如果你没有这些把。
And these are external systems that aren't connected to your inner loop. So, I like to talk about this outer loop and the inner loop.
信息拉回内环的触发器,那你就多少得扮演那个角色,你,你人在别处,你知道,在 Slack 里,或者在 X 里,或者在随便什么地方,你在收集上下文,对吧?
Uh I don't know if I'm using the definition correctly but to me my inner loop is like basically my engineers my agent engineers working on the code to an building towards an intent or snapshot of my intent right and the thing about that is that the snapshot can go stale right new information comes to light that I then have to be the proxy of and you know transfer that context to my agent so you know if you don't have these triggers pulling information back into the interloop, then you sort of have to play that role where you're you're off, you know, in Slack or X or or whatever and you're gathering context, right?
你在拿到关于 bug 报告的上下文,关于功能请求的上下文,关于,你知道,某个人说到的,你知道,我们的后端基础设施有某种限制,你知道,所有这些信息,你都得把它们传。给你的 agent。所以这就是我觉得像 Grok Bot 这样的工具真正好的地方,因为它们也帮你把外环自动化。而当你把这两个环连起来,就非常非常强,因为现在突然之间,你的 agent 有能力自己去拿到这个上下文,对吧?如果比方说,嗯,你知道,哪怕只作为一个简单的例子,比如也许你有那个Slack MCP,对吧?
You're getting context about bug reports, about feature requests, about, you know, something someone said about, you know, our backend infrastructure has some limitation, you know, all that information, you have to f that across to your agent. So that's where I think like tools like Grogbot are really good because they help you automate the outer loop as well.
或者你有,嗯,你自己的 harness,对吧,你已经为一个特定的 Slack 频道建好了 Slack 订阅。现在突然之间,你可以告诉你的 agent,好,去订阅这个 Slack 频道。每当出现一条,嗯,你知道,关于某件事的 bug 报告,就去把那件事分诊掉,对吧?
And when you connect those two loops, it's very very powerful because now all of a sudden your agents have the ability to get context for this for themselves, right? If for example uh you know either through just as a simple example like maybe you have the Slack MCP, right? Or you have uh your own harness, right, that you've built a Slack subscription into for a particular Slack channel. Now all of a sudden you can tell your agents, okay, subscribe to the Slack channel.
去复现这个问题,对吧?用我们已经花时间建好的那些验证 skill,以及所有我们搭好的那些其他 skill,这样我就有很多信任,对吧?我非常信任这些 agent 真的能自己跑去理解这个 bug,你知道,嗯,去核实这个 bug 在 main 上确实还在,而不是关于你的某件事,也许是用户的环境,或者他们的数据,或者也许,我不知道,他们没有安装某个依赖,或者类似的事情,像,嗯,基本上我。
Every time there's a uh, you know, bug report about something, go off and triage that thing, right? Go reproduce the issue, right? Using the verification skills that we've already spent time building and all of those other skills that we've set up so that I have a lot of trust, right?
觉得,嗯,把那个建起来,是的,把这两个环建起来,并且把它们连上,真的是如今这份工作里非常重要的一部分。嗯,尤其是如果你在想怎样放大你自己。所以,这里的一个大主题其实就是,一直在想,比如,在这个过程里,我这个瓶颈到底在哪里?
I have a lot of trust that these agents can actually go off and understand the bug, you know, uh verify that the bug actually still exists on main and it wasn't something about you maybe the users setup or their data or maybe I don't know they didn't install a dependency or something like that like uh basically I think uh creating that yeah creating those two loops and connecting them is really a very important part of the job these days.
为什么我的 agent 需要我,你知道,来回答这个问题?我,我总喜欢想这个。所以我试着去想我怎样真正让 agent 去回答它自己的问题,对吧?但不是靠产生幻觉,不是靠猜,而是靠真正的数据。而且,你知道,很多人谈公司大脑这个想法,对吧,或者 context graph。我觉得那些术语不必要地复杂,嗯,甚至抽象。
Um, especially if you are thinking about how to scale yourself. So, a big theme here is really just like always thinking about like what where am I the bottleneck in this process? Why do my agents need me, you know, to answer this question? I I always like to think about that. And so I try to think about how do I actually get the agent to answer its own question, right? But not by hallucinating, not by guessing, but actually real data.
对我来说,这只不过是,嗯,我怎样把我的 agent 需要、而我本来会自己去拿、再亲手传给它的那些信息拿过来,并且直接教它怎么做,对吧?这样就把我从这道式子里去掉了。所以,我能做到 2,000 个,或者不管多少个 PR,是因为我把这些环都搭好了,对吧?所以,嗯,这让我可以去开连锁餐馆,对吧?我可以,我可以真正把我自己并行起来。所以,是的,我并不是坐在那里创建 2,500 个聊天,对吧?
And you know, a lot of people talk about this idea of a company brain, right, or a context graph. I feel like those terms are unnecessarily complex uh or even abstract. To me, it's just about um how do I take information that my agent needs that I would otherwise have to go and pass it myself and just teach it how to do it, right? And that removes me from the equation. And so how I arrive at 2,000 or however many PRs is the fact that I have all these loops set up, right?
当然,这其实是,这些项目,嗯,实际上 Cursor 有一个新功能,叫做 projects,就是这些协调者 agent。嗯,所以这些协调、这些协调者 agent,非常擅长去做委派,而不是做它们自己的活,但它们管理和监督几乎一份任务清单,并且它们会派生 sub agent 去做这些任务。所以我只是在不断地喂上下文,或者教这些 agent怎样自己去获取上下文,然后它们就跑去替我把活干了。
And so uh it allows me to open chain restaurants, right? I can I can really parallels myself. So yeah, I'm not sitting there creating 2,500 chats, right? Of course, it's really like these projects are um actually cursor has a new feature called projects which are these like coordinator agents.
嗯,而关于这件事,我真正要说的最后一点,大的一点是,对我来说,能到 2,000 个 PR 的那个大的解锁,是从这个问题出发往回推:我怎样走到我的 agent 可以合并它自己的代码的那一步?
Um and so the coordination co coordinator agents are really good at sort of delegating and not doing work of their own but they manage and supervise like almost a list of tasks and they spawn sub agents to go and do them. And so I'm just constantly feeding context or teaching the agents how to get their own context and then they're going off and doing the work for me.
因为,很明显,人们会问我的是,当他们,当我告诉他们,「哦,我交付了 2,000 和 2,500 个 pull request。是在上个月。 」他们会说,「那你是怎么审查的? 」对吧?那,那是很多要审查的 PR。就像,你的团队一定很讨厌你。主持人:你,你介意我们等一下再去谈那个吗?因为关于那个,有一个好问题。 poteto:对。对。对。主持人:我想,这个类比很好。
Uh and really the big the last thing I'll say to this is like the big unlock for me for getting to 2,000 PRs is starting from the question and working backwards of how do I get to the point where my agent can merge its own code? Because the obvious thing people ask me when they when I tell them, "Oh, I shipped 2,000 and 2,500 pull requests last month." They'll be like, "How did you review that?" Right? That that's a lot of PRs to review. Like your team must hate you.
我想把它再挖深一点,也就是,以前,如果你是在手动发起所有这些聊天,就像你在手动把订单送到你的厨师那里,对吧,而如果你有一个 agent,有点像在做出餐协调(expo),那么你就能让它自己把这件事跑起来,那么这具体看起来是什么样?然后你有这些 Grok Bot,嗯,在订阅频道,把 Slack 消息拉进来,而且听起来你有几个协调者 agent,或者像幕僚长(chief of staff)那样的 agent,在监视那个,或者类似的情况,当你看着你的电脑来管理你的 agent 时,它看起来是什么样?
Do do you mind if we go there in a second? Because a good question about that. Yeah. Yeah. Yeah. I want to like this analogy is great.
I want to like deepen it a bit which is before if you're like manually initiating all those chats it's like you're bringing the orders to your chefs manually right whereas if you've got an agent sort of like doing the expo then you're able to sort of run it yourself itself what is what does that concretely look like then you've got these sort of grock bots that are um subscribing to channels pulling in Slack messages and you it sounds like have a couple of coordinator agents or like chief of staff agents that like monitor that or something like when you look at your computer to manage your agents, what does it look like?
poteto:对。所以,[清嗓子]所以,嗯,我想这多少有点让人糊涂,不过我们正在,你知道,做简化和统一,不过,所以,嗯,有 Grok Bot,嗯,或者,你知道,你。当然也可以用别的工具,不过我,我很大程度上把这些工具看成你的外环。这些是,你知道,像 Grok Bot 这样带有连接器的工具,对吧? ,这些是连接器,我想很多人把它们叫做个人 agent,嗯,但它们是接到你的邮件、你的日历、Slack、嗯、Plaid 上的连接器,我。
Yeah. So, so uh this is I guess somewhat confusing but we're working on you know simplifying and unifying but so uh there's graphbot uh which or you know you can use other tools of course as well but I I largely think of these tools as like your outer loop.
不知道,像所有这些不同的服务,而且它们是把上下文拉进你的工作的一个很好的来源。所以,同样地,一个人,比如,你知道,如果我是,如果我当年是一个经理,我带着一个工程师团队的那些年。
These are tools like you know Grabbot that have connectors right these are connectors I guess they a lot of people call them personal agents um but they're connectors to things like your email your calendar slack uh plaid I don't know like all these different services and they are a great source of pulling context in to your work so the same way that a human like you know if I were if I was a manager and I was leading a team of engineers years.
嗯,你知道,像我以前在 Netflix 工作的时候,经理们会谈的最大的事情之一,就是给上下文而不是给控制(context not control)这个想法,说来有意思。的是,你知道,有那么多,嗯,有那么多,嗯,可以照搬到 agent 的世界里。嗯,就是,你知道,你,你知道,你,你当然可以靠控制来推向你想要的那个结果,对吧?比如靠微管理,但你想要的是改为提供上下文,对吧?比如教这个 agent,教你的工程师怎样自给自足,然后你就不必微管理他们。
Um, you know, like when I used to work in Netflix, one of the biggest things that managers would talk about was this idea of context not control, which funnily enough, you know, has so much uh has so much uh carry over to the agents world. Uh, of you know, you you know, you you of course can drive to an outcome you want by control, right? Like by micromanaging, but what you want is to provide context instead, right?
嗯,所以我看到很多平行之处在那里。嗯,不过是的,Grok Bot。所以,具体来说,我有一些 Grok Bot,它们看我的 Slack 频道,看我的 X,嗯,或者我的邮件,嗯,或者 Linear,而且它们就是一直在看,它们有去订阅的 routine。
like teach the agent, teach your engineers how to be self-sufficient and then you don't have to micromanage them. Um, and so I see a lot of parallels there. Uh, but yeah, graphbot. So, concretely, I have some graph bots that look at my Slack channels, look at my X, uh, or my emails, uh, or linear, and they're just constantly they have routines that subscribe.
所以它们一直在看着,而且我有,我会告诉它们一些话,比如,你知道,嗯,以 Grok Bot 桌面应用里的 bug 为例,我会盯着那些问题。嗯而且每当你发现那种情况,就把它发到我的 Cursor project。所以 Grok Bot 真正很酷的一点是,它能连上 Cursor。所以 Cursor 有,嗯,像我,我刚才提到的这个叫做 projects 的新功能。
So they're constantly watching and I have I I'll tell them things like you know uh I'll watch for issues with uh bugs in the graphbot desktop app as an example. Uh and whenever you find that send it to my cursor project. So one of the really cool things about grabbot is it connects to cursor. So cursor has uh like I I just mentioned this new feature called projects. And a project is really a uh again like a you get a coordinator agent that's in the cloud.
而一个 project 其实是一个,嗯,再说一次,像是你得到一个在云端的协调者 agent。它有它自己的一台电脑,而它真正做的全部事情就是,它是这些 agent 的经理。它就像你的行政总厨,对吧?你的,你的幕僚长(chief of staff)。它自己并不干活。它委派、编排,并管理其他 sub agent 的工作,你知道,那些向你的幕僚长、你的幕僚,嗯,长(chief of staff)汇报的那些。
It has its own computer and all it really does is like it's a manager of agents. It's like your executive chef, right? Your your chief of staff. It doesn't do the work itself. It delegates and orchestrates and manages the work of other sub agents to you know that report to your chief your chief uh of staff. And it basically is responsible for driving the work forward and managing things and uh passing context to them.
而它基本上负责把工作往前推进,把事情管起来,嗯,并且把上下文传给它们。主持人:所以,如果你突然涌来一批 issue,比方说你一次来了 30 个 issue,在一个 payload 里,或者来得非常快,协调者 agent 就能弄清楚,并且把事情委派出去。 poteto:对,正是这样。
So if you get a sudden burst of issues, let's say you get 30 issues at once in one payload or something or very quickly the coordinator agent can figure it out and delegate. Yeah, exactly. It gets like uh you know 30 the 30 or so payloads and spawns a sub agent or a single coordinator agent. It can actually do a bunch of different topologies of agents and it will sort of figure out the best way to uh you know efficiently distribute the tasks to your team of agents.
它会拿到像,嗯,你知道,30 个,大约 30 个 payload,然后派生一个 sub agent,或者一个单独的协调者 agent。它其实可以摆出好几种不同的 agent 拓扑,而且它会多少想出最好的办法,嗯,你知道,把这些任务高效地分发到你的agent 团队。嗯,所以我很常用 Cursor projects,嗯,我也很常用 Grok Bot,而 Cursor projects 是我的内环,Grok Bot 是我的外环。
Um so I use uh cursor projects a lot um and I also use grapot a lot and cursor projects are my inner loop and grabbot is my outer loop. Grabbot takes all the context, external context, gives it to the projects because it can actually just send messages to those projects, right? You don't even have to open cursor. You can just tell your grabbot, okay, create a project, right, for these series of tasks. They're all related, right?
Grok Bot 把全部的上下文,外部的上下文,交给这些 project,因为它其实可以直接给那些 project 发消息,对吧?你甚至都不用打开 Cursor。你只要告诉你的 Grok Bot,好,创建一个project,对吧,来做这一串任务。
Maybe as an example, you know, you've had a uh a big burst of issues that are all about performance, right? Your app is slow uh and they're all connected, right? Maybe some of them even have a similar fix, right? But and you can certainly go off and just spawn one agent per task, but then you've lost that sort of thread between them, right?
它们都是相关的,对吧?也许举个例子,你知道,你遇到过,呃,[清嗓子] 一下子涌来一大批全都关于性能的 issue,对吧?你的应用很慢,呃,而且它们全都连在一起,对吧?也许其中有一些甚至修法都差不多,对吧?不过,你当然也可以直接去,每个任务只拉起一个 agent,可那样你就失去了它们之间的那条线索,对吧?
And and you may duplicate work or you may not really think about the higher level problem. You know, sometimes when you you you solve bugs, you know, it helps to have multiple bug reports that are are slightly different because it helps you really, you know, zoom out and see actually, you know, the problem when I looked at this one report, I thought the bug was here, but actually when when I see the other multitude of bugs is actually up here,right? Yeah. Got you.
而且,而且你可能会把工作做重复,或者你可能并没有真正去想更高一层的问题。你知道,有时候当你,你,你在修 bug 的时候,你知道,手头有多份略有不同的 bug 报告是有帮助的,因为它帮你真正地,你知道,把视角拉开,然后看见,其实,你知道,这个问题,当我看这一份报告的时候,我以为 bug 在这里,但实际上当,当我看到另外那许多 bug 的时候,它其实在上面这里,主持人:对吧?
So that that's why you have so many agents in that loop then,right? Because it's not just you have um like you have a bug report comes in, you spawn a single agent to look at that bug report. that a that single agent will be duplicating work with other um other agents, right? Because if there are multiple bug reports coming in through the same thing, that can be duplicated work. Yeah. Fascinating. That's really fascinating.
poteto:是的。主持人:明白了。所以这,这就是为什么你在那个环里有这么多 agent,对吧?因为这并不只是你有,嗯,就像一份 bug 报告进来,你拉起一个单独的 agent 去看那份 bug 报告。那个,那个单独的 agent 会和其他,嗯,其他 agent 做重复的工作,对吧?因为如果有多份 bug 报告从同一件事进来,那就会是重复的工作。
Okay. And so this just this endless series of triggers um coming from real users reporting real reports um builds up this sort of and accelerates the factory sort of adds more orders in. Other than bug reports, are there any other sources that you use for like um accelerating for pushing these PRs? Uh well, funnily enough, it's some of it comes from uh reading the code, too.
poteto:是的。主持人:很有意思。 [哼了一声] 这真的很有意思。好。于是这一连串没完没了的触发,嗯,来自真实用户在报告真实的报告,嗯,就积累起这个东西,并且让这个工厂加快,算是把更多订单加进去。除了 bug 报告以外,你还有没有别的来源,用来,比如,嗯,加快、用来推动这些 PR?
So, I guess I have sort of uh well, so to clarify that, you know, the 2,500 PRs, they're not obviously like 2,500 features, right? they are a lot of the work actually is spent on gardening like another term that I really love. Uh where so I guess this is more important when you have a big team of engineers human engineers that you work with where and also this goes back a little bit to what I was talking about with the environment.
poteto:呃,说来有点好笑,其中有一部分也来自,呃,读代码。所以,我想我算是有,呃,好吧,先把这一点说清楚,你知道,那 2500 个 PR,它们显然并不像是 2500 个功能,对吧?它们,有大量的工作其实花在打理上,gardening,这是另一个我真的很喜欢的说法。呃,所以我想,当你有一支很大的工程师团队,那些和你一起工作的人类工程师,在那种情况下这一点更重要,而且这也稍微回到我之前讲环境时说的那些。