<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Anoop Katla</title>
    <description>The latest articles on DEV Community by Anoop Katla (@anoopk).</description>
    <link>https://dev.to/anoopk</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3987832%2F394ba72f-4370-4aef-8dc0-3505360574be.png</url>
      <title>DEV Community: Anoop Katla</title>
      <link>https://dev.to/anoopk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anoopk"/>
    <language>en</language>
    <item>
      <title>Context engineering for people who already know how to prompt</title>
      <dc:creator>Anoop Katla</dc:creator>
      <pubDate>Tue, 16 Jun 2026 20:06:32 +0000</pubDate>
      <link>https://dev.to/anoopk/context-engineering-for-people-who-already-know-how-to-prompt-2pj1</link>
      <guid>https://dev.to/anoopk/context-engineering-for-people-who-already-know-how-to-prompt-2pj1</guid>
      <description>&lt;p&gt;If you've spent the last two years getting good at prompting, you've probably been told — loudly, repeatedly, all through 2026 — that the skill is now dead and "context engineering" has replaced it.&lt;/p&gt;

&lt;p&gt;Ignore that framing. It's wrong, and believing it will make you worse at both.&lt;/p&gt;

&lt;p&gt;Here's the accurate version: &lt;strong&gt;prompt engineering is a subset of context engineering.&lt;/strong&gt; Prompting is what you &lt;em&gt;say&lt;/em&gt; to the model. Context engineering is the discipline of curating &lt;em&gt;everything the model can see&lt;/em&gt; when you say it — the system prompt, tool definitions, retrieved documents, prior turns, and memory. Your carefully written prompt is one (load-bearing) component inside that larger surface. Anthropic, who did the most to popularize the term, still lists "system prompt design" and "few-shot prompting" as context-engineering techniques in their own &lt;a href="https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents" rel="noopener noreferrer"&gt;write-up on the topic&lt;/a&gt;. Nothing died. The surface just got bigger.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7qkcy9urtuy4q9j9clsq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7qkcy9urtuy4q9j9clsq.png" alt=" " width="800" height="473"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This post is for engineers who already prompt well and want the next layer: what context engineering actually &lt;em&gt;is&lt;/em&gt; mechanically, and the handful of patterns worth internalizing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a bigger context window didn't save you
&lt;/h2&gt;

&lt;p&gt;The seductive idea of 2025 was that long context windows would make all of this irrelevant — just stuff everything in and let the model sort it out. It didn't work, and it's worth understanding &lt;em&gt;why&lt;/em&gt;, because the why is the whole basis for the discipline.&lt;/p&gt;

&lt;p&gt;A model with a million-token window does not have a million tokens of &lt;em&gt;usable&lt;/em&gt; attention. Transformer attention scales with the square of the sequence length — every token has to relate to every other token — so attention is a finite budget that every token you add draws down. More input doesn't just cost money and latency; it dilutes the model's ability to focus.&lt;/p&gt;

&lt;p&gt;This shows up empirically in two ways you should know by name:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Lost in the middle.&lt;/strong&gt; Models reliably use information best when it sits at the &lt;em&gt;start&lt;/em&gt; or &lt;em&gt;end&lt;/em&gt; of the context, and measurably worse when the relevant content is buried in the middle — even for models explicitly marketed as long-context. This is the &lt;a href="https://arxiv.org/abs/2307.03172" rel="noopener noreferrer"&gt;Liu et al. paper&lt;/a&gt; that named the effect, and a &lt;a href="https://arxiv.org/abs/2406.16008" rel="noopener noreferrer"&gt;follow-up&lt;/a&gt; showed the U-shaped attention bias is intrinsic: beginning and end tokens get more attention &lt;em&gt;regardless of relevance&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Context rot.&lt;/strong&gt; Chroma ran the most rigorous test I've seen — &lt;a href="https://research.trychroma.com/context-rot" rel="noopener noreferrer"&gt;18 models, including the latest GPT, Claude, Gemini, and Qwen releases&lt;/a&gt; — and found recall and reasoning degrade as input length grows, even on deliberately trivial tasks. The finding that should bother you: models often scored &lt;em&gt;better on shuffled context than on logically coherent documents&lt;/em&gt;. Capacity is not utilization.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fecdu7qyjmwnzug2ug47q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fecdu7qyjmwnzug2ug47q.png" alt=" " width="800" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So the goal of context engineering, in Anthropic's words, is "finding the smallest possible set of high-signal tokens that maximize the likelihood of some desired outcome." Not the biggest context. The smallest one that works.&lt;/p&gt;

&lt;h2&gt;
  
  
  The patterns worth internalizing
&lt;/h2&gt;

