Context Engineering for Production AI Agents

Why Intentional Compaction Beats Unchecked Token Growth in Long-Running Workflows

Intentional compaction, the context engineering practice Dex Horthy detailed in a July 2026 Pragmatic Engineer interview, is the one practice to adopt before shipping an AI agent feature.

The practice compresses a coding agent’s working context into a verified Markdown artifact at a fixed checkpoint, roughly 300,000 to 400,000 tokens inside a one million token model, and then starts a new session from that artifact instead of continuing inside a degraded conversation. Horthy, chief executive and cofounder of HumanLayer, built the practice after conversations with roughly 100 engineers shipping production agents, several on contracts above $100,000, and after a fully unattended coding system HumanLayer ran internally degraded a codebase over the four months between July and November 2025. A Stanford study published in the Transactions of the Association for Computational Linguistics in 2024 and a July 2025 Chroma Research report testing 18 large language models both document the mechanism behind the failure: retrieval accuracy and reasoning quality fall as relevant information moves toward the middle of a long context window, a pattern Horthy calls the dumb zone.

Two figures anchor the finding. Horthy keeps active context under roughly 40 percent of a model’s nominal window, consistent with HumanLayer’s own analysis of 100,000 developer sessions locating the dumb zone in the middle 40 to 60 percent of a large context window. Chroma Research’s test of 18 models from Anthropic, OpenAI, Google, and Alibaba found accuracy gaps on the LongMemEval benchmark between inputs of roughly 300 tokens and inputs of roughly 113,000 tokens, with Claude models showing the steepest drops. The comparative conclusion is specific: a team that lets an agent’s context grow unchecked until a context window limit forces a reset is operating inside the dumb zone for a measurable share of every session, while a team that checkpoints and compacts on a schedule keeps the agent inside the zone where recall and design judgment hold up. For an engineering organization deciding how to ship its next agent based feature, the point that matters for the decision is that context window size is a capacity ceiling, not a reliability guarantee, and the token budget a team actually uses before compacting determines whether the agent keeps functioning or begins to confabulate agreement with its own prior, unreviewed output.

Definition, Scope, and Technical Context

Context engineering is the systems engineering discipline of curating which tokens occupy a large language model’s context window at each step of a multi turn agent session, as distinct from prompt engineering, which addresses the one time construction of a system prompt or instruction. Dex Horthy, who popularized the term in software engineering circles through his 12-Factor Agents project on GitHub beginning around August 2024, frames the distinction around Shopify chief executive Tobi Lutke’s 2025 description of context engineering as the practice of providing all of the context needed for a task to be plausibly solvable by a model, not merely a well phrased instruction.

This analysis is scoped to context engineering as applied to autonomous and semi autonomous coding and workflow agents built on frontier large language models with context windows between 100,000 and 1,000,000 tokens, the range Horthy addressed in his July 2026 interview and the range Anthropic addressed in its September 29, 2025 engineering guide on effective context engineering for agents. Excluded from scope are single turn chat completions, retrieval augmented generation architectures considered purely as a search problem, and fine tuning or weight level adjustments, none of which the compaction practice at issue depends on or modifies.

The engineering classification is information systems architecture layered on top of a stochastic inference engine. A large language model attends to every token in its context window through a self attention mechanism, and the model’s working memory across an agent session is entirely represented by the tokens an engineering team chooses to keep, discard, or compress in that window. The broad category is prompt and context management for generative artificial intelligence. The specific variant under analysis is intentional compaction, a session boundary technique in which an engineering team deliberately ends a working session before the window degrades, writes a compressed, human reviewable summary of the verified state, and resumes work from that summary in a fresh session rather than allowing the conversation to continue indefinitely.

Underlying Scientific and Engineering Principles

A transformer based large language model computes attention weights across every token pair in its context window at every generation step, and the computational cost of that attention mechanism scales with the square of the number of tokens in standard implementations. Vendors have engineered around the raw compute cost through techniques such as sparse and windowed attention, which is how context windows have grown from roughly 4,000 tokens in 2023 era models to 1,000,000 tokens in some 2025 and 2026 era models. Expanding the window addresses the compute and memory constraint. It does not address a separate constraint: whether the model reliably locates and weighs the relevant tokens once they are present among hundreds of thousands of others.

