[0:00:04] Brandon: You. It's nice to meet you all. I'm Brandon. As mentioned, I've done a few things, but today we're going to be focused very much on making sure that your relationship with all the agents in your life is a fruitful one. So when you bring them to different organizations, I'm sure you've seen all sorts of things. We're going to chat about how to fix. You're absolutely right. Yes, I know they took that out of the harness, but now it tells all sorts of other things to you. Like, oh, you're right, crazy change. But they'll do lots of other things as well. Tell you, take you on a journey. Agree, flip flop, back and forth. But the key here is to basically make sure that there's the right context and that tends to make agents move in the right direction in order for you to not waste your time.
[0:00:45] So the promise I want to make you is that AI generated code should feel like it was written by somebody who's been on your team for years. We still sort of have this effect. You'll probably hear it across markets. Like when you spawn a new AI, it's sort of like an intern and you're like, that's cool. You can tell your intern to do stuff and write really good code, but often when that code meets main, it's not going to work. Like there's some rollout that's happened before. There's like a uniqueness to your database where that migration actually will fail. There's all sorts of situations that are not in the training data. But to set the stage, we first need to understand that for years you have been the context engine in how you do programming. So what I mean by that is when you look at something like a piece of code, you think about it, of course, and you're like, yeah, okay, this is going to work, or that's not going to work.
[0:01:33] Like you're using the sweet, sweet mind of yours. The thing is, is when you went to work, how did you develop that context at work in order to know what the right decisions are? What you probably did was ask a lot of questions. So you proceeded to sort of do the work. You brought all that great learning from industry, maybe from school, maybe from other spots, and you show up and then you try to ship things. As you ship things, you get a linear issue. You might look at a JIRA ticket, you obviously get pull request comments and you just learn a lot of ways that the organization or the staff engineers around you say, no, actually we don't do it that way for these reasons. Check this Linter. Whatever. But that basically built up a corpus in you of tribal knowledge and context about how this organization operates.
[0:02:14] And then you merge that of course with your domain knowledge and your technical skills and then you get things into production. Well, unfortunately your agents have that exact same problem. They need to build that context. They need to basically run through onboarding in your company every single time you start one, either in the cloud or in a new terminal session, whatever. If you type Claude and it appears you got a smart intern and now you need to make it a staff level engineer within seconds so it can get the thing done right. So working across tons of companies, this is what we've seen in terms of like a rollout of an AI maturity model from basically a level one to a level eight for some clarity. You'll see in a sec. I'll benchmark this for you. So don't worry. Not that many people are at 8 with agent swarms.
[0:02:59] I think just the ones escaping and hacking hugging face. But basically what we see is on that far, far my right, your left side, there's that bar underneath that says you are the context in that era of working with AI. Like remember basically a better intellisense, you get a tab complete and you go oh cool, I don't have to write the function tab or it suggests something. You're like, that's stupid as hell escape. That's you working as the context engine. But you're not getting obviously as much gain as you want from running a job overnight. And AI just does it. As you move further, you get into the curated context. That's where someone on your team, maybe you, you've stood up a git repo, you called it context. It's of kind, got a bunch of markdown files and directories in it. And you tell your agent like hey, check that real quick before you do stuff that helps it basically gain a bit of knowledge.
[0:03:46] Maybe it's not an intern now, it's a junior sweet. And it understands things. But there's a bunch of ways that that curated context sort of falls over in actual production with hundreds of engineers. Because first of all, how could you possibly know everything that's going on at your business at all times in order to curate static context? That's correct. And then you'll see another few reasons why it doesn't maintain. So as you pull over, you get into this place called a context layer. So what you need to do is create a context layer that your agents can access freely, dip into to get the data they need or the context in order to accomplish the job they've been given, whatever that task may be, there's a bunch of ways to do that. So to not bore you too much, this is where teams actually are.
[0:04:29] And working with hundreds of different businesses, that's kind of where they're stalling out. So they've definitely moved beyond just their sweet first VS code that had a tab complete. They're into working with agentic IDEs, context engineering, compound engineering. They're starting to curate rules files. I think agents MD is finally actually a standard. Thank you anthropic, we appreciate you, but those things are great and they're very helpful. But as you want to scale out more, you want to run longer jobs, more difficult tasks, you need to basically move up this maturity curve. Because the issue here is that every time you get context wrong, you have a cost associated with it. In the first part, if you're just doing tab complete, the cost is very simple. You just catch it, you're like, yeah, it's dumb. You hit escape. When you move into the area where you just have curated context that's wrong.
[0:05:20] You get what I call doom loops, which is you tell the thing to do something, it runs for three minutes, then you look at it and you go, no, here's a file. You drop in, you tell it something else, it runs again. But you hit these correction doom loops multiple times where you're like, no, not quite right, let me steer you, please go over there. And then it gets it right and you're like, oh, okay. But that doom loop does one thing is it takes your time and attention. So your wall clock time to shipping, the feature is increased and then the other is because it's taking your time and attention. You don't have another thread with an agent running, which causes you to not be as productive as you'd like to be. Plus, it's just really annoying to keep telling your agent, dude, I've already told you this, don't do that.
[0:05:59] Then you move into this other place. Once you fix that, maybe curated context is working, you then have a review tax because you're shipping a ton of PRs that are now hitting and your senior engineering team is getting overloaded. If anyone is worked with the idea of like AI code review tools, the idea of risk. So assessing the riskiness of a PR that's going in helps you identify where human attention should be spent on a pr or if it's a low risk pr. Maybe we yolo it, no big deal. But I'll talk about that as well. And then finally you get silent failures. If you've moved all the way up to I've got background agents, the dream, I close my laptop, I don't even worry about it. It's like, well, if they have bad context, you're just opening a bunch of token expensive, shitty PRs and probably wasting your colleagues time.
[0:06:42] They're like, dude, why did we let that guy keep sending us these like Devon PRs? Stop it. But, but you're doing it and you feel productive. But that's a waste of token, it's a waste of everyone's time. It's not a good idea. I think someone called them slop grenades and that's what it feels like when you give someone a tool they probably shouldn't have. So here's some common approaches you'll see that unfortunately do not work, but you may see yourself in some of these. And for clarity, these are basically false maximas. You get some gain if you do these techniques. I'll go through each one, but you will not get all the way through to what you want, which is autonomous agents running in the background or even proactively picking up work. The first is that curated context trap. You make a local repo, you throw a bunch of markdown files in it, you write an agent's MD there, I've curated it.
[0:07:29] And now as the business move forward, you need to maintain it. So just like every other document source, it starts to rot. And that's unfortunate, it's not going to get you where you need to be. The next is this MCP plateau. So you go, okay, fine, static context, we'll keep that, that's cool. But then let's also get mcps so we get real time context and my agent can just call whatever service and pull the data. The problem is there's a known bias called satisfaction of search. What that means is these helpful agents, when given a task that says whatever, implement this feature they call jira. They get the ticket, they read the info on the ticket, which you all know was not written very well, but it's there and it goes, that's all I need. That is it satisfying at search, it's like I found what I needed.
[0:08:14] It stops looking and then it proceeds to implement. And then you look at it and you go, this is a shitty implementation because it missed something. The satisfaction of search is known from radiology where a radiologist, when looking for cancer, for example, if they find one nodule on you, they will stop looking at the scan because they think they found the problem, which causes them to miss other key factors contributing to the problem. So when agents suffer from this, they a don't know necessarily which MCP to call if you have many, which you probably do, and then B, when they find the first piece of correct info, they proceed without finding all the info. Like a good human engineer would, is make sure that you got all the data you needed to do the job right. Then the third wall that people hit is the cloud agent wall.
[0:09:00] So in this case, kind of as mentioned before, you're in a situation where you're just burning a ton of expensive search tokens. So if every time the cloud agent starts in a vm, it has to actually do grepping across the entire code base and try to find all the data, that's a huge waste of a, like the actual wall clock time and the tokens, because it's researching over space that the other agent beside it is also searching. So when you get this context into a live system like a context engine, it's able to retrieve that data, get memories, et cetera, just move faster and be more token efficient. Basically this is everything I've been telling you is that access to information is not understanding. So shaping that context layer and the engine that powers it to get real time data signals in as well in such a way that it delivers understanding to the agent is what you need.
[0:09:50] Because understanding is also an idea of correctness. There's probably a ton of data in your org that is wrong, that conflicts with each other, that two years ago they wrote the doc, but it's changed in a Slack conversation. Like this happens naturally in organizations. So you want to make sure that you're delivering understanding to the underlying agent in a bit of a meme way. This is what I'm trying to tell you is this is all the stuff your agent cannot see is below the line up top. They know how to write code that compiles like we're good unless someone just invented another new language, please don't do that Python. But below this is what they miss. Like what's the actual intent? Where's the business going? What are we trying to accomplish? You know, what's been rejected before? Has a rollout in this sort of migration failed previously.
[0:10:36] All these things really matter to actually getting real code into main running on real revenue. This isn't like side projects, you're all leaders at large businesses. Like it's not just Evergreen, they're real brownfield code bases. So when you get an actual context engine, what you need is all of the stuff that's below. Because this is the context that's emitted in the course of engineering doing their jobs. Like, you go to Slack and talk with your colleagues about stuff and you actually, by doing so, write really important context that the agent needs to be able to get. And it just happens because you're working. That's just literally how it works. Like we speak to each other, we ask each other questions, and all that stuff is super important. So make it accessible. So why does your agent need a context engine? First it needs to be able to resolve conflicts.
[0:11:27] I touched on this. But you find some architecture doc. And then last night the CTO in a Slack thread said, we're not doing that anymore. Which one's right? If your agent just surfaces one, how does it settle that debate? You needed to have the idea of experts. There's usually an experts graph and a good context engine. It knows who people are, where you commit code, where you review code. So who's actually the dominant expert of that area of code. So it can settle a conflict if it finds one. You need to understand who you are. So if I say I'm working on the AUTH service and I'm on this team, the agent should immediately understand and have a focal point when it enters the graph to do agentic retrieval, to do graph traversal. It knows where to start because it knows who I am and who's asking the question because it understands my AUTH credentials.
[0:12:11] And that way it can find the right thing. So in large code bases, there's probably many AUTH services and many areas. So it's got to be able to navigate quickly. It should be able to reason across all the sources. So just think of basic entity mapping. If you have just one MCP connected to one one agent session, what happens is that agent that's both doing the work also becomes the thinker of the work because it has to call each MCP and bring it into its context window and then in that session try to reason about it alongside the execution, which causes it to do dumb shit is the short story. So what you want is something that at server can basically you send it a URL. Let's pretend it's a GitHub link to a pull request. It will open that PR, look at it, read the description, see that there's an associated URL that's linking to a JIRA ticket and it can open that ticket and go read that too.
[0:13:03] And it's starting to entity map across. Once it gets all that data, it should reconcile Then check Slack, see other conversations about these URLs. Like, URLs are beautiful. They're these incredible links that take you to data. So let the agent hop and then it'll reason. Then it compiles its understanding server side. And then when it sends the response to the actual working agent session, it's just sending understanding. And then that agent can ask another question if it needs to, to unblock itself, because as it discovers data, just like you, you would maybe ask more questions. Respects, permission and governance. Look, this is simple, like don't, don't make one of these systems that has a context layer that has all of your company data without the idea of identity, because then everyone will see everything. And in some orgs, that's just not okay. Just don't do that.
[0:13:51] So ask better of your vendors. And then finally, it should have an organizational memory with the expertise I talked about, as well as conventions and sort of the tribal rules of your system somewhere in your org, whether you distill it yourself or you get a good capable system like Unblocked, it's able to understand these things and leverage those things to make sure it's understanding and deconflecting. This is essentially how a context engine should work. If we look at your left, that's all the sources. These are likely the source systems. They're kind of categorized for you with some examples, but you've of course got code and pull requests or merge requests. If you're down with GitLab, you got planning tools, docs, conversations, incidents, runtime, signals, production, dbs, all this good stuff. All that data needs to come into that context layer with an engine because the engine can handle real time, it can handle all this stuff and do the thinking.
[0:14:45] It should have these four key characteristics below because just having the data somewhere like an index isn't great. Because agents don't know what's right, what's wrong. It can't make choices for you, it can just use semantics. So if you have these four keys that helps you solve it, we're gonna dig in and then on the right, of course, deliver into the workflow that's being run in. If it's an agent asking a question in a remote cloud environment, like you don't need to structure text with markdown, just send it, send it back to the agent. It just keeps going. It doesn't need that. But if you're doing it in a Slack UI because it's a human asking the question in Slack, because they're like, oh, yo, how does this work? Again, it should structure it so a human can read it. Right. You need these understandings.
[0:15:27] So these are those four key differentiators at the bottom. So I'll just touch on them quickly because you've heard the problem statements around them earlier. But in short, it has to reason. So if it can look at all the data sources at the same time by doing entity mapping, it can reason in aggregate and then know what's actually true or not. Memory. It should obviously have a bit of an understanding of you what's personal memory and organization memory. Because there are things at those two abstraction levels that matter to making sure it doesn't do the same mistake or does something correctly. Resolution. That's how you solve that conflict problem. Like there is always a document and a ticket and a slack conversation that disagree with how we're supposed to do something. So how do you settle that for relevance and what's correct and also what's wrong?
[0:16:08] Right. So correctness matters. And then finally, permissions. Again, make sure it follows OAUTH protocols. Maybe it has sso whatever you need, but to make sure that you get the right data and agents acting on your behalf also get the right data. So if you run one of these, we actually did a bunch of bench tests. But the short story is that's how much time you're going to save. So you get way better wall clock time when this agent doesn't need to research the same area or grep across a code base. And then you also save a drastic amount of tokens. And as mentioned, most of that is in the search token space because it's wasting a bunch of grep tools and like turns over and over again as it tries to search across without just getting the right data served to it. Sorry, get my build in there.
[0:16:56] 48% fewer tokens. Yay. So 50% fewer tokens. Faster triage. This is just what you see with a system like this. Now, I've got open source software for you all. So we're going to rip through this because we got five minutes. I want to make sure I can take questions for the last five minutes, I believe. And then the first is the social comment network. This is a graph that's built deterministically, uses get data only, so pointed out a repo. And then it'll actually structure this social graph for you. And it shows you who works where it understands your experts across the entire system. And in this case you can see Rasheen basically is a machine. He's on our team. He ships a ton of work and and you can see whose code he reviews. So this is a great tool to use to get that expert's data in to settle conflicts.
[0:17:42] The next is repo rules agent. People on your team may have shipped rules MDS or agent MDS at random places in your stack. This scans them all, finds them all, ranks them by the severity. So did you write must do this sometimes do this and deconflicts them? That's super helpful because agents get really confused if they pull one rule and then another rule file and they say different things. So. So it's very simple but you should solve it. We also built a context engine simulator. This simulates the value you would get from building one of these toolchain or buying it from a vendor so that you can understand the type of cost savings and speed savings you get depending on the size of the task. A hint is if you tell it to change a header it is not worth having a context engine because that's simple.
[0:18:23] But if you ask it to do a whole feature, context engines are super helpful. We also did a workshop that we ran previously at AIE World Fair on building the next part of our the start of a context engine which is discovering schema in order to query against. So that runs you through that. Also today at 4pm I'm running a workshop that will actually bring all these tools together so you actually have a system to walk away with as well as measuring your team's adoption. Against that chart I showed earlier, there's tons of places to use a context engine like many, many. So that goes beyond just code generation. But we see go to market teams, very successful customer success teams, account execs, they use these engines to get all the data they need to like talk to customers to support them. Whatever you need, they're very, very helpful.
[0:19:08] This website is actually how you can measure yourself on that eight levels of context maturity. You chat with an LLM, tell it some data and then it actually writes a report that puts you and scores you where you are in the org. So highly encourage you to do it. Super fun. If you choose to give your email, it'll give you little techniques on how to level up to the next stage. So readiness. Getunblock.com what I'm trying to tell you here is that the gap is no longer intelligence. We got that solved. It's actually context. That's how you get these things doing real work in production that is helpful and that you're proud of. Any questions?
[0:19:44] Audience: Hey, quick question on the context engine. So would drag or knowledge graph be an implementation of such a context engine or is that different technology that you would say probably fits better?
[0:19:56] Brandon: Yeah. So RAG is an incredible tool and it is part of a context engine. Like giving. Using RAG as the first part of your retrieval is super important. It's that when you have a context engine that's running, it needs to do more than just rag, because top K on semantics is like going to give you maybe relevant data, but it depends on how the person queried it or the agent did. You want to also allow it to. For example, in that work workshop slide I put up, it shows you how to go beyond rag, which allows you to write structured queries against data sets. In that case, we use MongoDB so you can query for documents because like RAG will return and be like, hey, here's your, you know, whatever, 10 top 10. Then the agent should be able to query data sets from those files to confirm if it needs that information as it proceeds through that reasoning.
[0:20:40] So yes, rag, but also things. If you just do rag, it's not going to give you what you need.
[0:20:48] Audience: How are you evaluating the quality of context that you're providing?
[0:20:55] Brandon: Yep. So obviously there are evals. Evals are tricky, but we have certain types of evals in terms of how data comes out. So that's super important and programmatic. The other key though, for actual value to the user is straight up, thumb up, thumb down feedback or semantic feedback. Like people just write feedback, feedback, saying, this is a shit answer. This is a good answer. That's how we use it to make sure that we reinforce if the data that's being served is correct or not. So teams can basically give that signal as a human. Agents can write it with a feedback tool as well if it's purely over MCP or CLI or API. And then that information comes back and is used to improve the system.
[0:21:33] Audience: Question how much of the context engine you're building is deterministic versus LLMs. And the second question is how are we sure it will be glob LS which cloud is very good at?
[0:21:47] Brandon: I'm sorry, what was the last part?
[0:21:48] Audience: How are we sure it will beat the Glob LS cat and all that Claude does.
[0:21:57] Brandon: I see.
[0:21:57] Audience: Yeah,
[0:21:57] Brandon: it's a good question. Like the short story is, if you tell Claude to continue to look and look and look and use those tools, it will likely eventually find what you're looking for. The issue is that cost from a time and token perspective of just telling it to keep searching until you think it found it all is not a Reliable place to be in an engineering team that's got productivity that needs to ship. So the first part of the question is determinism, non determinism. So there are certainly LLMs involved. The determinism comes from frankly probably the rag part that pretty much deterministic, like not fully, but like we're pretty close. But then you have an agent do a gentic retrieval. So that's very much an LLM. But that LLM is confined with the constraints of its rag retrieval and all the knowledge of the systems it can access and its ability to discover queries in schema less situations in order to query against data sets, to basically quote unblock itself as it moves through that retrieval.
[0:22:55] So you want a mix of the two systems. At the end of the day when you're using any LLM though like you, you lose full determinism of course, but you want to layer determinism on what we found is in the quote search space. So the entire corpus of knowledge in a company with tools like Unblocked or a context engine, you constrain the search space. So it looks a lot more deterministic, but it is, it is definitely not deterministic at the end of the day.
[0:23:20] Audience: So follow up on the data retrieval. When you you have good data and bad data in Slack or in Google Docs or Jira or whatever, how does it effectively mark the bad data as not usable so that it doesn't continuously pollute the queries?
[0:23:41] Brandon: So very good question. I have almost never seen a document get pulled that is always wrong. So like in the like the thing is usually for the task at hand. Like the thing you're doing right now, that document had red herrings or had old data and is outdated. But the entire corpus of the document may actually still have correctness in it. So to the specific question of it's not that we would like look at a file and be like this file is bad, like delete it, like purge this from the system because it probably actually does have some relevance in it. It's rare where you have like a really old org and yes there are truly you will find these burn that wiki down type thing. So in that case, if what we do is with the evals that come back and the thumb up, thumb down data, we get a signal of that hey, this source that keeps getting pulled from top K or whatever looks like a bad source, someone should go investigate.
[0:24:34] A human at the end of the day should choose to fully delete. But what happens is usually it's a chunk out of that that you pull for the task, and that chunk is wrong. And we discover that by settling it against the expert signals and recency or freshness data. And we learned that this Slack thread where the CTO and the founding engineers said we should do B and this doc chunk said do A, now we know it's wrong. We just settle that in the LLM reasoning step and then it sends the correct information. But we don't do anything to the old chunk because it might be right in a different context. I hope that makes sense, because you've all solved problems before. It's like, you know how this works. But yeah,
[0:25:13] Host: I'm sorry, that's all we have time for today. Sorry. Feel free to come and find Brandon throughout ELC Annual Today.