Intro0:00
Okay. Okay, great. Thank you. Then I think we could start. So, my name is Ibragim. I will share with you the lessons that we learned through our evals of coding agents and different models on the real-world software engineering task, using as the example our SWE rebench leaderboard.
Um, I want to share some practical lessons, mostly, and I think that evals matter now even more than before because we have a lot of models, closed-source, open weight models that are doing really great in the software engineering domain.
And of course you can rely on your gut feeling, vibe checks, or maybe one or two of your most favorite questions to choose between the options. But everything is fun until you roll out something into the production and it just breaks down, and clients are unhappy.
So I think that we need to evaluate everything. And before we will deep dive, I want to share a small fact about me. So actually, I have a very non-traditional background for AI research. I'm a dentist by training.
That's me 10 years ago. And that's why on my Google Scholar I have papers from, like, NeurIPS and ICML about RL and test time scaling, along with some psychotherapy or medical insurance problems in dentistry. And in the medicine, the cost of every mistake is really high.
And I think that for the AI domain, we also could say that the cost of each mistake is higher than traditional software engineering. And actually, I should say that I believe that, like, dental pain and infrastructural pain are kind of similar because both of them will not let you sleep at night.
But with dental pain, you could go to the dentist and he will cure you. But with infrastructural pain, you need to do with it something by yourself. So, about our leaderboard. Let's break down word by word what do we do.
The Leaderboard1:52
So SWE rebench, it's a fresh real-world software engineering task on 30 models, evaluated every month. So what does it mean, fresh? Most of the benchmarks, during their release, they release questions and solutions. So implicitly or explicitly, this data can become a part of the pre-training of the next generation of models.
So if you want to build some open, truly decontaminated benchmark, time splits are the only way. That's why every month we collect only fresh problems from the previous month and then assess the model's capabilities. In terms of the real world, in pre-LLM era, there were a lot of benchmarks about, for example, some bracket sequence or ordering correctly adjectives in English.
But now we need some natural problems that people could ask systems to do. And even more, some well-paid problems, like software engineering, for example. Also, software engineering problems and tasks are not about just simple question answering. They are truly subtasked.
So it means that to solve the issue or implement the feature, you need to understand the structure of repository. You need to try to write some tests, implement the solution, run the tests, and reproduce the mistakes or bugs.
And also, it is some multi-turn and naturally long context task. So it's not just concatenating some text or books. No, it's truly long context task. And also, it is about tool use, harnesses. So that's why I believe that software engineering domain is really valuable for evaluations.
We also evaluate something like 30 models with the same harness, simple same harness. And for the reference, we also give some numbers for Claude Code, Codex, and Juni harnesses. And we'll add actually more in the report. A lot of stuff.
And I always read all the comments on local Llama subreddit and X and try to add the most actual and interesting models. Of course, we get requests like, "Okay, can you please evaluate some obliterated role-play 69 billion parameters agent?"
Task Design4:08
But we mostly stick to the most popular ones. About the tasks. For any verifiable software engineering task, actually, we have three main components. It's similar for SWE bench, SWE rebench, other domains, terminal bench. You have some task description.
For us, it's just original issue title and description from the given time frame, from some permissive but popular open-source repository. For the sandbox, you can call it environment, real environment, sandbox, snapshot. But basically, it's just an executable Docker image with the installed dependencies so we could run the test of the project.
And the third one, it's a verifier. Basically, it's just a test from the pull request that solved some issue or implemented some feature. And here, I could say that there is actually two sets of tests failed to pass.
It is the tests that should be failed before solving the issue, for example, and should be passed after. And passed to pass, it's something like regression tests. Also, it's important to say that every task is not just a question, but mostly some Docker image, 1 or 10 gigabytes.
So you need a good infrastructure, actually, to run everything. I think that this is one of the most important slides. I will share the presentation on X or could send you. But the thing is that every month we verify every task.
And we have a really big bank of the problems with the task because I believe that it is not too easy to say what does it look like, a perfect task. But we can say what makes it bad.
Task Filtering5:34
So for problem description, you actually need something balanced. Not too vague, not too over-specified, not too easy, not too hard. Because for too easy problems, all the models will solve it and your effective size of benchmark will be less.
For the verifier and test, here is one of the examples. So usually, software engineers write the test after implementing some solution. So they may be some kind of overfitted. Here, for example, tests require the agent to generate exact substring in the error message.
So even with the correct solution, this passed will this test will not be passed. And you need a stable infrastructure because you need to minimize the infrastructural noise during your runs. For example, your test could connect to some external resources and it will be some dependency.
Or we had a problem in one of pipelines. So several images just get some default time, like 9070s, and some tests were relied on that. So we just get some problems with these kind of evaluations. In my opinion, for our benchmark collection, it is mostly a filtering problem because we have a really good source of task and information, like GitHub.
We use GitHub archive as main source for pull requests and issues for large-scale projects, and just GitHub API for the smaller ones. Here, 100% is a number of pull requests linked with some issues. So for example, if you need a lot more data for pre-training runs, for example, or post-training runs, if you will use just pull requests, it will be 8 times bigger data set.
We use interactive agent to install all the dependencies and projects. So we could use this Docker image. And we also have some several steps of just LLM message filtering with the, like, most common problems. But at the end, we try to choose sample that is 10% bigger than we need in our final runs.
Because after running some models, you could face problems in terms of task quality that could be visible only after agents will try to solve it. And for the final set of tasks, we manually verify. I think it's one full-time day of work to manually verify each task.
Agent Setup8:07
So we could make sure that they are solvable, but quite challenging. Here is the slide about our hardness and agent. I believe that it is better to have some minimalistic agent with strong infrastructure than having over-engineering agent with weak infrastructure.
It's an example of the most popular tools and bash commands in our scaffold with Claude Opus 4.6. So with uppercase, it is agents tools, and lowercase, it's bash commands. And actually, the most popular ones, it's quite simple. And we also run our agent in YOLO setup.
So it means that we don't want our agent to ask some clarification questions or something like that. She just needs to solve the issue. And we start with some simple React plus demonstration when you have in your prompt demonstration how to use your tools.
But nowadays, every model is quite good in tool calling. So we just minimize our context as well.
So about what breaks in practice with the agents. I think that every month we have one or two model runs that just became invalid because some problems. First of all, you need to define your retry policy. You actually want to separate your errors of the model and some infrastructural errors.
Breaks9:10
So you need to define what exit stats. For example, too long context, or too many tool calls, or your provider errors. Will you rerun these runs or not? For the caching, it actually really improves your cost efficiency. I hope you know about that.
Here is an example with our simple agent. It's very similar to software engineering agent or mini SWE agent, but it's rebench creators. So with the caching included, your cost will be, like, 4 times less. But for Claude Code, it actually spends a lot of tokens.
So even with turnout caching and, like, haiku sub-agents for some subtask, will actually cost quite a lot. And we, after one of the runs, we saw that during the updates of the models, even within a same family, for example, like GPT-5.2, GPT-5.4, or the longer or more older versions, there could be some default parameters drifting for the reasoning level, for the caching level, or other stuff that you also need to make sure that is relevant and work in your infrastructure.
That's why I believe that, first of all, you need to try to run some external benchmark, like SWE bench and any other terminal bench, on your infrastructure to make sure that actually your numbers and reported numbers match. And only then start to do your experiments.
Cheating10:54
Here's the most favorite slides. So we found at least two ways how models cheat. First one is a well-known issue. It is all about Claude Code here, but it will be also about Codex and other models as well.
So the thing is that during our runs, before, when we build our Docker image, we do a checkout to the base commit before the solution was implemented. So agent will start doing something there. And if you will run command git log with all flag, then you will get an access to the overall git history.
So that's how, for example, Claude Code just look up to the future, to the solution patch, and copy-pasted it. And so successfully solved this issue. After that, we remove all the future git history because previous git history might be helpful to get some context working with the issue.
But we need to remove the future one. After that, Claude Code came up with the web fetch tool. It has a web fetch tool. So it just went to GitHub repository, original one, to see the conversation in the original issue, pull request, and solved it.
Okay. After that, we restricted web fetch tool. So Claude Code, okay, I have curl. Let's just use bash command with curl. We'll go to the original issue. Here, you can see that actually Claude Code also formatted the conversation to be more convenient.
And then just check the original test in the main and solve the issue. So when models get better, actually, I believe that they might, like, tend to cheat even more and do some reward hacking. So we solve only with some kind of post-processing and trajectory analysis and try to come up with new solutions as well.
Metrics12:41
I think that one of the main reasons why we made this benchmark and maintain it, we want to share some practical value with the real AI engineers and AI creators. So that's why we report not only some min resolved metric, but also tokens per problem, price per problem.
And we do five runs for each task to report some confidence intervals and also pass at five. Something like, if a model solved each task at least, we think that it's successful to give some kind of potential of the model.
Also, you can check something like post all five if you need reliability. So you will mark the task as successful only if agent solved it in all five runs. And after some analytics in terms of economics, tokens, and price per problem, we also want to do something on trajectory level because I think that it is a source of a lot of insights about how some models work in our or external harnesses.
And the next one is about if you know how to make a well evaluation or benchmark, you could use the same pipeline to collect some validation set, for example, and to think about training. And I don't say about, like, SFT or RL.
Training13:47
At first, you could just try with choosing between models, harnesses, and parameters on your validation set. And then maybe do some kind of auto research or just update your prompts and tools. Then do some simple rejection sampling, fine-tuning, or distillating from the bigger models.
Open Source14:21
And then move to more complex strategies like GRPO. So we use the same pipeline that we use for SWE rebench leaderboard to make two big open-source releases. First one is SWE rebench. We released it last year. It is something like 30,000 of RL environments, like real-world software engineering tasks with Docker images.
And it was used by some frontier labs to train better models. And now we also released SWE rebench v2. It is something about
software engineering tasks on 20 programming languages. Also, a lot of Docker images, a lot of tasks that could be used for training. I will work on adoption for it. We also have an adapter for Harbor, our terminal bench, which is quite convenient format to run any evaluations or the training.
Future15:06
And I think that for the future, we need to think about more long-horizon tasks, more about something complex, and something about code quality as well. Because if you will check any patch from SWE bench submission or SWE rebench submission, you will see some problems that actually the real developers will not do.
And during the review, you will say that, okay, it's not how things work actually. For example, Gemini, GLM, GPD models, they tend to produce some reproduced tests or files and then just don't remove it. We also can talk about some code quality during the pull request.
So yeah, I think that we need to come up with some long-horizon task, more trajectory analysis, and then move on to training better models. So yeah, that's it. Please check the leaderboard, SWE rebench leaderboard. Update every month. I will be here.
Feel free to reach out. This is my ex-handle. And I will release, like, new open-source project. And also I will share these slides, I think, tomorrow. Yeah. Thank you for your attention.