&lt;p&gt;Once you accept that the window is a budget, the practices fall out of it. Here are the six I'd make sure you actually understand — each with what to do and the failure mode it prevents.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Pattern&lt;/th&gt;
&lt;th&gt;What to do&lt;/th&gt;
&lt;th&gt;Failure it prevents&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Attention budgeting&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Treat tokens like a budget. Spend on high-signal content; ruthlessly cut boilerplate, dead history, and redundant tool docs.&lt;/td&gt;
&lt;td&gt;Context rot — quiet degradation as the window fills.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Retrieval placement&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Put the most relevant retrieved chunks at the start or end of the window, not the middle. Prefer just-in-time retrieval (load via tools at runtime) over front-loading everything.&lt;/td&gt;
&lt;td&gt;Retrieving the right document and &lt;em&gt;still&lt;/em&gt; getting a wrong answer because it landed mid-context.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Tool-result formatting&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Return condensed, high-signal tool output. For big payloads, return identifiers/handles the agent can expand on demand instead of dumping full objects.&lt;/td&gt;
&lt;td&gt;One fat API or SQL response blowing the budget and evicting relevant context.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Structured output / schema design&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Use native structured outputs / constrained decoding; keep schema nesting to 2–3 levels.&lt;/td&gt;
&lt;td&gt;Malformed JSON breaking your pipeline; deep nesting raising error rates.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;System vs. turn separation&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Keep durable rules and persona in the system prompt at the right altitude — specific enough to guide, loose enough not to be brittle. Keep per-turn data out of it.&lt;/td&gt;
&lt;td&gt;Brittle over-specification, prompt drift, and broken prompt caching.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Memory &amp;amp; compaction&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Persist state &lt;em&gt;outside&lt;/em&gt; the window (progress notes, files) and re-hydrate selectively; when nearing the limit, summarize and reinitialize with the distilled state.&lt;/td&gt;
&lt;td&gt;Losing the task thread the moment the work outgrows a single window.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Retrieval is a deep topic in its own right — if you're going further there, the &lt;a href="https://interviewbaba.com/rag-interview-questions/" rel="noopener noreferrer"&gt;questions teams ask about RAG in interviews&lt;/a&gt; map the common failure modes pretty well — but for context engineering the load-bearing insight is &lt;em&gt;placement and restraint&lt;/em&gt;, not just "did we retrieve."&lt;/p&gt;

&lt;p&gt;The memory pattern is the one most people underrate. Anthropic's long-running agent work leans heavily on it: agents that write structured progress files and read them back at session start stay coherent across &lt;a href="https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents" rel="noopener noreferrer"&gt;hundreds or thousands of steps&lt;/a&gt; that could never fit in one window. The window is working memory; durable state lives outside it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Misconceptions worth killing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;"Prompting is dead."&lt;/strong&gt; No — it's a subset. The system prompt and your few-shot examples are first-class context-engineering components. You cannot out-engineer a badly written instruction. If you want to pressure-test what "good prompting" even means, the &lt;a href="https://interviewbaba.com/prompt-engineering-interview-questions/" rel="noopener noreferrer"&gt;fundamentals people drill for prompt-engineering interviews&lt;/a&gt; are a fair checklist — that layer matters &lt;em&gt;more&lt;/em&gt; now, not less.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"Just use a bigger window."&lt;/strong&gt; The Chroma study refutes this directly: performance degrades with length even on easy tasks, and coherent long documents did &lt;em&gt;worse&lt;/em&gt; than shuffled ones. Capacity ≠ utilization.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"More context is better."&lt;/strong&gt; More context dilutes the attention budget and raises the odds your key fact lands in the dead zone in the middle. Smallest high-signal set wins.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"Context engineering is just RAG."&lt;/strong&gt; RAG is one mechanism. Tool-result formatting, memory, compaction, schema design, and system/turn separation are all in scope. RAG without placement and budgeting discipline still fails.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The numbers I'm deliberately not citing
&lt;/h2&gt;

&lt;p&gt;If you read around on this topic you'll keep hitting two figures: an "82% of leaders say prompting alone isn't enough" stat, and a "task completion jumped from 83% to 96% with context engineering" claim. I tried to source both. The 82% traces back to a vendor survey with no published methodology from a company that sells context tooling. The 83%→96% appears to be two unrelated benchmarks stitched together into a before/after that nobody actually ran.&lt;/p&gt;

&lt;p&gt;So I'm not repeating either, and neither should you. The mechanism above — finite attention, position bias, measurable context rot — is real and reproducible. You don't need the fake precision to justify the practice.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this leaves you
&lt;/h2&gt;

&lt;p&gt;Context engineering isn't a new thing that killed an old thing. It's the name for the wider surface that good prompting always lived inside — we just couldn't ignore the rest of the window anymore once agents and tools and retrieval entered the picture. It's quietly become part of the baseline for &lt;a href="https://interviewbaba.com/ai-engineer-interview-questions/" rel="noopener noreferrer"&gt;AI engineering roles&lt;/a&gt;: it shows up in interviews now, not just in production post-mortems.&lt;/p&gt;

&lt;p&gt;If you already prompt well, you're not starting over. You're learning to manage the budget your prompt was always spending.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Further reading:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Anthropic — &lt;a href="https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents" rel="noopener noreferrer"&gt;Effective context engineering for AI agents&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Anthropic — &lt;a href="https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents" rel="noopener noreferrer"&gt;Effective harnesses for long-running agents&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Chroma — &lt;a href="https://research.trychroma.com/context-rot" rel="noopener noreferrer"&gt;Context Rot&lt;/a&gt; (18-model study + reproducible toolkit)&lt;/li&gt;
&lt;li&gt;Liu et al. — &lt;a href="https://arxiv.org/abs/2307.03172" rel="noopener noreferrer"&gt;Lost in the Middle&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://arxiv.org/abs/2406.16008" rel="noopener noreferrer"&gt;Found in the Middle&lt;/a&gt; (why the U-shaped bias happens)&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>llm</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
