Beating OpenAI and Anthropic by Looking At Data: the new #1 on SWE-Bench w/ W&B CTO Shawn Lewis
Latent Space
Summary
Weights & Biases CTO Shawn Lewis joins Alessio and Swyx on the Latent Space Podcast to explain how his coding agent reached #1 on SWE-bench Verified with a 64.6% score just days before his paternity leave. Built using his TypeScript framework PhaseShift and backed by Weave, the agent relies entirely on OpenAI's o1 model for both step-by-step agent control and code generation. It solves 57% of problems on a single rollout and reaches 64.6% by running parallel rollouts combined with a cross-check selection step.
Lewis demonstrates his custom Eval Studio interface, which plots cumulative solved issues against reasoning tokens and uses public leaderboard solve counts to flag regressions on easy problems. He emphasizes that automated trace analysis could not replace manually inspecting 20 failed traces per run and diffing prompt functions. Looking ahead, Lewis plans to open-source PhaseShift and argues that human interfaces like Devin's UI represent the true moat for coding agents.
How time-sensitive the topic is: Breaking
By the numbers
64.6%: Top SWE-bench Verified score achieved by Shawn Lewis's coding agent shortly before his paternity leave. (Mentioned at 1:02)
1 to 2 hours: Time required for Shawn Lewis to run a SWE-bench evaluation on a subset of 100 problems. (Mentioned at 10:58)
100 problems: Size of the SWE-bench subset Shawn Lewis typically evaluates during a one-to-two-hour run. (Mentioned at 11:00)
49%: Approximate SWE-bench Verified score published by OpenAI when releasing the o1 model, as recalled by Shawn Lewis. (Mentioned at 14:56)
57%: Approximate percentage of SWE-bench Verified problems solved by Shawn Lewis's o1 agent using a single rollout. (Mentioned at 15:04)
1,000 evals: Approximate number of evaluation runs logged in Weave by Shawn Lewis while developing his SWE-bench agent. (Mentioned at 20:04)
20 failures: Number of failed agent traces Shawn Lewis manually inspects and takes notes on to identify the biggest issue after an eval run. (Mentioned at 22:58)
5 times: Number of parallel o1 runs per problem cited by Swyx when describing rival reactions to the Weights & Biases submission. (Mentioned at 31:05)
6%: Gain on the SWE-bench leaderboard achieved by applying multi-trajectory selection on top of a single rollout. (Mentioned at 31:49)
Questions this video answers
How did Shawn Lewis achieve 64.6% and reach #1 on SWE-bench Verified?
Shawn Lewis built a coding agent powered purely by OpenAI's o1 model for both step-by-step agent decisions and code edits, reaching about 57% on a single rollout. He then ran parallel rollouts and used a cross-check step to combine and select the best trajectory, pushing the final score to 64.6%.
Shawn Lewis, 13:08 to 16:55
From this keypoint: Driving the entire coding agent with OpenAI o1
How do you debug regressions when iterating on an AI coding agent?
Lewis compares multiple evaluation runs side by side and sorts by problem outcomes to find tasks where previous runs succeeded but the new run failed. He manually reviews around 20 failed traces, writes notes on what went wrong, and diffs the exact prompt formatting functions in Weave to see which wording change caused the regression.
Shawn Lewis, 22:22 to 27:29
From this keypoint: Diffing prompt code in Weave to isolate regressions
Can you automate the inspection of LLM agent traces during development?
According to Shawn Lewis, fully automating trace inspection to avoid manual review is still impossible today. Despite building custom evaluation charts and trying to automate the process, he found that making real progress required manually stepping through agent observations and tool calls.
Shawn Lewis, 16:55 to 22:22
From this keypoint: Manual trace review and leaderboard difficulty scores
How does OpenAI's o1 behave differently from GPT-4 inside an agent loop?
Lewis notes that o1 follows instructions with near-malicious compliance, executing literal prompt directions even when a better path exists, whereas GPT-4 tends to ignore minor prompt constraints and plod ahead. He also found that o1 is less naturally suited to tracking long sequences of agent steps than GPT-4.
Shawn Lewis, 13:08 to 16:55
From this keypoint: Driving the entire coding agent with OpenAI o1
Why did Shawn Lewis calculate a difficulty score from public SWE-bench leaderboard submissions?
By counting how many times each SWE-bench problem was solved across all public leaderboard submissions, Lewis created a baseline difficulty metric for every issue. This allowed him to immediately flag when a prompt tweak broke an easy problem that almost every other submission had solved, while separating out problems that no agent has ever solved.
Shawn Lewis, 16:55 to 22:22
From this keypoint: Manual trace review and leaderboard difficulty scores
Is running multiple parallel rollouts on SWE-bench considered fair by other agent builders?
While some competitors criticized the submission for running o1 five times and picking the best output, Lewis points out that top entries like CodeStory Aide and Google also rely on multi-trajectory selection. Because SWE-bench problems get exponentially harder above 60%, gaining an extra 6% through trajectory cross-checking is a decisive algorithmic step.
Shawn Lewis, 27:29 to 32:28
From this keypoint: Defending parallel rollouts and cross-check selection
Why did Shawn Lewis use Cursor instead of his own PhaseShift agent to build Eval Studio?
Lewis built the entire Eval Studio UI with Cursor because frontend design requires rapid, interactive visual feedback to move buttons and adjust charts. In contrast, his PhaseShift framework is built for long-running asynchronous tasks where the user walks away, and it currently only runs against SWE-bench Verified rather than his local file system.
Shawn Lewis, 22:22 to 27:29
From this keypoint: Diffing prompt code in Weave to isolate regressions
Where can developers find the technical write-up and trajectories for the Weights & Biases SWE-bench submission?
SWE-bench requires submitters to upload all trajectories, though the official S3 bucket requires AWS credentials to access. Developers can read Shawn Lewis's write-up on how the cross-check step works directly inside his public GitHub fork of the SWE-bench Verified repository.
Shawn Lewis, 27:29 to 32:28
From this keypoint: Defending parallel rollouts and cross-check selection
What does Shawn Lewis see as the main competitive moat for AI coding products like Devin?
Lewis believes autonomous AI programmers will work reliably within one to two years as new foundation models arrive every few months. Consequently, he argues the real competitive moat lies in the human and business interfaces built around the models, where Devin currently holds a major lead.
Shawn Lewis, 32:28 to 34:28
From this keypoint: Human interfaces give Devin a moat as models improve
Credible AI™ signals
Confidence: Direct Practitioner Walkthrough. Weights & Biases CTO Shawn Lewis presents first-hand benchmark data, live evaluation dashboards, and submitted trajectory histories for a public SWE-bench Verified entry. Claims are concrete and grounded in demonstrated tooling, though performance metrics represent self-reported and benchmark-specific results.
Bias: Product-Aligned Engineering. Shawn Lewis openly connects his SWE-bench work to dogfooding Weights & Biases' Weave platform and exploring commercial application tooling. While technical explanations are candid about limitations—such as manual trace inspection and using Cursor for UI work—the discussion naturally highlights his company's ecosystem.
Originality (88%): Novel Benchmark Methodology. Rather than offering high-level commentary on coding agents, the interview walks through custom evaluation visualization tools, leaderboard difficulty scoring, prompt diffing, and an all-o1 agent architecture that reached the top of SWE-bench Verified.
Depth (82%): Granular Agent Debugging. The conversation examines the mechanics of agent evaluation, including reasoning token distribution curves, regression sorting across runs, code-collapsing editor observations, and multi-trajectory cross-check selection.
Key points (9)
Short (10 min): key points 1, 5 and 8
Medium (26 min): key points 1, 4, 5, 6, 7 and 8
Relaxed (34 min): all 9 key points
1. Shawn Lewis hits 64.6% before paternity leave
Timestamp: 00:00:00 to 00:01:40 (2 min)
Speaker: Shawn Lewis
Shawn Lewis spent several months building a coding agent and achieved a 64.6% score on SWE-bench Verified just days before his son was born. He notes the experimental nature of the work meant he did not have the winning result until shortly before publication. The tight personal deadline forced rapid final iterations to publish the top-ranked agent.
Impact: Medium. Why it matters: Demonstrates how a single experienced engineer using modern reasoning models and evaluation loops can outperform large lab baselines on a major coding benchmark.
“it's not like I had that 64.6% result even like a few days before I published it so my son was born I think the day after two days after we we published that result”
In the video: Shawn Lewis, at 1:01
For: YouTube: Latent Space
Neutral: YouTube: Latent Space
2. Dogfooding Weave and testing AI app markets
Timestamp: 00:01:40 to 00:04:58 (3 min)
Speaker: Shawn Lewis
Lewis explains that building great developer tools requires being an active user of them, tracing how his early gaze-tracking spreadsheets inspired Weights & Biases. As foundational model training concentrates in major labs and API usage grows, he built the coding agent to dogfood Weave and explore whether Weights & Biases should eventually sell AI programming applications.
Impact: High. Why it matters: Signals a potential strategic expansion for MLOps vendors from passive observability into full-stack AI application development as model training consolidates.
“the other reason to do this for us is you know should we dabble in that world of applications and um you know the most fascinating one and interesting one to me is AI programming”
In the video: Shawn Lewis, at 4:42
Neutral: YouTube: Latent Space
3. Scaling coding agent evaluation on SWE-bench
Timestamp: 00:04:58 to 00:08:23 (3 min)
Speaker: Shawn Lewis
Evaluating coding agents requires testing across many problems in parallel because LLM workflows are stochastic and easily overfit to a creator's local codebase. Lewis focused on SWE-bench over several months as the strongest public benchmark for general AI programming, building custom supporting tools around the existing Weave workspace.
Impact: Medium. Why it matters: Highlights why local anecdotal testing fails for coding agents: stochastic behavior demands parallel evaluation across diverse repositories to verify generalization.
“to really know if something's working you have to evaluate it at scale these are like stochastic processes right so if you make it work on your own code base for a little while like it might be good at doing some neuros slice problems”
In the video: Shawn Lewis, at 7:23
For: YouTube: Latent Space
Neutral: YouTube: Latent Space
4. Visualizing live runs and token curves in Eval Studio
Timestamp: 00:08:23 to 00:13:08 (5 min)
Speaker: Shawn Lewis
To replace manual spreadsheet copying during one-to-two-hour evaluation runs on 100-problem subsets, Lewis built Eval Studio on top of Weave and his PhaseShift TypeScript framework. By plotting cumulative resolved instances against reasoning tokens, he uncovered sharp kinks showing which GitHub issues required far more reasoning tokens than easier problems.
Impact: High. Why it matters: Gives AI engineers a concrete diagnostic metric: plotting cumulative task resolution against reasoning token spend exposes where reasoning models stall or overthink.
“if you plot reasoning tokens on the x-axis and then like a cumulative sum of what instances were resolved over time you can sort of see different shapes in these charts”
In the video: Shawn Lewis, at 12:10
Neutral: YouTube: Latent Space
5. Driving the entire coding agent with OpenAI o1
Timestamp: 00:13:08 to 00:16:55 (4 min)
Speaker: Shawn Lewis
Lewis built his agent purely on OpenAI's o1 model for both step-by-step agent decisions and code writing, reaching roughly 57% on a single rollout and 64% with parallel rollouts compared to OpenAI's published 49% result. He observes that o1 exhibits strict, almost malicious compliance to prompt instructions, and struggles more with multi-step agent sequencing than GPT-4.
Impact: High. Why it matters: Challenges the conventional split of pairing a reasoning architect model with Claude Sonnet, proving an all-o1 pipeline can top SWE-bench if prompted carefully.
“this solves uh 64% of problems it's Al like something like 57% of problems with a single roll out and then using parallel roll outs and selecting the best one with other techniques we get something like 64%”
In the video: Shawn Lewis, at 14:59
Neutral: YouTube: Latent Space
6. Manual trace review and leaderboard difficulty scores
Timestamp: 00:16:55 to 00:22:22 (5 min)
Speaker: Shawn Lewis
To accelerate debugging across roughly 1,000 evaluation runs, Lewis aggregated public SWE-bench leaderboard data to assign a difficulty count to every problem and sorted runs to spot regressions on easy tasks. He then manually inspected the linear step traces and collapsible-code editor observations in Eval Studio, concluding that automating trace review remains impossible today.
Impact: High. Why it matters: Provides a practical blueprint for agent debugging: rank benchmark tasks by public solve frequency to isolate regressions on easy problems, then inspect traces manually.
“I've tried a lot to automate to remove the need for me to actually like manually inspect all of these traces and I'm here to tell you like today that is still impossible you basically always have to look really closely at data”
In the video: Shawn Lewis, at 22:05
Neutral: YouTube: Latent Space
7. Diffing prompt code in Weave to isolate regressions
Timestamp: 00:22:22 to 00:27:29 (5 min)
Speaker: Shawn Lewis
When a run regresses, Lewis reviews about 20 failed traces, takes notes to identify the most common failure mode, and uses Weave and PhaseShift to diff exact code and prompt formatting functions between runs. He also reveals that while PhaseShift handles long-running SWE-bench tasks, he built the entire Eval Studio UI interactively using Cursor.
Impact: High. Why it matters: Illustrates the division between interactive coding assistants like Cursor for UI work and asynchronous frameworks like PhaseShift for autonomous backend bug fixing.
“I'll flip through these traces and kind of like um for each one I'll write down notes about like what I thought um went wrong there and I'll do that for like say 20 or so and then I kind of go okay what's the biggest problem”
In the video: Shawn Lewis, at 22:50
Neutral: YouTube: Latent Space
8. Defending parallel rollouts and cross-check selection
Timestamp: 00:27:29 to 00:32:28 (5 min)
Speaker: Shawn Lewis
Lewis praises SWE-bench for requiring full trajectory submissions and points developers to his GitHub fork for details on his cross-check algorithm, which evaluates and combines parallel rollouts. When Swyx notes rival builders dismissed the result as running o1 five times, Lewis responds that top entries from CodeStory Aide and Google also rely on multi-trajectory selection to gain a critical 6% on exponentially harder problems.
Impact: High. Why it matters: Clarifies the current meta-game of coding benchmarks: test-time compute scaling via parallel rollouts and trajectory selection is now standard among top leaderboard contenders.
“the problems remember get exponentially harder as you go up on the leaderboard so if you can solve 6% more problems on sbench you're you're doing much better than you were at like you know 60%”
In the video: Shawn Lewis, at 31:52
For: YouTube: Latent Space
Neutral: YouTube: Latent Space
9. Human interfaces give Devin a moat as models improve
Timestamp: 00:32:28 to 00:34:28 (2 min)
Speaker: Shawn Lewis
Looking ahead, Lewis predicts autonomous AI programmers will work reliably within one to two years. He argues that the durable moat for coding agents lies in human and business interfaces, praising Devin's UI lead and suggesting that plugging upcoming models into Devin's interface over the next six months will resolve current performance complaints.
Impact: Medium. Why it matters: Shifts strategic focus for AI agent startups away from raw model scaffolding toward human-in-the-loop UI design as underlying foundation models commoditize.
“if there's any mode here it's going to be around like the interfaces into humans and their businesses um and Devon like has a major major lead on on making that work really well”
In the video: Shawn Lewis, at 33:22
For: YouTube: Latent Space
Conflicts of interest (2)
Weights & Biases Commercial Tooling Stake
Commercial conflict, Medium severity
Shawn Lewis is Co-founder and CTO of Weights & Biases, which sells experiment tracking and the Weave LLM evaluation platform demonstrated throughout the episode.
Sources: Shawn Lewis, Weights & Biases, Weave
Significance: His technical walkthrough of SWE-bench evaluation workflows doubles as a live product demonstration for Weave and potential future Weights & Biases coding application products.
Personal Collaboration Between Host and Guest
Personal conflict, Low severity
Co-host Swyx discloses at the start of the episode that he and Shawn Lewis are very good friends who have collaborated on multiple projects over time.
Sources: Shawn Lewis
Significance: The preexisting friendship contributes to a warm, receptive interview dynamic around Shawn Lewis's benchmark claims and rival criticisms.
Key sources
Shawn Lewis: CTO and Co-founder at Weights & Biases
YouTube: Latent Space
Who's in this
Weights & Biases
Weave
SWE-bench
OpenAI
o1
Anthropic
PhaseShift
Eval Studio
Cursor
Devin
Google
Also mentioned
Latent Space Podcast (First mentioned at 0:00)
GPT-4 (First mentioned at 14:13)
TypeScript (First mentioned at 5:16)
GitHub (First mentioned at 9:59)
Sonnet (First mentioned at 15:27)
Google Sheets (First mentioned at 17:04)
S3 (First mentioned at 29:20)
CodeStory Aide (First mentioned at 31:24)
Decibel Partners (First mentioned at 0:04)
Smol AI (First mentioned at 0:07)
Lukas (First mentioned at 2:00)
Chris (First mentioned at 2:04)
Paul Gauthier (First mentioned at 15:54)
Aider (First mentioned at 15:56)
Python (First mentioned at 21:14)
VS Code (First mentioned at 21:24)
Twitter (First mentioned at 27:21)
Cosine (First mentioned at 28:26)
AWS (First mentioned at 29:47)
Blackbox (First mentioned at 31:15)
Isoform (First mentioned at 32:12)
R1 (First mentioned at 34:15)
This analysis was generated by skim (skim.plus), an AI-powered content analysis platform by Credible AI. Scores and classifications represent the platform's AI-generated assessment and should be considered alongside other sources.