Theo Browne: Give Coding Agents Ambitious Goals They Can Measure

Browne shares how ambitious targets, realistic benchmarks and exploratory pull requests helped improve T3 Code.

TBTheo BrowneIntervenant · T3 Code
Chaîne
Theo - t3․gg
Publié
5 déc. 2026
Vidéo
23:39
Lecture
7 min
Diapositives
4
Original
anglais
Ouvrir sur YouTube
En faisant défiler, la vidéo se réduit en bas à droite et continue. Les sous-titres suivent votre langue de lecture.
Langue de lectureDisponible en 2 langues
Cet article n’est pas encore disponible en français ; il s’affiche dans l’original en anglais.
RÉSUMÉ

En 30 secondes

A bold coding-agent prompt works best when the agent can measure the result and keep testing its own changes, says T3 Code creator Theo Browne. He describes removing flaky tests, cutting total thread-load data by 85% across seven cases, and exploring a much faster mobile reopen. The latter produced a 36,000-line pull request he probably would not merge, but it gave another agent a reference for a roughly 300-line improvement. His examples are results from his own projects, not guarantees for other codebases.

  1. 1An agent proposed a large test purge after failed releasesBrowne asked for low-signal tests to be identified and removed; he says the resulting pull request removed more than half of the tests and nearly 260,000 lines.
  2. 2Agents need the tools to check ambitious changesBrowne suggests giving agents the ability to run the app and test realistic data, and turning actual agent failures into repeatable evaluations.
  3. 3Seven real threads supplied a target for payload cutsHe asked for an 80% reduction; he reports an 85% aggregate reduction across seven test cases, from 8.5 MB to 1.2 MB.
  4. 4A different model measured the slow mobile reopenBrowne says one model had tested only cold launches, while another targeted the reported reopen problem and found much larger simulator improvements.
  5. 5A 36,000-line experiment led to a much smaller fixInstead of merging the exploratory pull request, he asked another agent to extract the biggest wins. He reports a warm-resume improvement with roughly 300 changed lines.

À retenir

  1. Set an ambitious outcome and give the agent a way to measure whether it got there.
  2. Turn recurring agent failures from real work into repeatable evaluations.
  3. Measure the actual user complaint: a cold-launch benchmark may miss a slow return from sleep.
  4. Use an oversized exploratory change to identify the wins, then extract smaller reviewable changes.
  5. Review any proposed test deletion for lost coverage; lower flakiness alone does not establish correctness.
TEXTE INTÉGRAL

Lire le texte remanié, chapitre par chapitre

Transcription seule
01

Ask for outcomes that initially feel implausible

Browne takes inspiration from a prompt asking an agent to make dramatic improvements. His aim is to explore what agents can accomplish when given concrete, ambitious targets.

I want you to ask coding agents to do things that initially seem impossible. Lauren suggested prompts such as making something 100 times faster, deleting half a codebase without breaking it, or turning past bugs into property tests. Those targets can sound absurd, but I have used similar requests to find practical improvements in projects I work on.

To prepare for this video, I asked a model called Neon to examine my agent history and jokingly rate how extreme my prompts were. The score is a joke, not a medical assessment. The more useful question is what happens when a bold target meets a project that lets an agent test its work.

02

Purge low-signal tests and equip agents to verify

He describes removing flaky tests from T3 Code and explains why agents need access to the running application and realistic evaluations.

A comparatively simple example was a test purge in T3 Code. Releases had failed because of flaky tests, and test times had grown. I asked the agent to identify tests that provided little useful signal, including slow timers, checks of basic browser or JavaScript behavior, and assertions already covered by types.

I asked for multiple agents to examine candidate deletions and not return until they had a pull request with substantially fewer tests, faster execution and fewer useless failures. I sent the prompt at 14:56 and had a pull request at 16:42, a little under two hours later.

I say the merged change removed more than half the unit tests and nearly 260,000 lines, and that the contribution experience improved. My reasoning was that tests affect how we validate code rather than running in the product; I could revert and learn if the result caused problems. Deleting tests can also remove protection against regressions, so the value of a particular purge depends on what coverage remains.

Before giving an agent a bigger task, make sure it can verify its own work. A developer who has the source but cannot run the app, click through it or test against representative data would struggle; many agents are left in exactly that position. Ask the agent what commands, tools or access it needs for end-to-end testing and debugging.