Nelson Liu and coauthors documented that second constraint directly. Their study, first posted to arXiv in July 2023 and published in the Transactions of the Association for Computational Linguistics in 2024, found that language model retrieval accuracy on long context question answering tasks follows a U shaped curve: models retrieve information placed at the very beginning or the very end of a long context substantially more reliably than information placed in the middle, even when total context length is held within the model’s stated limit. Chroma Research extended this finding in a July 14, 2025 report testing 18 models across four providers, including Anthropic’s Claude Opus 4 and Sonnet 4, OpenAI’s o3 and GPT-4.1 family, Google’s Gemini 2.5 Pro and Flash, and Alibaba’s Qwen3 family. The report found degradation that was non uniform rather than a smooth curve, including the counterintuitive result that logically structured context sometimes performed worse than context with the same information shuffled into random order, across all 18 models tested.

Horthy’s own account of the mechanism, given in a December 3, 2025 interview, frames the constraint as a problem of distinguishing relevant tokens from irrelevant ones rather than a pure position problem: model intelligence depends on the ability to use the tokens already present in the window, by correctly deciding which of those tokens are relevant to the next decision, and frontier models reliably follow on the order of 100 to 200 distinct instructions before instruction following performance measurably degrades. Both constraints are contingent rather than fundamental: nothing in the transformer architecture forbids better long context retrieval, and model providers have measurably improved needle in a haystack benchmark scores release over release. The contingent nature of the limitation is exactly why an engineering team cannot treat it as solved by purchasing a model with a larger advertised window. The limitation moves with every model generation, and a team’s compaction checkpoint has to be set against the specific model in production, not against a vendor’s marketing figure for maximum context length.

A second principle governs why compaction must produce a written artifact rather than a verbal summary inside the same session. Anthropic’s September 29, 2025 engineering guide describes compaction as summarizing conversation history near a context limit and reinitializing the session with the compressed summary, specifically preserving design decisions, known defects, and implementation details rather than conversational color. A summary generated by a model whose own context has already degraded risks summarizing the degraded state, which is why Horthy’s practice calls for a human or a fresh, unburdened model session to verify the compressed artifact before work resumes from it.

System Architecture and Process Flow

The architecture Horthy described to The Pragmatic Engineer organizes a complex coding task across four sequential agent sessions, each with its own context window and a written artifact that becomes the input to the next session. A first session reads the relevant portion of the existing codebase while its context remains inside the reliable zone, and it emits a research document describing what the code currently does. A second session takes a work ticket together with that research document and produces a design document. A third session references both prior documents and produces a step by step implementation plan. A fourth session executes that plan. Human review concentrates on the design document produced by the second session, because Horthy has found models comparatively weak at design judgment even when they are strong at generating code that passes a given test.

Anthropic’s own architecture, described in its September 2025 guide, adds three components that interoperate with Horthy’s session boundary model rather than replacing it. Structured note taking lets an agent write persistent notes to storage outside its own context window and retrieve them later, which supplies continuity across sessions without re reading the entire prior transcript. Sub agent architectures delegate a narrow task to a child agent that works inside its own clean context window and returns a condensed summary of roughly 1,000 to 2,000 tokens to the parent agent, which keeps the parent’s own window from absorbing every detail of the child’s work. Tool result clearing removes stale tool outputs, such as the full text of a file read many turns earlier, from the active context once the information they contain has been superseded, which Anthropic describes as one of the lightest touch forms of compaction available.

Horthy’s own production system layers a deterministic routing component in front of the language model calls themselves. In his account, a fast and comparatively inexpensive model acts as an orchestrator that decides which parts of a task need a slower, more capable model, and ordinary application code, not a model call, narrows the candidate context before it ever reaches that slower model. The bill of materials for this architecture is therefore not a single model but a small set of model tiers plus deterministic glue code, state storage for notes and documents, typically Markdown files with YAML front matter synchronized through an ordinary version control system such as Git, and a review mechanism, human or automated, placed at the design checkpoint rather than scattered across every line of generated code.

