模型够强了,团队为什么还没交付得更快?|Atlassian 的上下文实践
原题Models Alone Aren't Enough: Connected Context for Agents | Alan Braun, Atlassian
看前速览
Atlassian 的 Alan Braun 认为,AI 写码更快之后,还需要让 Agent 找到规划、评审和发布所需的组织上下文,才能缩短交付周期。
代码写得更快,评审压力也可能更大
更多 PR 会带来更多需要核实和决定的事项。早一点把工作与决策理由连上,可以减少后续反复确认的时间。
让上下文把跨工具的人和事连在一起
图谱能帮团队追溯为什么做了某次变更、应该请谁评审,以及有哪些依赖。Agent 查询时也要受使用者的权限约束。
用实际任务检验新增上下文有没有帮助
演示中,先查外部上下文的 Agent 找到了只看本地文件时漏掉的依赖。Braun 建议用少量带预期结果的任务做盲测,比较加入上下文前后的表现。
完整摘要
Braun 用 Atlassian 调查中个人提速和组织回报的落差切入,解释为什么提交更多 PR 可能把瓶颈推到审批和决策环节。他介绍了一个把人、代码、任务、资产和其他资料连起来的图谱,强调每一步都要遵守原有权限。两个 Claude Code 实例的对照演示表明,多找到一个依赖仓库就能改变技术方案。最后,他给出了一种团队自己就能跑的盲测方法。
章节
文字稿
简要说明Brief Description
Atlassian 的 Alan Braun 解释了为什么编码速度加快后,瓶颈转移到了下游;图谱如何连接团队已有的上下文;以及他的团队如何测试这些额外上下文能否让智能体更有用。Alan Braun of Atlassian explains why faster coding has shifted bottlenecks downstream, how a graph can connect the context teams already have, and how his team tests whether that additional context makes an agent more useful.
目录Table of Contents
- 引言:关联上下文Introduction: connected context
- AI 是否正在创造价值?Is AI delivering value?
- 优秀的上下文层应解决的问题What a good context layer should solve
- 瓶颈已经转移了The bottleneck has moved
- 将上下文表示为图形Context as a graph
- 为什么全组织范围的上下文很重要Why org-wide context matters
- 七层上下文Seven layers of context
- 构建 MCP 工具的经验教训Lessons from building MCP tools
- 演示:有无关联上下文的对比Demo: with and without connected context
- 要点:从哪里开始Takeaways: where to start
引言:关联上下文Introduction: connected context
好,我们来弄清楚这个标题的意思,我也给大家简单介绍一下我做的事情。在 Atlassian,我负责生态系统业务。我管理我们的开发者平台、Marketplace,以及 Atlassian MCP 和其底层的一系列 API。我想在座很多人都用过 Atlassian MCP,如果我没猜错的话。我很荣幸每天都能和开发者共事,看着他们在我们的平台上构建产品,主要是在我们的开发者平台 Forge 上进行开发。如果你还不知道 Forge 是什么,我建议你去了解一下。或者之后也可以来找我聊聊。 至于我个人,我做的事情大概和在座很多人一样:我让智能体整夜运行,写代码、构建各种东西。我自己也一直在开发。All right, let's make sense of that title and I'll give you a little flavor of what I do. So, at Atlassian I lead the ecosystem. I run our developer platform, I run marketplace, and I run the Atlassian MCP and a bunch of API things underneath it. I would imagine a lot of you have used the Atlassian MCP if I'm if I'm right. I have the pleasure of working with developers every day as they build on our platform. Largely building on our development platform Forge. If you don't know what that is, I encourage you to look it up. Or maybe talk to me about it later. Now, individually I'm doing what probably a lot of you are doing. I have agents running all night long, coding, building something. I'm personally building all the time.
而我们在这样做时,一直在利用我所说的上下文。创建 CLAUDE.md 文件、AGENTS.md 文件和 Markdown 文件,努力想办法让智能体变得更聪明、行动更快、交付更多成果。现在,想象一下,当组织规模扩大,拥有多个团队、多个代码库和大量知识时,如何将这一切整合起来,形成我所说的互联上下文,帮助你更快推进工作。 今天上午我们听了两场精彩的演讲。第一场讲的是软件工厂和如何加快速度,上一场则完全聚焦于上下文。我希望能在此基础上继续展开。刚才我一直在点头,心想:“没错。”希望我能以此为基础,给大家提供一些不同的视角。这次演讲我会讲三件事。And we're constantly leveraging what I would call context when we do that. Creating CLAUDE.md files, AGENTS.md files, markdown files, trying to figure out how to get the agents to be smarter, to move faster, to deliver more. Now, imagine that at scale when you have multiple teams in an organization, multiple repositories, lots of knowledge, how do you bring that all together into what I'm going to call the connected context to help you move quicker. Now, we've heard two great talks this morning. This morning was software factory and moving faster, and the last talk was all about context. I hope I'm going to build on. I was just nodding my head going, "Yes." Hopefully I'm going to build on that and give you a bit of perspective. I'm going to do three things in this talk.
首先,我想谈谈为什么我们在 AI 方面的进展还不够快,以及要实现更快发展,我们需要做些什么。接下来,我会介绍互联图谱,以及它如何帮助我们。然后,我会为大家进行现场演示,展示一位工程师实际使用我接下来要介绍的一些工具,让大家看看它们在实践中是如何运作的。First, I'm going to talk about why we're not quite moving faster with AI yet and what we need to do to get there. I'm going to talk about the connected graph and how the graph can help us. And then I'm actually going to show you a live demo of an engineer actually using some of the stuff I'm going to talk to you to show you how it works in practice.
AI 是否正在创造价值?Is AI delivering value?
所以,我想我们首先要问的是:AI 是否正在创造价值?如今,我会和很多客户、开发者交流,而我认为我们会得到各种各样的答案。就个人而言,我们做得非常出色。我们的执行效率更高了,产出更多了,我们在使用智能体,也在做所有被告知应该做的事情。但从组织层面来看,我不确定我们是否会得到这样的回答。我认为,AI 并没有完全实现企业所期待的转型。事实上,为了让这件事更具体一些,在我们的《团队现状》报告中,我们提到,89%的高管表示,AI 加快了他们的工作速度。So, the first thing we I think we need to ask is AI delivering value? Now, I meet with a lot of customers and a lot of developers, and I we would get a lot of mixed answers here. Individually, we're crushing it. We're executing better, we're executing more, we're using agents, we're doing all the things that we're told that we're supposed to be doing. But at an organizational level, I'm not sure we would get that response. I don't think it's meeting quite the enterprise transformation that companies are expecting. In fact, to make this a bit more real, in our state of teams report, we reported that 89% of executives say AI has increased their speed of work.
我想我们都会点头认同这一点。但只有 6% 的人有信心指出 AI 为整个组织带来的回报。这是一个巨大的脱节。那么,为什么会出现这种脱节?有意思的是,模型和智能水平一直在进步,能力也在不断提升。我想我们都会同意,使用新模型时,我们都会惊叹:“天哪,看看这些模型能做到什么!”给大家一个参考,有些较新的模型还没出现在这张图表上,因为我们还没有它们的基准测试数据,但它们的能力仍在持续提升。不过,我希望大家在这张幻灯片上重点关注的是橙色线,它代表我们的生产力。Think we would all nod our head and agree to that. But only 6% feel confident that they can point to org-wide returns from AI. That is a massive disconnect. So why is the disconnect happening? And what's interesting about this is models and intelligence keep getting better. The capabilities keep going up, and I think we would all agree as we use new models, we're like, "Oh my god. Look at what these models can do." And just to give you perspective, some of the newer models are not on this chart cuz we don't have benchmarks yet, but the capabilities continue to increase. What I want you to actually look at on this slide though is the orange line, which is our productivity.
而我们的生产力似乎陷入了平台期。那么,问题究竟出在哪里?模型的智能水平越来越高,但生产力却停滞不前。那为什么 AI 没能带来这些转变?既然我们拥有如此强大的智能,实际的问题又是什么?在 Atlassian,我们喜欢用这样一个公式来思考:AI 的成果 = 上下文 × 智能。刚才我说过,我们已经拥有了大量智能。我想大家都会认同这一点。我觉得自己每天都越来越喜欢 Claude Opus 5.5。它能做到的事情令人惊叹。但如果缺少上下文,就很难让它以最有效、最快捷的方式完成你需要它做的事。而且我认为我们非常在意的一点是,要以高性价比的方式完成,尽可能少用 token。And our productivity seems to plateau. So what's the disconnect here? Models intelligence higher, but productivity is plateauing. So why isn't AI delivering these transformations? If we're getting all this intelligence, what's actually the problem? Atlassian, we like to think about it as this equation. AI outcomes equals context times intelligence. Now, I just told you we have a lot of intelligence. I think we would all agree. Think I'm falling in love with Claude Opus 5.5 every day. It's amazing what it can do. But without context, it's hard to really make it do what you need it to do in the most productive way, in the fastest way, and I think something we care a lot about is at a cost-efficient way, with the least amount of tokens.
所以,在进入背景介绍之前,我想先谈谈什么是 AI 原生。这是我们花了很多时间思考的问题。左边是个人生产力:一个人借助更快的 AI,更快地完成任务;一个代码仓库;一系列你会用到的技能,以及所有本地事务。我想我们都会认同,我们在这方面做得相当出色。我们产出了更多 PR,完成了更多工作。我不确定我们是不是一定交付得更快了,在某些情况下也许是。我们创造东西的速度肯定快了很多。而在我的工作领域,作为一名与设计和工程团队伙伴合作的产品人员,得益于个人生产力的提升,这些职能之间的界限如今正在变得模糊。但我想把视线转向右边,因为真正能让我们从 AI 中获得巨大提升和重大影响的,正是右边所代表的东西:工作流生产力。And so before I get into context, I want to talk about what it means to be AI-native. And this is something that we spend a lot of time thinking about. On the left side, you have individual productivity. One person, faster AI, faster tasks, one repository, a bunch of skills that you use, all the local stuff. And I think we would all agree we're kind of crushing it there. We're We're producing more PRs, we're getting more work done. I don't know that we're necessarily shipping faster. Maybe we are in some cases. We're definitely creating a lot faster. And In my world, as a product person that works with my design and engineering counterparts, those lines are really blurring now because of the individual productivity that we're getting. But I want to move to the right side. Cuz the right side is really where we start to get the big gains and the big impact from AI. And it's workflow productivity.
我们如何在规划、构建、审核和交付方面提高效率?流程的其余部分则要复杂得多。你需要多个团队相互协作,也需要彼此配合。这里有很多事情需要发生并顺利运转。我们又该如何利用 AI 和端到端的业务背景,聚焦于这一流程的正确方向?How do we get more efficient with planning, with building, with reviewing, and with shipping? The rest of the process is more complicated. You need multiple teams working with teams. There's collaboration. There's a lot of things that need to happen and work right. And how can we leverage AI and end-to-end business context to focus on the right side of this?
优秀的上下文层应解决的问题What a good context layer should solve
好了,我提到了“上下文”。这个词被过度使用了。我知道我们刚才在上一场演讲中也听到了这个词。但一个好的上下文层应该解决什么问题?在讨论它是什么之前,我们要解决的是什么?我们要解决什么问题?我想指出两个问题:如果你打算构建自己的上下文层,就应该考虑这两点。第一,工作并不是孤立进行的。它涉及多个团队、工具和智能体。因此,如果你要构建上下文层,它就必须能够跨这些团队、工具和智能体协同工作。第二,瓶颈会不断转移。我们来深入聊聊这个。我马上解释我的意思。So, I've said context. This word is overused a lot. I know we just heard that in the last talk. But what should a good context layer solve for? Before we talk about what it is, what are What's the problem we're solving? I think there's two problems that I just want to call out that if you're going to build your own context layer, you should think about these two things. Number one, work isn't siloed. It spans teams, tools, and agents. So, if you're going to build a context layer, it's got to work across those things. And the bottlenecks move. Let's dive into that. I'll explain what I mean in a minute.
首先,我们先花点时间聊聊工作。我认为工作是一项团队运动,我想大家都明白这一点。除非你是在任何组织中独自做项目,否则你都需要和团队一起工作。多年来,我们一直在和各个团队协作,但与另一个团队合作并不总是容易的。我们得认真思考,怎样才能影响那个团队,让他们做我需要他们做的事,从而支持我正在开展的产品。这是我们人类用来思考如何让团队协同工作的背景。但现在,情况正在变得更复杂。我们正在把智能体引入其中。First, let's talk about work for a minute. I think work is a team sport. I think we know that. I think unless you're an individual person doing a project in any organization, you're working with teams. And for years we've been collaborating together with teams, and it's not always easy to work with another team. Need to think hard about how am I going to influence that other team to do what I need to support the product that I'm working on. And that's context that we use as humans to figure out how do we get those teams to work together. But now what's happening is something bigger. We're bringing agents into the mix.
现在,智能体开始与团队协作了。但这带来了一个问题:智能体掌握的上下文并不总是和人类掌握的一样。更糟的是,它们掌握的上下文可能更多。那么,它们该如何与其他团队高效协作呢?我们再进一步。现在,智能体之间也开始协作,彼此配合工作。我们该如何构建一个互联的上下文,以满足所有这些使用场景?团队与团队、团队与智能体,以及智能体与智能体之间的协作。这里还有另一个问题:智能体能够访问的上下文,必须拥有与你作为团队成员时相同的权限。So now agents are working with teams. But this is a problem because the agents don't always have the same context the human has. Or even worse, they have more context. And now how do they work efficiently with other teams? Let's take it a step further. Now we have agents to agents, and agents are working with other agents. How do we build a connected context that solves for all of these use cases? Teams to teams to agents, and agents to agents. The other problem we have here is that the context the agent has access to needs to have the same permissions that you do as a human in your team.
如果智能体能够访问超出其权限的信息,并把这些信息带入团队环境中,会发生什么?这可能会变得相当可怕。因此,在思考我们究竟要构建什么时,还有很多问题需要考虑。What happens if the agent has access to more information than they're supposed to, and now they bring it into that team environment? This could get pretty scary. So we have a lot to think about as we think about what are we building for.
瓶颈已经转移了The bottleneck has moved
不过,我们也来花一分钟谈谈瓶颈。回顾过去,我想大家都会认同,尤其是在座各位:构建、编码和实施一直是整个流程中最耗时的环节。执行起来要花很多时间。规划本该花更长时间,但我不确定我们是不是都做得很好。所以我们就直接开始写代码,做了大量执行工作,然后再进行评审、测试等等,最后交付上线。好,这就是我们过去常见的流程。猜猜怎么着?我想大家都知道,我们现在执行得更快了,提交的 PR 更多了。看看我们使用 DX 产品进行的研究,我可以告诉大家,PR 的数量正在增长,而且实际由 AI 驱动的 PR 比例正接近 100%。所以,我们执行得非常快。But let's also talk about bottlenecks for a minute. Historically, I think we all would agree, especially in this room, that building, coding, and implementing was the long pole in the tent. It took a lot of time to go execute. Planning probably should have taken longer, but I don't know that we all planned very well. So we went into code and we executed a lot, and then we did review, testing, and all that, but we shipped. Okay, so that's the typical what we've seen in the past. Guess what? I think we all know this. We're executing faster. We're delivering more PRs. If you look at our studies with our DX product, I will tell you we see PRs are on the rise and we're approaching near 100% of PRs are actually AI-driven. So, we're executing really quickly.
这意味着我们发布得更快了,对吧?现实确实如此。我们的执行速度更快了。那为什么发布没有更快呢?问题就在这里。我想大家都笑了。我看到观众席上有几个人笑了。这是因为我们现在给整个组织增加了一项负担。我们的执行速度确实更快了,写的代码也更多了,但这给流程后半段带来了更大的压力。实际情况是这样的:PR 更多了,审批更多了,需要做的决定更多了,签字确认更多了,会议也更多了。我一直在问自己:“怎么才能去掉流程末尾的那些会议?我能做些什么来简化流程、减少这些环节?”因为我告诉你们,这就是我们的机会。That means we're releasing faster, right? That is the reality. We're executing faster. How are we not releasing quicker? Well, here's the problem. I think we all smile. I see a couple laughs in the audience. It's because we have this tax that we've put on the organization now. We're definitely executing and writing more code, but that's putting a lot more pressure on the back half of the process. So, what actually happens is this. It's more PRs, it's more approvals, it's more decisions, it's more sign-offs, it's more meetings. And I keep asking myself, "How do I eliminate the meetings at the end of the process? What can I do to simplify and cut down?" Cuz let me tell you guys, this is the opportunity.
它不一定是前半部分,不过我认为你可以在前期做一些事情,来解决后半部分的问题。怎么解决后半部分的问题?一个好的上下文层会针对每个阶段进行优化,而不只是执行阶段。我觉得从历史上看,我们谈到上下文时,一直非常关注如何更快地执行,而未必关注整个工作流。所以,我已经反复说了很多次“上下文”这个词。我知道在上一场演讲中,我很喜欢这个词,因为它与我对上下文的理解非常契合。我想先让你们大致了解一下我的思维模式,这样接下来我展开介绍时,你们就能明白我会如何思考。It's not necessarily the front part, although I think you can do things up front which fix the back half. How do you fix the back? And a good context layer optimizes for every stage, not just execution. And I think historically when we talk about context, we've been very focused on how do we execute faster, not necessarily the entire workflow. So, I've said this word a lot, context. And I know in the previous talk I loved it because it was very aligned to the way I think about context. I want to give you a sense just so your mental model is the way I'm thinking from here going forward as I present this out.
将上下文表示为图谱Context as a graph
这是一张图谱,而这就是我对上下文的理解方式。它始于一个项目或某项工作,相关人员都围绕它连接起来。连接是关键词。哪些人在这个项目上工作?他们的角色是什么?他们在组织中的什么位置?他们了解什么?接下来,还有与该项目相关联的知识。在我们的世界里,知识可能来自 Confluence,也可能来自 Google Docs、Markdown 文件,或者所有我们知道的与该项目有关的内容。然后我还可以继续列举:组织的目标是什么?业务指标是什么?销售数据是什么?客户背景是什么?我们做过哪些白板?开过哪些会议?所有这些都需要连接起来,才能真正简化工作流程。This is a graph and this is how I think about context. It starts with a project or some piece of work and the people are connected around it. Connected is the keyword. What people are working on that project, what are their roles, where are they in the organization, what do they know? We then have knowledge connected to that project. Knowledge can come in our world could be Confluence, but if it could be Google Docs, it could be markdown files, it's all the stuff that we know about that project. And then I can go on and on. What's the goals of the organization? What's the business metrics? What's the sales data? What's the customer context? What's the whiteboards that we've done? What's the meetings? All of this needs to be connected in order to actually streamline the workflow.
因此,当我们把所有这些连接起来时,就有机会减少评审轮次。这样我们就有机会真正缩短整个流程,最终实现更快的交付,而不只是更快的执行。不过,所有这些上下文究竟存放在哪里,才是问题所在。我又该如何利用它呢?在我们 Atlassian 的世界里,有一种叫作团队协作图谱的东西,我稍后会谈到,它能把这些内容连接起来。但在很多人的工作环境中,这些东西其实已经存在于边缘了。这些事情你们可能已经在做了。我们来具体聊聊。指令文件——我相信你们已经在用 CLAUDE.md 和 AGENTS.md 了。有些情况下,你们会让智能体来编写这些文件,让它们变得更智能。我希望在其他情况下,你们会用人的智慧来编写,因为我觉得这些文件里有不少垃圾内容。And so when we connect all of this, that's when we get the opportunity to cut down the review cycles. And that's when we get the opportunity to really shorten the entire process and actually end up with faster delivery, not just faster execution. So, where does all this context live though is the problem. And how do I take advantage of it? Well, in our world, in Atlassian world, we have something called the teamwork graph, which I'll talk about in a minute, which connects this. But in a lot of people's world, you already have this stuff at the edge. This is stuff you're probably doing already. Let's talk through it. Your instruction files, you're already using CLAUDE.md and AGENTS.md, I'm sure. And you're getting your agents in some cases to make them smarter. I hope in other cases you're actually using human intelligence to go do it as I think we get a lot of slop in those files.
我们有规格说明。在 Atlassian,我们正在了解到,前期花大量时间打磨规格说明,可以大大减少后期审查代码、审查 PR,以及真正投入时间交付的工作量。所以现在,我们把大量时间放在前期的规格说明上。我想,今天早上听到的 Tesla 和软件工厂的例子,就很好地说明了如何在一开始就把事情做对,让它顺利走完整个流程。 接下来是技能。技能的一项重要作用就是精简上下文。问题之一是,我们会让上下文窗口变得臃肿。我们必须非常谨慎,确保在合适的时机提供合适的信息。还有代码索引,我想你们知道,所有代码仓库都已连接起来。还有记忆——我们在上一场演讲中听到了这一点:我怎样才能不一遍又一遍地犯同样的错误?怎样才能在整个过程中不断学习,让自己变得更快、更聪明?We have specs. Something that we're learning at Atlassian is spending a lot of time up front with the spec can reduce a lot of time in the back half reviewing the code, reviewing the PRs, and actually spending time shipping. So, we are now in a process of a lot of time up front in the specs and I think if we heard this morning with Tesla and the software factory, I think it's a great example of really getting it right up front so it can go through the process. Then we have skills. And one of the important things that skills have to do is trim that context. Part of the problem is we bloat the context window. We need to be really careful we have the right things at the right time. Our code index, I think you know all the repositories connected. And memory, we heard this in the last talk, it's how do I not make the same mistakes over and over and over? How do I learn to get faster and smarter as I go through the process?
此外,当然还有 MCP 服务器,我们可以通过工具连接各种事物,也可以接入第三方服务并与之连接。但最终,真正将这一切整合起来的,是一个组织级别的解决方案,能够连接所有这些来源。这正是机遇所在。And then there's certainly MCP servers where we can connect things using tools, we can go out to third-party services and connect them. But what ultimately brings this together is when you have something org-wide that connects all these sources. That's the opportunity.
为什么组织级上下文至关重要Why org-wide context matters
那么,为什么要关注全组织范围的上下文?这为什么重要?我为什么要在意?当你回到工位思考这些问题时,我想问三个我认为相当重要的问题。第一个是:这段代码为什么会是这个样子?如果没有所有相关联的上下文,这个问题就很难回答。你得从代码追溯到拉取请求,也许还要查 Jira 工作项,了解为什么要这么做,接着再去看文档或决策日志,弄清楚事情为什么会以这种方式发生。再比如,谁应该评审这项变更?这看起来似乎很基础,但实际上很难。你该如何把组织中正在发生的变更,与负责的团队及团队中的各个角色联系起来?顺便说一句,参与的可不只有程序员。很多时候,我还得去找法务、财务、市场营销等部门,弄清楚他们在做什么。我经常发现,市场营销部门写了很多内容,本可以为我们实际开发产品的方式提供参考;如果这些信息没有关联起来,我们就会错过它们。So, why org-wide context? Why does that matter? Why do I care about this? Well, I'm going to ask three questions that I would say are pretty important as you think about this going back to your desk. Is why is this code like this? It's a really hard question to answer if you don't have all the connected context. You go from the code to the pull request, maybe to the Jira work item to understand why it was done, and then to the documentation or the decision log of why things happened the way they happened. Or who should review this change? Seems so primitive, but it's so hard. How do you connect the changes happening in the organization to the owning team, to the roles in the team, and by the way, it's not just coders. A lot of times I have to go talk to legal, to finance, to marketing, to a lot of other organizations that I got to figure out what they're working on. And I often find there's a lot of stuff written in marketing that would have informed the way that we're actually developing the product, and we miss that if it's not connected.
如果我更改这个,会有什么东西出问题?这是另一个特别棘手的问题。你正在开发一项服务或一款产品。你有依赖服务、负责这些服务的团队,还有不断出现的未解决事件和客户请求。怎样才能让这些情况一目了然,从而做出更明智的决策,并在发布时提高效率?对于 Atlassian 来说,答案就是 Teamwork Graph。这就是我们采用的方案,我们在内部也使用它。我来给你看一个例子。我们也将它作为产品提供给客户。如果你在使用我们的产品,这背后凝聚着我们 20 多年来的实践,以及对人们如何工作的深入理解——理解工作、团队、目标和知识,以及它们如何彼此关联。What breaks if I change this? This is another one that's really hard. You're working on a service or a product. You have dependent services, you have their teams, and you have open incidents and customer requests coming in. How do I give visibility into this to get smarter, to make me more productive as I release? For Atlassian, the answer is Teamwork Graph. That's what we use. We use it internally. I'm going to show you an example of that. We also ship this. If you're using our products, this is over 20 years of us working, understanding how people do work. Understanding work, teams, goals, and knowledge, and how it comes together.
我们的产品拥有一个互联的图谱,也有行业连接器可以引入外部数据,让你能够利用这个图谱完成工作。关于 Teamwork Graph,我还可以谈很多,但我更想向你介绍它底层的技术,这样万一你不想使用 Teamwork Graph,而是想构建自己的图谱,也能有所参考。And we have a connected graph for our products, as well as connectors in the industry to bring in outside, which allows you to take advantage of the graph to get your work done. Now, there's a lot I could talk about with Teamwork Graph, but what I'm more interested in is giving you what's underneath it, just in case you don't want to use Teamwork Graph, you want to build your own graph.
七层上下文Seven layers of context
我们会考虑七个层面的上下文。第一是知识,也就是团队记录下来并学到的一切。接下来是沟通,包括所有对话、会议、文字聊天、电子邮件,以及 Slack 和 Teams。然后是工作。你在哪里跟踪工作?就我们而言,是 Jira,但你实际在哪里跟踪工作?接下来是代码。我们如何把所有代码仓库连接到同一个地方?再接下来是人员,这是一个很容易被低估的层面。它是组织的核心,包括人们在哪里办公、在哪里工作、属于哪些团队;再回到那个营销的例子,我该如何连接所有组织?We think about seven layers of context. First is knowledge. It's everything your team has written down and learned. Next is communication. It's all the conversations, the meetings, the text chats, the emails, Slack and Teams. Next is the work. Where do you track your work? So, in our case, it's Jira, but where do you actually track your work? The code. How do we connect all the code repositories into one place? Next is people, a layer that is easy to underestimate. It's the heart of your organization. It's where people sit, where they work, what their teams, and again, going back to that marketing example, how do I connect all the organizations?
这些资产。我知道今天早上提到了一个汽车行业的例子。我们也看到同样的情况:汽车公司正在编写与硬件相连的软件。在做决策时,如何把这两者联系起来?然后是数据。这里的数据指所有业务数据,包括 Databricks、Snowflake 和数据湖。如何把所有这些联系起来,以便做出决策?这会体现在几个不同的方面。好,对我们来说,有 100 多种体验可供使用。我打算把它分成三个领域,我觉得我们常常不会从上下文的角度去考虑这些领域。当我在这里说“上下文”时,我想在座的大多数人马上会想到你们的编程代理,以及如何为编程代理提供上下文?The assets. I know there was an automotive used this morning. We have the same thing where we see automotive companies are writing software connected to hardware. How do you connect both of those when you're making decisions? And then the data. And the data is all the business data. It's the Databricks, Snowflake, the data lakes. How do I connect it all together to make decisions? Now, where this shows up is in a couple different places. Okay, for us, there are more than 100 experiences available. I'm going to break this down into three areas, which I think we often don't think about in terms of context. When I say context in this room, I would imagine most of you immediately think about your coding agents and how can I bring context to my coding agent?
另外还有两个我认为非常值得关注的方面,大家。如何在组织内聊天,并确保获取正确的组织背景信息,从而得到回应?还有搜索。如何在组织内部,在恰当的时间找到恰当的内容?这个上下文图谱有助于解决这三种使用场景。所以,没错,当然包括代理编写代码,也包括搜索和聊天。那么,我们如何访问 Teamwork Graph,或者说如何访问你的上下文层?目前有两种方式。你们当中很多人都在使用 MCP 服务器。我不确定你们是否有人知道或用过 Teamwork Graph CLI,但它有多种使用场景。根据具体场景,有时 CLI 会更合适,有时 MCP 会更合适。我之所以提起这件事,是因为There's two other places where I think it's really important to think about, chat. How do I chat in an organization and make sure I get the right organizational context to get my response? And search. How do I find the right things at the right time inside of my organization? This context graph helps solve for all three of the use cases. So, yes, certainly agents writing code, but also search and also chat. Now, how do we access the Teamwork Graph or how do you access your context layer? There are two ways that we do it today. A lot of you use the MCP server. I'm not sure any of you even know or have used the Teamwork Graph CLI, but there are multiple use cases. Depending on the use case, the CLI can be better sometimes, MCP can be better other times. The reason why I bring this up is
构建 MCP 工具的经验教训Lessons from building MCP tools
我想花一分钟聊聊 MCP。你们当中有些人可能正在构建 MCP。如果你们在构建上下文图或上下文层,可能会想构建一个与之相连的 MCP 服务器——而且你们确实应该这么做。我们从 MCP 中总结出了一个重要经验,实际上有两点要告诉大家。第一,一定要特别注意工具膨胀。在 Atlassian,我们由我负责整个平台的 MCP,也就是涵盖我们所有的产品。你们可以想象后来发生了什么:每个产品团队都创建了自己的工具。我们把这些工具全都放到了一起,而在 MCP 发展的早期,这就意味着要把所有这些工具都加载到上下文窗口中。I want to talk about MCP for a minute. Some of you may be building MCPs. And some of you might be building, if you build a context graph or if you build a context layer, you may want to build an MCP server and you should, that's connected to that context. One of the biggest learnings that we've learned, there's actually two that I'm going to give you with MCP. Number one, you have to be really careful with tool bloat. So, in Atlassian's world, I own the MCP across the platform, which is every one of our products. You can imagine what happened. Every product team created their own tools. We threw the tools all together and in the early days of MCP, it meant loading all those tools into the context window.
我们现在已经进行了优化,接下来要寻找合适的工具。但现实是,人们想要的不是产品工具,而是平台工具、跨产品工具。他们真正希望你思考的是“待完成的工作”。因此,我建议你从这些待完成的工作出发,反向思考:针对你的上下文层,应该构建哪些合适的工具。归根结底,最重要的是让智能体在合适的时机获得正确的上下文,从而完成它正在执行的工作。在这里,上下文越多并不意味着越好;上下文恰到好处才更好。所以,务必要认真思考如何访问你的上下文层?这还会带来一个我觉得很有意思的副产品。We've now optimized, we now search for the right tool, but the reality is people don't want product tools. They want platform tools, cross-product tools. What they really want you to think about is the jobs to be done. And so, what I would encourage you to think about is working backwards from the jobs to be done and thinking about what are the right tools that you should build for your context layer. At the end of the day, what's so important is that the agent gets the right context at the right time to do the job that is doing. More context doesn't mean better here. The right context means better. So, really thinking through how do you access your context layer? And there's a little byproduct to this, which I think is interesting.
上一场演讲中,我们谈到了 MCP 连接器。顺便说一句,你应该使用它们。Teamwork Graph 有趣的地方在于,我们会利用连接器获取上下文,从而为当前任务找到合适的参考资料,然后在恰当的时候使用合适的 MCP 连接器,获取这些参考资料的详细信息来完成工作。因此,我们并不会事事都使用 MCP 连接器,而是只在需要时用于合适的事情。此外,我们的 CLI 还有 670 多条命令可供使用。The last talk, we talked about MCP connectors. And by the way, you should use them. But what's interesting thing Teamwork Graph is we use the connectors to get the context so we can get the right references for what we need for this task and then we can use the right MCP connector to go get the details of that reference at the right time to do the job. So we're not using MCP connectors for everything. We're using it for the right things that we need. And then our CLI has over 670 commands that you can use also.
活动公告:AI DevCon 即将重返伦敦。我们首届伦敦活动的门票在六月就已售罄。今年十一月举办第二届纽约活动后,我们将在 2027 年重返莫尔盖特的 Brewery,带来更强大的演讲阵容,以及为期两整天的分享,内容来自真正使用智能体构建产品的人。你将听到他们对行业现状的坦诚看法、团队采用 AI 的真实故事,既有成功经验,也有种种棘手之处,还有他们对未来发展的展望。活动将于 6 月 7 日和 8 日举行。悄悄告诉你,我们为你准备了超值优惠。扫描此二维码,即可仅需 100 英镑购买早鸟票。伦敦见。Event announcement: AI DevCon is coming back to London. Our first London event sold out in June. After our second New York event this November, we're heading back to the Brewery in Moorgate in 2027 with a bigger lineup and two full days of talks from the people actually building with agents. You'll hear honest takes on where the industry's at, real stories from teams adopting AI, the wins as well as the messy bits, and where they think things are heading next. It's on June 7th and 8th and don't tell anyone, but we've got a really great deal for you. Scan this QR code to grab an early bird ticket for just £100. See you in London.
演示:有无关联上下文的对比Demo: with and without connected context
Alan Braun:为了让大家直观地了解这一点,我将给大家播放一段视频。视频稍微有点长,但我希望大家能感受一下,一位真正的工程师如何在这个上下文层的帮助下完成实际工作。大家将看到,左边是一个没有上下文的 Claude Code 实例,右边则是一个有上下文的实例,你们可以看到它们的表现有何不同。Alan Braun: To bring this to life, I'm going to show you a video. The video runs slightly long, but I want you to get a sense of an a real engineer doing real things with this context layer. What you're going to witness is a Claude Code instance on the left without context and one on the right with context, and you're going to be able to see how they perform differently.
Kunal:大家好,我是 Kunal,今天来和大家一起探索一种有效的演示方式,展示 Teamwork Graph 中的上下文如何帮助智能体更好地完成工作。我会并排演示两个 Claude Code 实例。左边是刚安装好的 Claude Code,右边则是完全相同的 Claude Code,只不过安装了 TWG 技能。我来给大家看看。在这里输入 skills,我们会看到只有三个技能,这些都是 Claude Code 内置的。如果在右边做同样的操作,我们会看到除了这三个技能之外,还有一大批 TWG 技能。这些 TWG 技能会教 Claude Code 如何使用我们的 Teamwork Graph CLI,从多个应用中获取上下文。这两个版本唯一的区别就在这里。Kunal: Hey folks, it's me, Kunal, helping us explore a good way to demonstrate how the context from our Teamwork Graph helps agents do our work better. I'm demonstrating this with two Claude Code instances side by side. On the left, we have a freshly installed Claude Code. On the right, we have exactly the same Claude Code, but with TWG skills installed. so I'll show you. If I type skills here, we'll see there are only three skills. these are built in from Claude Code. If we do the same thing on the right, we'll see there are a bunch of TWG skills in addition to those three. these TWG skills will teach Claude Code how to use our Teamwork Graph CLI to fetch context from multiple apps. That is the only difference between these two versions.
所以,我们要在 platform integration 仓库的两边运行同一个任务。我会把提示词贴在这里。对,就是同一个提示词。这个提示词里的示例任务之一,是扩展一个 StreamHub 流水线,使其支持一些新事件,同时保持与相关服务的兼容性。这不是个简单的功能。所以,我们会让代理只制定计划,不做实现,只给出技术方案。现在就让它们运行吧。这需要一些时间,而且会花相当长的时间。我知道,要看懂这两个滚动终端屏幕上的全部内容并不容易。所以,我记录了这两个代理运行的完整轨迹,并在这里做了可视化,方便我们更轻松地看出两者之间的差异。so, we're going to run the same task on both sides in the platform integration repo. And I will paste the prompt here. so, the same prompt. this prompt, one example task is extending a StreamHub pipeline to support some new events while keeping compatibility with relevant services. It's a non-trivial feature to add. so, we're going to ask the agents to just come up with a plan. and not the implementation, just the technical plan. So, we'll let them run now. it's going to take a while, quite a while. And I know it's it's not going to be easy to parse this whole like these two screens from two scrolling terminals. So, I captured the full trajectories from those two agent runs and visualized them here to help us see the differences more easily.
轨迹演示展示了一个任务:改进 Jira 管理员的 Slack 摘要,将已批准的访问请求从待处理列表中移除。我们现在可以实时观看各个智能体的工作过程,并监测累计 Token 成本、耗时以及最终结果。这里可以看到,两侧都能使用 TWG。这个智能体最初几轮主要是在通过 TWG 搜索来查找上下文。它正在搜索相关背景信息,并找到了一些 Confluence 页面,也学会了一些合适的术语,以便继续搜索。这里我可以快速展示一下这些页面。The trajectory walkthrough shows a task about improving a Jira admin's Slack digest to remove already approved access requests from the pending list. We're watching the agents working in real time here and we'll monitor how the cumulative token cost and time spent and the outcome is. Here we can start to see with TWG available here on these sides, this agent, the first couple of turns was really mostly about searching for context through TWG search. and it's searching for context. It found some Confluence pages and it learned some of the right vocabulary for what to search next. here I can show quickly what the pages are.
这两页是搜索到的页面,智能体阅读了这些页面。它们主要介绍了 Slack 与 Jira 集成的工作方式、访问请求通知的实际运作方式或作用,以及这里的产品行为。因此,即使是人类,也会觉得这些上下文很有帮助。随后,智能体使用代码搜索找出了其他一些相关文件。我们可以看到,其中一些结果甚至无法通过常规的词法搜索找到。是语义搜索索引找到了这些匹配项,因为你可以看到,它们与关键词并不完全匹配。These two pages are the pages that got found and the agents read these pages. These pages largely just explained how the Slack Jira integration works and what the access request notifications really how they work or what they do and the product behaviors here as well. So, even humans, we will find this context very helpful. And then, the agent used a code search to identify some other related files. So, here we can see some of these results can't even be found through typical lexical search. It was the semantic search index that found these matches because you can see it's not exactly match the keywords.
所以,这也是相当有用的一点。左侧没有 TWG 的基础版 Claude Code,只是直接跳进本地仓库并开始读取文件。我会加快进度,但真正重要的是,通过这些搜索操作,我们发现还有另一个仓库是我们即将修改的内容所依赖的。而在这个仓库中,有一些非常重要的背景信息,可以为我们在这里需要进行的实现提供依据。好,我们加快进度。这里可以看到,有了 TWG,代理更早就制定出了正确的计划,成本也更低,而基础版 Claude Code 仍在运行。so, that is something that was quite useful as well. The base Claude Code on the left without the TWG is just like jumping directly into the local repo and starting to read the files. I'll speed through this but the important thing is really through these search operations, we actually found there is another repo that is a dependency of what we're about to change here. And in this other repo, there's some very important context that can anchor the implementation we need to do here. so, yeah. let's speed through this. and here we can see with TWG the agent was actually able to produce the correct plan sooner and with less cost while the base Claude Code is still running.
最终,基础版 Claude Code 也会完成任务。但问题在于,它缺少上下文,制定计划时也遗漏了相关仓库。因此,它的计划实际上是错的。它臆造了事件架构,实际上还会向用户发送重复通知,这会造成非常糟糕的后果。另一方面,我们有一个正确的计划,这是因为它利用了另一个仓库中的上下文;除非我们提前进行搜索和上下文检索,否则这些信息很难找到。因此,配备了 TWG 的 Claude Code 成功识别出了这些隐藏的上下文,并以更低的成本、更短的时间制定出了正确的计划。没错,这就是上下文的力量。使用 TWG 的智能体在最初几轮中,大部分时间都花在检索上下文上,然后才进入本地仓库开展工作。通过 Teamwork Graph 提前找到的上下文,正是它在这里取得成功的关键。Eventually, the base Claude Code will also finish. and the problem is that it lacked context and missed the related repo in its plan. and as a result, the plan was actually just wrong. it hallucinated the event schema and would actually send a duplicate notification to the users, which would be really bad. on the other side, we have a correct plan and that's because it drew on the context that exists in this other repo, which is really hard to find unless we do the search and context retrieval up front. so, Claude Code equipped with TWG successfully identified this hidden context and made the correct plan with less cost and less time. Yeah, and that is the power of context. The agent with TWG spent the first couple of turns mostly on context retrieval before going into the local repos to do the work. and the upfront context found through Teamwork Graph was really the key to its success here.
Alan Braun:我认为这个例子生动地展示了左右两边发生的情况。左边尝试采用更传统的方法,使用 MCP 服务器,去获取它认为自己需要的上下文。右边则使用了这个上下文图谱,但正如 Kunal 提到的,真正重要的是前期获取上下文的工作。现在,我想给大家一点参考。我们的测试结果显示,token 用量最多可减少 48%,答案质量可提升 44%。所以,如果要我选一张能说明关联上下文价值的幻灯片,那就是这一张。这就是它重要的原因:答案更好、幻觉更少,而且成本更低。总的来说,我认为这正是它重要的原因。Alan Braun: I think the example brings to life what happened on the left side versus the right side. On the left side it was trying to do the more traditional approach using MCP servers, going out and getting the context it thought it needed. And on the right side it used this the context graph, but what's really important is the upfront work as Kunal mentioned of getting that context. Now, I want to give you a bit of perspective here. What we've seen in our tests is we spend up to 48% fewer tokens and 44% better answer quality. So if there like if there's a slide that I would say to land on here for connected context, it's here. This is the reason why it matters. Your answers are better, less hallucination at a lower cost. And so just working through that, I think that's the really the reason why this matters.
图表有什么作用,你应该考虑些什么?What does a graph do, and what should you think about?
要点:从何处入手Takeaways: where to start
最后,我来总结一些你可以采取的行动。如果你在使用 Teamwork Graph,那很好。如果没有,那么你还可以在自己的环境中做些什么,立即从中受益呢?第一,连接所有数据源。这是起点。你可以使用 MCP 来开始着手,但认真梳理一下哪些数据源能帮助你更快、更好地完成工作,本身就是一个很好的开始。第二,把你的工作关联起来。可以考虑在 PR 中添加 issue key。你可能已经在做其中一些了。仅仅做到这一点,就能把工作关联回你正在处理的 issue 或 PR。I'll wrap up with some things you can do. If you're using Teamwork Graph, that's great. If you're not, what are other things that you can do in your own environment to take advantage today? So one is connect every source. This is where it starts. And you can use MCPs to start this, but thinking through all the sources that you need to actually get your work done faster and better is a great start. Number two is link your work. Think about putting issue keys in PRs. You might be doing some of this already. Even that alone will actually connect the work back to the issue or the PR that you're actually working on.
负责人、代码负责人。如果你还没这么做,就应该开始做,明确谁负责什么。记住,这对于代码仓库来说很有用,但未必适用于组织层面的所有权。第四点非常重要:精简上下文,只保留重要的内容。第五点是保护。因为权限在这里至关重要。如果我们不谨慎,智能体就会访问它们不该访问的内容。所以,你始终都需要考虑如何做好保护。 别光听我们说,你需要测试,也需要衡量。上一场演讲中我们也谈到了这一点。你得做大量评估。我想跟你分享一下我们对此的看法:选取五个提示。Owners, code owners. If you're not doing this, you should be, but getting ownership of who owns what. And remember, that's great for repositories, but maybe not organizational ownership. The fourth one is really important to trim the context to what matters. And number five is protect. Because permissions are super important here. If we're not careful, agents get access to things they shouldn't have access to. So, you always need to be thinking about protection. Now, don't take our word for it. You need to test this. You need to measure it. And I know in the last talk we talked about this also. You got to do a bunch of evals. And I just want to give you what how we think about this. Take five prompts.
写下你今天要做的事情所用的提示词,并明确写出你期望得到的结果。然后像你们刚才看到的那样,把它输入进去,带上上下文、你当前的上下文,以及你连接的上下文。接着,用一个不知情的 LLM 来评估。不要告诉 LLM 你测试的是哪一个。只让 LLM 给结果打分,好吗?然后看看哪个更好。你必须不断微调、持续迭代,让它变得越来越好,让你的上下文真正满足你的需求。 最后,我想用这张幻灯片作结。这里的大部分内容你们已经有了。这不一定是什么新东西,它们已经存在于你们的环境中。关键在于把它们连接起来。Write the prompts of what you do today and actually write out what you expect the outcome to be. You then pass it through, just like you saw, with context, with your current context, with your connected context. And then you use a blind LLM to judge it. Don't tell the LLM which one you're going through. Just have the LLM score the results. Okay? And you'll look at what's better. And you have to constantly fine-tune this. You have to continually iterate to get it better and better to get your context to actually deliver what you need. And so, I'm going to end on this slide. You already have most of this. This isn't necessarily new. It already lives in your environment. The work is connecting them.
这有助于让你的智能体迈出真正使用这些信息的一步。所以,等你回到办公桌前,有六件事我希望你认真想一想。第一,把工作关联起来。不管怎样,无论你用的是什么系统——如果是 Jira,那很好;如果不是,就用你正在使用的系统——把问题编号写进 PR 中。并确保 CI 流程会检查这一点。第二,记录归属关系。我不只会考虑代码归属,还会考虑组织层面的归属。要有一个地方,让智能体可以查到哪些人参与了正在进行的工作。第三,记录你的决策。And it's helping give your agents one step to actually use this information. So, as you go back to your desk, there's there's really six things I want you to think about. One, link your work. If nothing else, whatever system you're using, if it's Jira, great. If not, whatever you're using, put your issue keys inside of your PRs. And make sure as part of your CI, it actually checks for it. Number two is write down ownership. And I would go beyond just code ownership. I would actually think about organizational ownership. Somewhere where the agent can look up who are the people associated with the work happening. Number three is write down your decisions.
代理可以替你完成很多这类工作,但记录实际发生的事情非常重要,这样我们才能从中学习并加以利用,让下一个任务也能用上这些上下文。第四,连接三到五个数据源。不要连十五个,先连三到五个。从小处着手,逐步扩展,看看哪些内容有用,持续进行评测,看看怎样才能真正取得更好的结果。编写一个上下文技能。这个技能知道如何使用你记录下来的所有信息,对其进行精简,拥有恰当的权限,并在合适的时机传入合适的上下文。回到我之前说的,这不仅仅是团队与团队之间的协作,还有团队与代理之间、代理与代理之间的协作。我们该如何为它提供恰当的上下文?然后反复进行那五条提示的前后测试,一遍又一遍。The agent can do a lot of this work for you, but it's so important that you're capturing what actually happens, so we can learn from it and we can leverage it, so the next task can use that context. Number four, connect three to five sources. Don't do 15. Connect three to five. Start small, continue to build up, see what matters, continue to run evals, and see how do I actually get better results. Write one context skill. A skill that knows how to use all of the stuff that you've written down, trims it, has the right permissions, and passes in the right context for the right moment. Going back to what I said earlier, it's not just teams and teams, it's teams and agents, it's agents and agents. How do we give it the right context? And run your five prompt test before and after, over and over and over.
我将以最初的话结束:模型非常智能。但现实是,更多上下文并不意味着效果更好。真正能让模型变得更智能、帮助你更快交付成果的,是彼此关联的上下文。谢谢,希望大家的会议一切顺利。I will end where I started. Models are super intelligent. But the reality is more context doesn't actually mean it's better. It's connected context that actually fuels those models to become more intelligent and allows you to deliver faster. Thank you. Hope you have a great conference.