I also use my real agent history to build evaluations. When an agent behaves badly, I collect examples and ask another agent to search earlier threads for similar failures. Those examples become simulated threads that can be rerun when I change the system, letting me check whether the problem is actually going away.

With this infrastructure in place, agents can work longer, verify more of their own output and ask for help less often. That makes more ambitious work possible, though the ability to check a result matters as much as the confidence of the initial prompt.

03

Reduce thread-load data using real benchmarks

Browne asked an agent for an 80% cut in data loaded by the app. He reports an 85% aggregate reduction across seven representative threads.

One request was to cut the data needed to open T3 Code and its threads by around 80%. I use the app remotely on phones and slow connections, so loading tens of megabytes merely to see the end of a conversation was frustrating. I already had benchmarks using real-world data, but the payload was still larger than I wanted.

I asked the agent to iterate toward the target, aim for no more than about 300 KB to see the app state, and consult a group of models both to propose cuts and review them. It worked from 6:53 to 8:22. As part of my development loop, an agent can copy a contributor’s actual database into a test database and measure real usage patterns.

Thread payload before and after
DIAPOSITIVE 1 / 4Thread payload before and afterThe pull request lists seven thread-opening measurements and an 85% reduction across the measured cases.

Across seven real threads in the pull request, I report an aggregate reduction from 8.5 MB to 1.2 MB, or 85%. One thread fell from 1.4 MB to 200 KB; another with 71 child threads fell from 3 MB to 293 KB. A new thread fell from 520 KB to 393 KB, so the 300 KB target was not achieved in every case.

I think different models can help find different opportunities. In my experience, when one misses an optimization, another may see it. These comparisons reflect the projects and model versions I tried, not a controlled ranking of models on every task.

04

Push a Rust TypeScript checker on size and speed

An extended agent run targeted smaller binaries and better performance. Browne says the size goal improved substantially, with different results for compact and noncompact builds.

For my Rust-based TypeScript checker, I wanted to shrink the binary and WebAssembly bundle while improving performance relative to other implementations. Earlier attempts with other models had not made the progress I wanted; I say Neon made substantially more progress on this task.

I used a persistent goal to ask it to iterate until the binary was half the size of the Go version, the bundle was half its previous size, and performance beat the other checkers I named. It kept working until I stopped it to save tokens for other work; I did not let it run to an unqualified completion of every target.

TypeScript checker size and speed goals
DIAPOSITIVE 2 / 4TypeScript checker size and speed goalsThe agent’s progress display compares binary size, WebAssembly size and performance, with separate full and compact builds.

The visualization it produced showed a build 6.1 times smaller than a public TSC-RS version and 31.5% of the Go version’s size. It also reduced the WebAssembly bundle. I say the noncompact build won in each performance measurement shown, whereas the compact build was not yet there.

05

Turn a large mobile performance experiment into a small fix

A new benchmark exposed the relevant reopen problem. An exploratory change was too large to merge comfortably, but another agent extracted a smaller improvement.

Another problem was how slowly T3 Code reopened on my phone after it had been in the background. Opus improved the measurement by about 8%, and Fable reached roughly 30% after further prompting, short of my later 50% target. I began to think the architecture might prevent a larger improvement.

I then asked Neon to inspect the previous work and either use it or start again. After about 12 hours, it reported much larger improvements, though the percentage varied by case. In its iPhone 17 Pro simulator, a cold reopen was 71% faster; it also showed an 83% warm-resume improvement, from 4.5 seconds to roughly 700 milliseconds.

Mobile reopen benchmark results
DIAPOSITIVE 3 / 4Mobile reopen benchmark resultsThe chart compares cold and warm reopen measurements across devices during the exploratory optimization.

When I asked Fable why it had missed the improvement, it said it had measured only a cold launch, not the reopen-after-sleep case I had complained about. This is why I often start a bold exploration by creating a benchmark for the actual behavior I want to change: it gives the agent a goal it can repeatedly check.

There was a catch: the exploratory pull request added around 36,000 lines, and I probably would not merge it as it stood. But it gave me a working reference. I asked another agent to take the biggest improvements and find a way to deliver them as smaller, simpler pull requests.