Quantitative Performance Metrics

The central metric for context engineering is not context window size but effective context utilization, the share of a model’s nominal window inside which recall and reasoning remain reliable. Horthy reports operating within roughly 300,000 to 400,000 tokens against a 1,000,000 token nominal window, and within roughly 100,000 tokens against smaller context models, figures he and his collaborators derived from analysis of 100,000 developer coding sessions that located a dumb zone in the middle 40 to 60 percent of a large context window. The resulting operating guidance, keep active context under roughly 40 percent of nominal capacity, is demonstrated practice rather than a theoretical ceiling, since the 300,000 to 400,000 token range against a 1,000,000 token window is itself close to that 40 percent threshold.

Chroma Research’s July 2025 report supplies an independent, disclosed methodology benchmark. On the LongMemEval task, the report measured a material accuracy gap between a focused input of roughly 300 tokens and a full input of roughly 113,000 tokens, with Claude models among the 18 tested showing the most pronounced drop across that range. The report also found that every one of the 18 models performed worse with at least one irrelevant distractor present than with none, and that performance degraded further as additional distractors were added, a result directly relevant to compaction practice because a compressed Markdown artifact is, by design, a context free of distractor content that has already been judged irrelevant.

  • Horthy’s practiced context ceiling, 1M token models: ~300,000 to 400,000 tokens (~30 to 40 percent of window) (The Pragmatic Engineer, July 15, 2026)
  • Horthy’s practiced context ceiling, smaller models: ~100,000 tokens (The Pragmatic Engineer, July 15, 2026)
  • 12-Factor Agents dumb zone location: Middle 40 to 60 percent of context window (12-Factor Agents framework analysis, reported December 5, 2025)
  • Instruction following ceiling before degradation: ~100 to 200 distinct instructions (Chroma interview with Horthy, December 3, 2025)
  • Sub agent summary size returned to parent: ~1,000 to 2,000 tokens (Anthropic engineering guide, September 29, 2025)
  • LongMemEval accuracy gap range tested: ~300 tokens versus ~113,000 tokens of input (Chroma Research, Context Rot report, July 14, 2025)
  • Models tested in Context Rot report: 18 models across 4 providers (Chroma Research, Context Rot report, July 14, 2025)
  • Productivity lift, full human review of agent code: 30 to 50 percent versus pre AI engineering (The Pragmatic Engineer, July 15, 2026)
  • Speed gain, design focused review model: Roughly 2 to 3 times faster than manual coding (The Pragmatic Engineer, July 15, 2026)
  • Time to codebase degradation, unattended coding system: Approximately 4 months (July to November 2025) (BigGo Finance, July 15, 2026)

Every figure above is a reported operating practice or a disclosed benchmark result, not an independently reproduced measurement by this analysis. The 30 to 50 percent and 2 to 3 times figures are Horthy’s own estimates of his teams’ output, offered without a published controlled study, and should be read as a practitioner’s order of magnitude claim rather than a peer reviewed productivity measurement.

Key Advantages and Limitations

Intentional compaction’s principal advantage is that it converts an unbounded, accumulating liability, a growing context window that silently degrades, into a bounded, inspectable artifact at a fixed checkpoint. Because the compressed Markdown document captures design decisions, known defects, and the implementation plan rather than the full conversational transcript, a human reviewer can audit the state of the work in minutes rather than reading every prior exchange, and a new session starts with a context window that sits well inside the reliable zone described in Section C. The mechanism works because it addresses the actual cause of degradation identified by Liu’s position based retrieval findings and Chroma Research’s distractor findings: it removes stale and irrelevant tokens from the window rather than asking the model to continue reasoning around them.

A second advantage is that compaction surfaces a specific linguistic failure marker Horthy calls trajectory poisoning. When a model begins responding with phrases such as you’re completely right or you’re right to push back on that in response to ordinary pushback, Horthy treats the phrase as evidence that the session’s context has degraded to the point that the model is agreeing rather than reasoning, and the compaction checkpoint becomes the discard and restart point rather than a point to argue further inside the same degraded window.

