The Pragmatic Engineer — selected conversations
Context engineering with Dex Horthy
Twenty-five curated conversations on agent workflows, software factories, software correctness, developer platforms, engineering leadership, resilient systems, and software quality
A manually reviewed selection of Pragmatic Engineer conversations with Katelyn Lesse, Harjot Gill, Satya Nadella, Sean Allen, Will Larson, Uday Kiran Medisetty, Sam Newman, Maggie Appleton, Matt Pocock, Tibo Sottiaux, Martin Fowler, Dex Horthy, Boris Cherny, Mario Zechner and Armin Ronacher, Laura Tacho, Hillel Wayne, Mitchell Hashimoto, Kent Beck, Peter Steinberger, Grady Booch, Steve Yegge, DHH, Dax Raad, Charity Majors, and Addy Osmani. Topics include software factories and risk-based review, software correctness and fault-injection test workloads, engineering management and careers, developer platforms, resilient distributed systems, design prototyping, reusable skills, agent workflows, context and harness design, TDD and verification, architecture, measurement, accountability, and open-source governance. Practitioner observations, product-team and vendor claims, and forecasts are not controlled findings.
In this collection Browse 25 summaries 12 of 25
Gergely Orosz interviews Dex Horthy about context engineering, coding-agent loops, and software factories 01:00–02:03(opens in a new tab), 20:01–21:04(opens in a new tab), 1:20:59–1:22:02(opens in a new tab). Horthy argues for controlling model inputs, bounded loops, and human judgment before consequential implementation 21:04–23:00(opens in a new tab), 34:35–37:43(opens in a new tab), 58:23–1:00:30(opens in a new tab).
Key Points Covered
- Context engineering controls the model's actual input: Horthy treats retrieval, memory, agent history, and structured output as different ways of passing tokens into a model. Getting from a good demo to high accuracy, he says, means controlling what goes into the context window and in what order. He presents this as a route toward higher reliability, not a guarantee 20:01–23:00(opens in a new tab).
- Information and instructions have separate budgets: Horthy splits context into an information budget (which documents or chunks to include) and an instruction budget (how many instructions the model can follow). Long contexts can contain irrelevant information, conflicting instructions, and abandoned conversational paths that make the next action less dependable 28:06–31:03(opens in a new tab).
- The outer harness includes the whole working environment: Horthy uses the term for commands, MCP tools, skills, repository organization, and development setup around an existing agent. He distinguishes this environment from the inner harness's tool interfaces 26:00–27:02(opens in a new tab).
- Loops need strong back pressure: Horthy uses "back pressure" for automated ways a model can check its own work, such as compilers, tests, linters, or measurable performance. His team's reported “slow loop” runs nightly, fixes one thing, and opens a reviewable pull request rather than producing one large autonomous change 33:32–37:43(opens in a new tab).
- Passing tests can hide maintainability failures: In HumanLayer's reported 2025 experiment, unattended feature generation left a primary key that was passed through the whole codebase and needed a different type. Tests and agent review did not expose it. The team spent weeks re-learning code it had stopped reading before humans could diagnose it 41:23–46:11(opens in a new tab).
- Planning artifacts should be disposable context: Horthy says research and design can compact codebase state and intent, but detailed plans duplicate review effort and persistent specifications drift from code 1:01:32–1:06:43(opens in a new tab).
- Compact deliberately between difficult phases: His current workflow starts fresh contexts between research, design, and planning, concentrating human involvement on architecture and vertically testable implementation slices 1:06:43–1:09:36(opens in a new tab).
- Automate bounded subloops, not the whole factory: Orosz frames implementation and review as stages in an existing product-delivery loop. Horthy argues for adding checkpoints instead of removing human review from the system 49:00–52:08(opens in a new tab), 58:23–1:00:30(opens in a new tab).
Full video: https://www.youtube.com/watch?v=Usufn8IQJgw(opens in a new tab)