WhoBuilt

No Vibes Allowed: Solving Hard Problems in Complex Codebases

Dec 2, 2025· 21 min· 670K views·Watch on YouTube

Speaker

Dex Horthy of HumanLayer explains how to use context engineering to help coding agents solve complex problems in brownfield codebases, speaking at AI Engineer.

Why complex codebases need a different approach

Dex describes AI coding tools as more effective for greenfield projects than for mature codebases, where they can create rework and technical debt. His team found a workflow that raised throughput two to three times, but adapting how they worked took eight weeks.

Keep context focused and compact

Dex recommends restarting a conversation when it gets off track, or intentionally compacting its useful findings into a reviewed Markdown file for the next agent. He says context quality depends on correctness, completeness, size, and trajectory, and warns that performance can decline as the context window fills.

Use research, plans, and implementation

Dex describes a workflow that separates codebase research, explicit planning, and implementation, with compaction between phases to keep context manageable. Research identifies relevant files and how the system works; plans spell out steps, code snippets, and checks. He says the approach helped with complex work, including shipping 35,000 lines to BAML in seven hours, though an effort to remove Hadoop dependencies from Parquet Java required returning to the whiteboard.

Build context from the code and keep humans aligned

Dex favors on-demand research that uses the code itself to build a concise snapshot of the relevant system, rather than relying on extensive documentation that can become outdated. He sees plans and review as ways to keep teams aligned on what is changing and why. Humans still need to assess the research and plan, because a mistaken assumption early on can send the whole effort in the wrong direction.

Match the process to the problem

Dex advises against using a full research and planning workflow for every task: a button color change may need only a direct instruction, while a feature spanning several repositories may benefit from research and a plan. He says choosing the right amount of context work takes practice. He expects teams to adapt their workflows and culture as AI writes more code.

Takeaways

  • Start a fresh agent context when a conversation has taken a wrong turn.
  • Compact useful findings into a reviewed handoff that points to relevant files and lines.
  • Use explicit plans with implementation steps and checks for complex changes.
  • Review research and plans yourself; errors in either can multiply downstream.
  • Scale the process to the task, from a direct instruction to research and planning.

Mentioned in this talk

Search inside this talk

What was claimed 2

  • metric
    HumanLayer: The team achieved two to three times more throughput after changing how it collaborated
    “we were able to get two to three times more throughput”
    YouTube
    Unverified1 source· Talk
  • feature
    HumanLayer: Building an agentic IDE to help teams speed up the move to AI-generated code
    “We're building an agentic IDE to help teams of all sizes speed-run the journey to 99% AI-generated code.”
    YouTube
    Unverified1 source· Talk

Related talks