The limitation intrinsic to the practice is the review cost it does not eliminate: compaction reduces the volume of material a human must review, but it does not remove the need for review at the design and architecture checkpoint, where Horthy reports models remain comparatively weak. A contingent limitation, potentially addressable through better tooling, is that the compaction step itself currently depends on engineering judgment about what counts as irrelevant versus relevant information in a given codebase, and no model provider as of this analysis has published a standardized benchmark for compaction quality itself, as distinct from benchmarks for raw context retrieval. A team adopting the practice is therefore building its own compaction discipline rather than configuring a vendor supplied feature, though Anthropic’s tool result clearing, described in Section D, is a step toward a platform native version of the lightest touch form of compaction.

Technical Failure-Mode Analysis

The gradual failure mode is context rot, Chroma Research’s term for the measured, non uniform decline in retrieval and reasoning accuracy as a session’s context grows, documented across all 18 models the July 2025 report tested. The mechanism is the position dependent attention weighting Liu’s team first measured in 2023: as token count grows and relevant information no longer sits near the beginning or end of the window, the probability that the model correctly weighs that information falls, and the fall is measurable well before a model’s stated context limit is reached. The detection method available today is indirect: teams infer context rot from downstream symptoms, a model missing a previously stated requirement or repeating a step already completed, rather than from a direct, real time measurement of context quality, since no provider as of this analysis exposes a live context health metric inside its application programming interface.

The acute failure mode is trajectory poisoning, a cascade in which a degraded session produces an incorrect intermediate conclusion, the model then treats that conclusion as established fact in subsequent turns, and corrective pushback from a human produces performative agreement rather than real reconsideration. HumanLayer’s internal unattended coding system, run without human review between July and November 2025, illustrates the failure chain across an entire codebase: the account reported to The Pragmatic Engineer and to BigGo Finance describes a single defect that took weeks of manual work to trace, because the defect sat inside layers of code that no human had reviewed and that had been generated across many compounding, unreviewed agent sessions. Horthy has since called the system a cautionary tale rather than a architecture HumanLayer continues to operate.

The two failure modes interact directly: context rot degrades a session’s reasoning quality first, and trajectory poisoning is the behavioral symptom that makes the degradation visible, since a model whose judgment has already drifted will tend to agree with a flawed premise rather than flag it. The mitigation Horthy describes is procedural, not a change to the underlying model: compact before the dumb zone is reached, and treat sycophantic agreement language as a forcing function to restart rather than a reason to continue. Compared with the fully unattended model, which has no equivalent checkpoint and therefore no equivalent detection mechanism, a compaction disciplined workflow fails more often but fails smaller, surfacing a defect at the scope of a single session’s work rather than at the scope of three months of accumulated, unreviewed code.

Real-World Applications and Deployment Context

The primary deployment context Horthy described is enterprise software delivery, drawn from his conversations with roughly 100 engineers building production agents, several engaged on contracts exceeding $100,000, conducted while developing the 12-Factor Agents project beginning around August 2024. HumanLayer’s own production use is smaller in scale but publicly described: a nightly automated job, what Horthy calls a slow loop, runs four agents that each open a pull request focused on a code quality improvement, and a human reviews every pull request before it merges. This sits at the opposite end of the risk spectrum from the company’s internal, fully unattended experiment described in Section G, and the contrast between the two systems is itself the deployment lesson Horthy draws: the review checkpoint, not the model’s capability, is what determined whether the system remained usable.

Anthropic’s September 2025 guide describes a comparable application inside its own product, citing an internal demonstration in which an agent played the game Pokemon and maintained coherent progress across thousands of game steps by tracking a rolling window of roughly the 1,234 most recent steps rather than the full history, an example Anthropic uses to show structured note taking and context pruning operating together inside a single long running agent rather than inside a human supervised coding workflow.

The threshold for adoption is session length and review tolerance rather than industry sector: any team running a coding or workflow agent for long enough that a single session would otherwise approach the dumb zone identified in Section C stands to benefit from a compaction checkpoint, while a team whose agent sessions are short single turn interactions has less immediate exposure to the failure modes described in Section G. As of this analysis, the practice remains a team level engineering discipline documented through practitioner interviews and a published open source project rather than a feature built into a specific commercial platform, though Anthropic’s tool result clearing feature, described in Section D, is a step toward platform native support for the lightest touch version of the same idea.

