Advanced Context Engineering for Coding Agents (ace-fca.md)

Dex Horthy (HumanLayer) ยท article ยท 2026-10-08 source โ†— Reader ๐Ÿ–ฅ๏ธ

Agentic LoopAgile & XPContext EngineeringContext Rot & Context LimitsMulti-Agent OrchestrationOrganizational Legibility
Solving hard problems in brownfield codebases requires designing your entire workflow โ€” not just individual prompts โ€” around keeping the context window in a 40-60% utilization sweet spot via a research/plan/implement cycle of frequent, intentional compaction, with human review concentrated at the research and plan layers because errors there compound into far more downstream bad code than a single bad line; and the open problem now is scaling this disciplined, human-engaged practice collaboratively across whole teams, not just a single highly motivated practitioner.

practical ยท narrative โ€” A first-person practitioner essay structured as a journey (naive chatbot use -> ad-hoc restarts -> intentional compaction -> frequent intentional compaction) with embedded case studies, building toward a product pitch (CodeLayer) for scaling the practice across teams.

Structure

PartRole
Origin story: unsustainable 2000-line Go PR review load forces adoption of spec-driven development over 8 uncomfortable weeksmotivating narrative
Four explicit goals: works in brownfield, solves complex problems, no slop, maintains mental alignmentsuccess criteria framework
Progression of context-management sophistication: naive chatbot -> discard-and-restart -> intentional compaction -> frequent intentional compactiontaxonomy building to the recommended practice
Why obsess over context: LLM turns are stateless function calls; context window quality has four dimensions (correctness, completeness, size, trajectory) and three ranked failure modes (incorrect > missing > noisy information)theoretical grounding
Geoff Huntley's Ralph Wiggum while-loop as a contrasting, more autonomous alternativecomparison / contrast
Subagents as context control, not role anthropomorphizationmechanism clarification
The research/plan/implement cycle with named prompt files and the worktree-only-for-implementation ruleconcrete practice
BAML case studies, the parquet-java/Hadoop failure, and a second failure (MCP sHTTP keepalive race condition, two team-weeks lost)evidence, including disconfirming evidence
On Human Leverage: a bad line of research costs more than a bad line of plan costs more than a bad line of codecore prescriptive claim
Team-scaling evidence: intern ramp-up, team Opus spend, and the CodeLayer pitch for scaling the practice across teamsgeneralization claim and forward-looking framing

Key terms

Propositions

Arguments

Teams should adopt frequent intentional compaction โ€” redesigning their whole workflow around a 40-60% context-utilization band via research/plan/implement โ€” rather than ad-hoc restarts or one-off intentional compaction.
Explicit premises:
Implicit premises:
Inferences:

Narratives

Questions addressed

Gaps

Related documents