Context engineering with Dex Horthy
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
- Own your context window to impact output quality.
- Automate feedback loops for models to check their own work.
- Prioritize human effort for efficiency over raw model intelligence.
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
- Use "slow loops" for incremental code quality improvements via daily PRs.
- Integrate human-agent planning checkpoints before code generation.
- Focus on program design and architecture for long-term maintainability.
Topics
- Context Engineering
- AI Agents
- Software Factories
- Loop Engineering
- Harness Engineering
- LLM Context Windows
- Code Quality
Best for: CTO, VP of Engineering/Data, Director of AI/ML, AI Engineer, Machine Learning Engineer, MLOps Engineer
Related on AIssential
See Counsel's argued verdicts on the open AI decisions leaders are weighing →
Editorial summary, takeaway, and curation by AIssential. Original article published by The Pragmatic Engineer.