Economic and Scalability Considerations

The direct cost driver in context engineering is token consumption, since every token an agent carries forward in its context window is billed again on every subsequent turn under standard large language model application programming interface pricing. A session that grows to 400,000 tokens before compacting costs materially more per turn, in raw token terms, than a session compacted at 100,000 tokens, independent of any reliability benefit, which means compaction is a cost control as well as a reliability practice. Horthy’s own account of model selection, given in his December 2025 interview, describes routing orchestration through a fast, comparatively inexpensive model and reserving a slower, more expensive model for steps that actually require its reasoning depth, with deterministic application code narrowing the context those more expensive calls actually receive.

The scalability bottleneck is not infrastructure but review capacity. Horthy’s three operating models, described in Section G, show the trade off directly: full human review of every line of agent generated code produces a reported 30 to 50 percent productivity lift over pre AI engineering, a design concentrated review model produces a reported 2 to 3 times speed gain by moving review to the architecture checkpoint, and removing review entirely produced, in HumanLayer’s own internal test, a system that degraded within four months. The economic lesson is that the return on an agent based feature scales with where an organization places its review effort, not simply with how much code the agent can generate, and a team that removes review to capture a larger apparent output figure is trading a visible short term gain for the kind of compounding, hard to trace defect HumanLayer encountered.

No independent, disclosed cost of capital or market sizing data for context engineering tooling specifically was identified in the course of this research, and this analysis does not assert a market figure that was not confirmed in a primary source. The cost figures above are limited to token pricing mechanics and the productivity ranges Horthy reported from his own teams, which should be read as practitioner estimates rather than independently audited figures.

Regulatory Environment and Compliance Considerations

No federal or state statute in the United States currently names context engineering or context window management as a specific compliance obligation. The closest applicable frameworks address AI system reliability and documentation more generally. The National Institute of Standards and Technology’s AI Risk Management Framework, first published in January 2023, directs organizations deploying AI systems to document and manage risks tied to system reliability and to the traceability of a system’s outputs, a category into which an undocumented, degraded agent session falls squarely, since a system that cannot explain why it produced a given output cannot satisfy that traceability expectation.

For organizations operating in the European Union, Regulation (EU) 2024/1689, the Artificial Intelligence Act, imposes documentation and logging obligations on providers of high risk AI systems under its Article 12 and Article 13 requirements, and an automated coding or workflow agent used inside a regulated sector, such as financial services or medical device software, could fall within a high risk classification depending on its intended purpose. A compaction practice that produces a written, timestamped Markdown artifact at each session boundary creates exactly the kind of audit trail those logging obligations contemplate, which gives the practice a compliance benefit beyond the reliability benefit described in Section F.

General software quality standards remain relevant without naming agents specifically. ISO/IEC/IEEE 12207, the international standard for software life cycle processes, requires documented verification and validation activities throughout a software project, and a design document produced and reviewed at a compaction checkpoint is a natural artifact for satisfying that requirement when an agent participates in the implementation. No enforcement action, rulemaking, or agency guidance specifically addressing AI agent context management was identified as pending at the time of this analysis, and this section does not assert that one exists.

Future Development Trajectory

The trajectory Horthy described to The Pragmatic Engineer points toward tooling that automates the compaction checkpoint itself rather than leaving it to individual engineering judgment. Anthropic’s September 2025 introduction of tool result clearing, described in Section D, is an early, platform level instance of that shift, automating the lightest touch form of compaction, removal of stale tool output, without requiring an engineer to write the compression logic by hand. A milestone that would represent a true inflection point is a model provider publishing a standardized, disclosed benchmark for compaction quality itself, parallel to existing needle in a haystack and LongMemEval style benchmarks for raw retrieval, since no such benchmark was identified in this research.

