Context engineering with Dex Horthy

· Source: The Pragmatic Engineer · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering · Depth: Intermediate, extended

Summary

Dex Horthy, founder of Fumilir and coiner of "context engineering," discusses building effective AI-assisted software. His experience includes shutting down a "lights-off" software factory after four months due to unmanageable code quality degradation. Horthy emphasizes context engineering as crucial for maximizing AI output quality by carefully crafting model inputs, moving beyond basic prompt engineering. He also introduces "harness engineering" for optimizing coding agent environments and "loop engineering," including "slow loops" that generate small, reviewable PRs daily. The discussion covers the "physics of context windows," noting quality degradation beyond the "smart zone" (first 100K-200K tokens), and the evolution of software factories from a 1968 NATO conference to modern agentic systems.

Key takeaway

For AI Engineers building production-grade software, prioritize "token smarter" approaches over "token harder" to avoid unmanageable codebases. Your team should adopt incremental "slow loops" for continuous code quality improvements, generating small, human-reviewable pull requests daily. Additionally, integrate human-agent planning and design checkpoints early in the SDLC to guide agents, ensuring maintainable architecture and program design, thereby achieving 2-3x faster development without sacrificing quality.

Key insights

Context engineering, the precise crafting of LLM inputs, is key to achieving high-quality, reliable AI-generated software.

Principles

Method

Implement "intentional compaction" by compressing context into verified artifacts (e.g., research docs, design plans) and starting fresh sessions to stay within the "smart zone" of the context window.

In practice

Topics

Best for: CTO, VP of Engineering/Data, Director of AI/ML, AI Engineer, Machine Learning Engineer, MLOps Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by The Pragmatic Engineer.