A smaller warm-resume pull request
DIAPOSITIVE 4 / 4A smaller warm-resume pull requestAn Android emulator benchmark compares the focused pull request with the original behavior and describes the changes.

About an hour later, the agent had a pull request focused on the warm-wake problem. Using an Android simulator, it reported a 68% improvement, from more than four seconds to under 1.5 seconds, with roughly 300 lines changed before a few more tests were added. I say that smaller change was merged, while other agents continued extracting possible wins.

An exploratory result can be useful even if the resulting code is too large to ship. Showing an agent a concrete working approach can give later attempts a reference point, provided there is a way to assess the result and turn it into changes the team can review.

06

Encourage exploration while retaining judgment

Browne describes prompts that authorize bolder architectural exploration. He says he also asks agents to challenge his assumptions and narrows scope when trade-offs warrant it.

I suspect agents do not always know how far they can push an implementation, partly because much of their training reflects workflows in which people had to maintain every large rewrite manually. I have considered alternatives to using Git for worktree creation, particularly for performance on Macs.

In that prompt I used phrases like “be bold” and “explore lots of other options” to signal that the work was exploratory and that the agent could consider substantial changes. I was not asking it to assume every such rewrite should ship; I wanted it to investigate possibilities it might otherwise dismiss.

My model-generated review found other examples of oversized ambitions: a TypeScript replacement, a different approach to worktree creation, a local network music player and a game project. It also picked up my habit of setting numerical goals such as large cuts in payload size, test volume and costs.

The review made fun of a design task for which I asked a council of models to keep iterating until they rated the work highly on clarity, taste and other criteria. It also noticed how often I worked in the middle of the night. These are anecdotes about my working style rather than evidence that a particular score measures anything clinical.

The model’s more useful observation was that I often ask it to push back before I start: “How insane is this?” or “What are the trade-offs?” When it shows me real costs, I sometimes reduce the scope. I also keep asking for ambitious results because enough of these experiments have produced useful changes.

I hope the examples give you ideas for setting more ambitious goals with agents. Measure what matters, let the system explore, and decide what is suitable to carry into the actual codebase. I am interested in whether other developers have seen similar results in their own work.

Sur la même chaîne

2 diapositives16:33EN
Theo - t3․gg· 1 déc. 2026Google Clarifies Antigravity Access After Account-Lockout ConcernsTheo Browne · Ping LabsTheo Browne explains the distinction between official agent integrations and workarounds, a viral account lockout, and Google’s revised terms.Agents de codeWorkflows de développement et testsAI interface design+2
3 diapositives40:19EN
Theo - t3․gg· 22 nov. 2026Theo Browne: Why Open AI Models May Fall Further BehindTheo Browne · T3He sees three pressures on downloadable models: unequal computing access, harder distillation and AI-assisted research.Open-weight modelsAgents de codeBenchmarks+2
5 diapositives32:29EN
Theo - t3․gg· 20 nov. 2026Theo: Gemini 4 Neon changed my mind about Google’s coding modelsTheoIn Theo’s projects, Gemini 4 Neon made a stubborn tool smaller and faster, diagnosed failures, and wrote plans he could use.GeminiAgents de codeWorkflows de développement et tests+2
28:16EN
Theo - t3․gg· 19 nov. 2026Theo: What we lose and gain when AI writes the codeTheo Browne · Ping LabsTheo Browne mourns the hands-on craft while arguing that AI rewards curiosity and lets more people build.Agents de codeDeveloper productivitySoftware engineering
2 diapositives45:45EN
Theo - t3․gg· 18 nov. 2026Theo Browne: Astra 6.2 excels at review but frustrates in real workTheo Browne · Ping LabsAstra 6.2 scored highly in Theo Browne's tests, but opaque answers, stalled tasks and resource use kept it from becoming his default coding agent.Agents de codeCode review & verificationWorkflows de développement et tests+2
4 diapositives27:57EN
Theo - t3․gg· 16 nov. 2026Theo Browne: Use Different AI Models to Review the Same ChangeTheo Browne · Ping LabsBrowne’s council workflow asks models from different families to review and test code, but repeated rounds can burn tokens and expand scope.Code review & verificationAgents de codeAgent skills+2