Horthy’s own stated direction for HumanLayer, described in a July 2026 account of the company’s plans, is a collaborative development environment that replaces batch pull request review with continuous human steering of an agent’s work, a design he frames as eliminating the pull request as the primary review unit rather than eliminating human review itself. The credibility of that direction rests on a contingent rather than fundamental constraint: nothing in the underlying attention mechanism prevents tighter, more continuous human in the loop interaction, and the remaining barrier is tooling maturity rather than a law of physics or an unresolvable mathematical limit.

The competing trajectory, larger context windows alone solving the reliability problem, carries a specific risk this analysis characterizes as moderate rather than low: window size has grown from roughly 4,000 tokens to 1,000,000 tokens across model generations since 2023, yet Chroma Research’s July 2025 report found degradation patterns present across every one of the 18 current generation models it tested, including the largest windows then available, which indicates that window growth alone has not resolved the dumb zone phenomenon through three successive generations of expansion. A team that bets entirely on a future, larger window solving the problem without adopting a compaction discipline in the meantime is betting against a pattern that has held across multiple model generations rather than against a single, soon to be superseded limitation.

Want more industry insights? I publish daily analysis on the intersection of deep tech and venture law.

Subscribe to The Innovation Attorney on Substack

Open Questions

First, no model provider has published a standardized benchmark for compaction quality itself, as distinct from benchmarks measuring raw long context retrieval, which means engineering teams currently have no independent way to compare one team’s compaction discipline against another’s or against a platform native feature. Resolving this requires a disclosed methodology study, comparable to Chroma Research’s July 2025 report, that specifically measures outcomes before and after a compaction checkpoint rather than outcomes across raw input length.

Second, whether tool result clearing and similar platform native features will fully substitute for Horthy’s human reviewed, multi session compaction workflow, or will only address the lightest touch cases, remains unknown given that Anthropic introduced the feature in September 2025 and no comparative study against manual compaction practice has been published since. This question matters to engineering leaders deciding whether to invest in building an internal compaction discipline or to wait for platform vendors to automate the practice.

Third, the 30 to 50 percent and 2 to 3 times productivity figures Horthy reported are practitioner estimates from his own teams rather than figures from a controlled, published study, and it is not yet known whether those ranges generalize across codebases of different size, age, and test coverage. An independently conducted, disclosed methodology study across multiple organizations would be needed to establish whether the magnitude holds outside HumanLayer’s specific engineering context.

Fourth, it is not established whether the position dependent retrieval degradation Liu’s team documented in 2023, and which Chroma Research confirmed persists across 2025 era models, is a permanent property of the transformer attention mechanism or a contingent limitation that a future architecture change could eliminate. The answer determines whether compaction remains a standing engineering discipline for the life of the transformer architecture or a transitional practice that newer model architectures could eventually make unnecessary.

Fifth, over a five to ten year horizon, it remains to be established through future research whether regulatory frameworks such as the European Union’s Artificial Intelligence Act will come to treat an undocumented or unreviewed agent session as an independent compliance failure, separate from the correctness of the agent’s final output, in sectors classified as high risk. That determination would directly affect whether compaction’s audit trail benefit, described in Section J, becomes a legal requirement rather than a voluntary engineering practice.

Source List

1. Liu, Nelson F., Kevin Lin, John Hewitt, Ashwin Paranjape, Michele Bevilacqua, Fabio Petroni, and Percy Liang. “Lost in the Middle: How Language Models Use Long Contexts.” Transactions of the Association for Computational Linguistics 12 (2024). First posted to arXiv as arXiv:2307.03172 in July 2023. Peer reviewed study establishing the U shaped, position dependent retrieval degradation that underlies the dumb zone phenomenon discussed throughout this report.

2. Chroma Research. “Context Rot: How Increasing Input Tokens Impacts LLM Performance.” trychroma.com/research/context-rot, July 14, 2025. Disclosed methodology benchmark testing 18 models across four providers, supplying the LongMemEval and distractor figures cited in Sections E and F.

3. Anthropic. “Effective Context Engineering for AI Agents.” anthropic.com/engineering, September 29, 2025. Primary industry technical source defining context engineering against prompt engineering and describing compaction, note taking, sub agent, and tool result clearing techniques.

