← back

No Vibes Allowed: Solving Hard Problems in Complex Codebases – Dex Horthy, HumanLayer

Original: No Vibes Allowed: Solving Hard Problems in Complex Codebases – Dex Horthy, HumanLayer

544.7K views · Dec 02, 2025 · 20:31 min · Watch on YouTube ↗
Takeaway

Advanced context engineering — small, intentional, reviewed context windows — beats raw model power for complex brownfield coding work.

Summary

  • Dex argues coding agents fail in brownfield codebases because context windows become 'dumb zones' past ~40% capacity; only the conversation text influences next-token quality.
  • Proposes 'frequent intentional compaction' workflow: research, plan, implement — each phase ends by compressing context into a markdown artifact reviewed by humans before the next agent starts.
  • Sub-agents should be used for context isolation (e.g., codebase search) not anthropomorphic roles like 'frontend engineer' or 'QA'.
  • Demonstrates the system on a 300k-line Rust codebase (BoundaryML) — open-sourced research/plan/implement prompts went viral on HackerNews and gave HumanLayer 2–3x throughput.
context-engineeringcoding-agentsclaude-code
Original description
It seems pretty well-accepted that AI coding tools struggle with real production codebases. At AI Engineer 2025 in June, The Stanford study on AI's impact on developer productivity found:

A lot of the ""extra code"" shipped by AI tools ends up just reworking the slop that was shipped last week.

Coding agents are great for new projects or small changes, but in large established codebases, they can often make developers less productive.

The common response is somewhere between the pessimist ""this will never work"" and the more measured ""maybe someday when there are smarter models.""

After several months of tinkering, we've found that you can get really far with today's models if you embrace core context engineering principles.

This isn't another ""10x your productivity"" pitch. I tend to be pretty measured when it comes to interfacing with the ai hype machine. But we've stumbled into workflows that leave me with considerable optimism for what's possible. We've gotten claude code to handle 300k LOC Rust codebases, ship a week's worth of work in a day, and maintain code quality that passes expert review. We use a family of techniques I call ""frequent intentional compaction"" - deliberately structuring how you feed context to the AI throughout the development process.
 
In this talk, I'll share what we've learned since first sharing these techniques back in August, and some educated predictions on what's coming in the next 6-12 months for software engineers.

Speaker: twitter.com/dexhorthy

Timestamps:
00:00 intro: complex code
01:40 context engineering
02:53 advanced context
04:38 context obsession
05:55 dumb zone concept
07:26 context management
09:37 complex problem solved
10:45 semantic diffusion
12:14 onboarding agents ‍
13:57 internal docs lies
15:03 mental alignment key
16:12 code snippet plans
17:38 don't outsource think
18:45 rpi: smart zone
19:46 cultural change hard ‍‍

Hey - I'm Dex, and I'm hacking on getting AI coding agents to solve hard problems in complex codebases at HumanLayer. Before this I was working on APIs for agent orchestration and Human-in-the-Loop, and wrote the April 2025 essay "12 factor agents" that first coined the term Context Engineering. I've been coding since high school, when I built tools for NASA researchers to navigate the south pole of the moon. Enjoyer of tacos and burpees (not necessarily in that order).