4. HumanLayer. “12-Factor Agents: Principles for Building Reliable LLM Applications.” GitHub repository, github.com/humanlayer/12-factor-agents, project began approximately August 2024. Primary industry technical source for the 12 factor framework, including Factor 3, own your context window, and Factor 9, compact errors into context window.

5. Orosz, Gergely. “Context Engineering with Dex Horthy.” The Pragmatic Engineer, newsletter.pragmaticengineer.com, July 15, 2026. The interview at the center of this report’s head query, the primary source for intentional compaction, the four session workflow, and the three operating models described in Sections D, G, and I.

6. BigGo Finance. “Dex Horthy: A Fully Automated ‘Dark Factory’ Corrupted a Codebase in Three Months, Here’s What He’s Building Instead.” finance.biggo.com, July 15, 2026. Secondary account of HumanLayer’s unattended coding experiment and its four month timeline, corroborating the failure mode described in Section G.

7. Chroma. “Dex Horthy on Agents and Context Engineering.” trychroma.com/interviews, December 3, 2025. Secondary interview supplying the instruction count ceiling and model orchestration practice cited in Sections C and I.

8. Paddo. “12 Factor Agents: Principles for AI That Actually Work.” paddo.dev/blog, December 5, 2025. Secondary technical summary supplying the 100,000 developer session analysis and the 40 to 60 percent dumb zone figure cited in Section E.

9. National Institute of Standards and Technology. Artificial Intelligence Risk Management Framework (AI RMF 1.0). NIST AI 100-1, January 2023. Federal technical and regulatory source for the documentation and traceability expectations discussed in Section J.

10. Regulation (EU) 2024/1689 of the European Parliament and of the Council of 13 June 2024 Laying Down Harmonised Rules on Artificial Intelligence (Artificial Intelligence Act), Arts. 12 to 13, 2024 O.J. (L 1689). Regulatory source for the high risk system logging and documentation obligations discussed in Section J.

Bibliography

Anthropic. “Effective Context Engineering for AI Agents.” September 29, 2025. https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents.

BigGo Finance. “Dex Horthy: A Fully Automated ‘Dark Factory’ Corrupted a Codebase in Three Months, Here’s What He’s Building Instead.” July 15, 2026. https://finance.biggo.com/news/15099f5634f5ab9a.

Chroma Research. “Context Rot: How Increasing Input Tokens Impacts LLM Performance.” July 14, 2025. https://www.trychroma.com/research/context-rot.

Chroma. “Dex Horthy on Agents and Context Engineering.” December 3, 2025. https://www.trychroma.com/interviews/dex-horthy-context-engineering-ep-1.

HumanLayer. “12-Factor Agents: Principles for Building Reliable LLM Applications.” GitHub repository. Accessed September 2026. https://github.com/humanlayer/12-factor-agents.

Liu, Nelson F., Kevin Lin, John Hewitt, Ashwin Paranjape, Michele Bevilacqua, Fabio Petroni, and Percy Liang. “Lost in the Middle: How Language Models Use Long Contexts.” Transactions of the Association for Computational Linguistics 12 (2024): 157 to 173. Preprint, arXiv:2307.03172 (July 2023).

National Institute of Standards and Technology. Artificial Intelligence Risk Management Framework (AI RMF 1.0). NIST AI 100-1. Gaithersburg, MD: U.S. Department of Commerce, January 2023.

Orosz, Gergely. “Context Engineering with Dex Horthy.” The Pragmatic Engineer. July 15, 2026. https://newsletter.pragmaticengineer.com/p/context-engineering-with-dex-horthy.

Paddo. “12 Factor Agents: Principles for AI That Actually Work.” December 5, 2025. https://paddo.dev/blog/12-factor-agents/.

Regulation (EU) 2024/1689 of the European Parliament and of the Council of 13 June 2024 Laying Down Harmonised Rules on Artificial Intelligence (Artificial Intelligence Act). 2024 O.J. (L 1689), arts. 12 to 13.

Interested in analysis about the intersection of tech, policy and the law? Check out my Substack channel. https://theinnovationattorney.substack.com/