Skip to main content
Crashbytes logoCrashbytes
HomeArticlesByte Sized ExamplesOpen SourceServicesAboutContact
Browse Articles
HomeArticlesByte Sized ExamplesOpen SourceServicesAboutContact
Network
Theme
Browse Articles
Crashbytes logoCrashbytes

Expert insights on web development, technology trends, and programming best practices. Learn from real-world experiences and cutting-edge techniques that help you build better software.

Follow Us

Our Sites

  • ๐Ÿ”ฎ Predictions
  • ๐Ÿ“ฐ Breaking News
  • ๐ŸŽจ AI Art
  • ๐Ÿ“– Short Stories
  • View All โ†’
  • Products โ†’

Sitemap

  • Home
  • All Articles
  • Open Source
  • Services
  • About Us
  • Contact
  • Donate Compute

Popular Topics

  • Serverless
  • Cloud Architecture
  • DevOps
  • Kubernetes
  • Platform Engineering

Resources

  • Privacy Policy
  • Terms of Service
  • Sitemap
  • RSS Feed
  • PGP Key

Stay Updated

Get the latest articles, tutorials, and insights delivered to your inbox. Join our community of developers and never miss an update.

ยฉ 2021-2026 Crashbytesยฎ by Blackhole Software, LLC. All rights reserved.
| Reg. U.S. Pat. & Tm. Off.

Made for the developer community

  1. Home
  2. /
  3. Articles
  4. /
  5. The Context Window Is Not Memory: How AI Agents Actually Remember
EngineeringMay 30, 202626 min readโ€ข By Michael Eakins

The Context Window Is Not Memory: How AI Agents Actually Remember

A bigger context window is not a memory system. How AI agents actually remember in 2026 โ€” working, episodic, and semantic memory, retrieval, and the write path teams overlook.

The Context Window Is Not Memory: How AI Agents Actually Remember

Quick Takeaways

What you'll learn in this article

26 min read
Intermediate
  • 1

    A bigger context window is not a memory system

  • 2

    How AI agents actually remember in 2026 โ€” working, episodic, and semantic memory, retrieval, and the write path teams overlook

Keep reading for detailed implementation, code examples, and real-world results

Every few months, a frontier lab ships a context window twice the size of the last one, and somewhere a product team decides that memory is now a solved problem. Just put everything in the prompt. The model can hold a million tokens, then two million, then the entire conversation history of every user who ever touched the product โ€” so why build a memory system at all?

This is one of the most expensive category errors in applied AI, and it is worth naming precisely, because teams keep paying for it in latency, cost, and agents that forget the user's name between Tuesday and Wednesday. The context window is not memory. It is working memory โ€” the equivalent of RAM, not disk. Confusing the two produces systems that are simultaneously over-stuffed and amnesiac, and the fix is not a bigger window. It is the memory architecture the window was never designed to be.

This piece is about what agent memory actually is, why the context window cannot be it no matter how large it grows, and the concrete architecture the teams shipping durable agents in 2026 are building instead. It is the system-design companion to the practical async agent queue tutorial โ€” that builds the body, this designs the memory.

The category error

In a conventional computer, you do not confuse RAM with the hard drive. RAM is fast, small, volatile, and holds what you are working on right now. Storage is slower, large, durable, and holds everything you might need later. No competent engineer proposes "just buy more RAM" as a substitute for a database, because the two solve different problems.

The context window is RAM. It is the scratch space the model reasons over for a single inference. It is fast in the sense that the model has direct attention over it, it is volatile in that it vanishes when the request ends, and it is small in the sense that matters โ€” every token in it costs money and latency on every single call. A memory system is storage: durable across sessions, arbitrarily large, cheap to keep, and queried selectively rather than loaded wholesale.

When a team says "we have a two-million-token window, we do not need memory," they are saying "we have a lot of RAM, we do not need a disk." The statement is not slightly wrong. It is a confusion about what each component is for, and every symptom that follows traces back to it.

What each component is actually good at

What each component is actually good at
capabilitycontextWindowmemorySystem
Persists across sessions0100
Cost to retain1595
Selective recall3092
Reasoning over loaded data9840

The chart makes the complementarity obvious. The context window is unbeatable at the one thing it does โ€” letting the model reason over whatever is loaded right now. It is terrible at everything storage is good at. A memory system inverts the profile. You do not choose between them; you connect them, and the connection is the whole design.

Why a bigger window does not fix it

Suppose you ignore all of this and try to brute-force memory by stuffing everything into an ever-larger window. Three forces make that fail, and they get worse, not better, as the window grows.

The first is cost and latency. Every token in the window is processed on every call. A conversation that loads 500,000 tokens of history pays for 500,000 tokens on every single turn, even when the user's new message is "thanks." Window size is a ceiling on what is possible, not a free resource, and treating it as free is how teams end up with per-conversation costs that quietly make the feature unviable.

The second is the lost-in-the-middle problem. Models do not attend uniformly across a long context. Information at the very beginning and the very end of a long window is recalled well; information buried in the middle is recalled poorly, and the effect worsens as the window fills. Loading a million tokens does not mean the model can use a million tokens โ€” it means most of them are present but functionally invisible.

Recall accuracy by position in a long context

Recall accuracy by position in a long context
positionrecall
0%94
15%71
35%52
50%45
65%51
85%73
100%92

The third, and most fundamental, is persistence. The window is gone when the request ends. Anything you want the agent to know tomorrow has to be stored somewhere that is not the window and loaded back in. The moment you accept that, you have conceded that you need a memory system โ€” and the only remaining question is whether you build a deliberate one or an accidental one.

The four kinds of memory an agent needs

"Memory" is not one thing, and the teams that get this right borrow the taxonomy that cognitive science worked out long ago, because it maps cleanly onto what agents actually require.

Working memory is the current task context โ€” the live conversation, the documents in play right now, the intermediate results of this session. This is the one thing the context window genuinely is, and it is the only kind of memory the window should hold.

Episodic memory is the record of what happened: past conversations, past actions the agent took, past outcomes. "Last week you helped me configure the billing webhook and it worked" is episodic recall. It is specific, time-stamped, and grows without bound, which is exactly why it belongs in storage and not the window.

Semantic memory is distilled knowledge: facts about the user, the domain, the product. "This user is on the enterprise plan, prefers terse answers, and works in healthcare" is semantic. It is the compressed residue of many episodes, and it is what makes an agent feel like it knows you rather than meeting you fresh every time.

Procedural memory is how to do things: the workflows, the tool sequences, the learned patterns of what works. An agent that remembers "for this kind of request, the reliable path is tool A then tool B" has procedural memory, and it is the hardest of the four to build well.

The four memory types and where each belongs

The four memory types and where each belongs
typevolatility
Working95
Episodic15
Semantic10
Procedural20

The single most useful thing a team can do is draw this map for its own agent and ask, for each kind of memory, where does this live and how does it get into the window when needed? Most struggling agents have all four kinds crammed into the context window or, worse, only working memory and no persistence at all โ€” which is why they are brilliant in a single session and strangers the next.

Advertisement

Retrieval is how storage becomes context

If memory lives in storage and reasoning happens in the window, something has to move the right memories from one to the other at the right moment. That something is retrieval, and retrieval-augmented generation is the most common name for the pattern: when a request comes in, you query your memory stores for the most relevant pieces and load only those into the window.

Retrieval is what makes the whole architecture economical. Instead of loading a user's entire history, you load the handful of past episodes relevant to the current request. Instead of the whole knowledge base, the few facts that matter. The window stays small, fast, and cheap, and the model still appears to have access to everything, because anything it needs can be retrieved on demand.

Retrieval vs. stuffing the window

Retrieval vs. stuffing the window
approachtokenslatencycost
Load all history4809288
Load last N turns1203530
Retrieve relevant only452214

But retrieval is not magic, and the failure modes are real. If retrieval surfaces the wrong memories, the agent confidently acts on irrelevant context โ€” and a retrieval miss is invisible, because the model will happily reason over whatever it was handed without knowing something better existed. Retrieval quality is therefore a first-class concern, and it is exactly the kind of thing that has to be measured rather than assumed, which is why memory and evaluation are inseparable: an unmeasured retrieval layer is a confident liar.

The write path is the hard part

Most discussions of agent memory focus on retrieval โ€” the read path. The read path is the easy half. The hard half, the one that separates durable agents from demos, is the write path: deciding what to store, how to compress it, and what to forget.

Consider what actually happens at the end of an agent session. You have a transcript of everything that occurred. You cannot store all of it forever โ€” that just relocates the unbounded-growth problem from the window to the database. So you have to decide: what from this session is worth remembering? A good write path extracts the durable facts (semantic memory), records the event (episodic memory), updates any learned patterns (procedural memory), and discards the rest. That extraction is itself a model call, with its own prompt, its own cost, and its own failure modes.

Forgetting is the part teams skip and the part that matters most over time. Memory that only accumulates becomes memory that cannot be searched, full of stale facts that contradict current ones. "The user prefers email" stored eight months ago still surfaces after the user switched to SMS, because nobody built the path that ages out or overwrites it. A memory system without a forgetting strategy does not have more memory; it has worse memory, slowly.

What a good write path does with a session transcript

What a good write path does with a session transcript
NameValue
Worth storing as semantic fact12
Worth storing as episode18
Summarize then discard40
Discard immediately30

The discipline here is to treat memory like a curated dataset, not a log. A log keeps everything and trusts you to find the signal later. A curated memory decides at write time what is signal, stores that in the right place, and lets the rest go. The agents that feel like they genuinely remember are the ones whose write path is doing real editorial work on every session.

Three ways agents lose the thread

The abstractions land harder against concrete failures, and three recur often enough to be worth naming, because each points at a specific missing piece of the architecture.

The first is the goldfish: an agent that is brilliant within a session and a total stranger across them. The user spends twenty minutes teaching it their setup on Monday; on Tuesday it asks for all of it again. This is the pure no-persistence failure โ€” working memory only, no write path, nothing in storage. It is the most common production agent failure and the most damaging to trust, because nothing erodes confidence faster than an assistant that cannot remember yesterday.

The second is the hoarder: an agent that remembers everything and therefore finds nothing. Its store grew without curation, every session dumped its full transcript in, and now retrieval surfaces a soup of stale, redundant, contradictory fragments. The hoarder often tests well early โ€” when the store is small, everything in it is relevant โ€” and degrades silently as it accumulates, which is the most dangerous shape of failure because it passes the demo and rots in production.

The third is the confabulator: an agent whose retrieval quietly misses, so it reasons over the wrong context and states the result with total confidence. The user asks about their March invoice; retrieval surfaces the February one; the agent answers about February as though it were March, fluently and wrongly. This is the most insidious failure because there is no error โ€” just a confident answer built on the wrong memory, the same dynamic that drives the reasoning-model factuality paradox where fluency masks a wrong foundation.

The three memory failures and their missing piece

The three memory failures and their missing piece
failurefrequency
The goldfish44
The hoarder33
The confabulator23

Each failure maps to exactly one missing component, which is the useful part: when an agent forgets across sessions you need a write path, when it drowns in stale facts you need forgetting, and when it acts on the wrong context you need retrieval quality. The symptom tells you which part of the architecture you skipped.

Vector search is not the whole answer

When most teams hear "retrieval," they reach for a vector database and semantic similarity search, and for unstructured episodic recall that is the right first tool. But treating vector similarity as the entirety of retrieval is its own trap, because a real memory system needs to retrieve along several axes that pure similarity handles badly.

Recency matters and similarity ignores it. The most semantically similar memory might be eight months stale while a slightly less similar one from yesterday is what the user actually means. A retrieval layer that does not weight for recency will confidently surface the old fact over the current one. Structure matters and similarity blurs it: "what plan is this user on" is a structured lookup against a profile, not a fuzzy semantic search, and answering it with vector similarity is both slower and less reliable than a key lookup. Importance matters: not all memories deserve equal retrieval priority, and a system that cannot mark some facts as load-bearing will let them be crowded out by trivia that happens to score well on similarity.

Vector-only vs. hybrid retrieval by query type

Vector-only vs. hybrid retrieval by query type
queryvectorOnlyhybrid
What did we discuss last week7890
What plan is this user on4597
What changed most recently3592
Find the critical preference5288

The mature pattern is hybrid retrieval: semantic search for unstructured recall, structured lookups for facts that have a schema, recency weighting so fresh memories win ties, and importance scoring so load-bearing facts are not crowded out. The vector database is one tool in the retrieval layer, not the layer itself, and agents that treat it as the whole answer hit a quality ceiling they cannot explain because the ceiling is the queries similarity was never going to answer well.

Memory across many agents

The architecture gets a new dimension the moment your product is not one agent but several โ€” a supervisor delegating to specialists, or a fleet of agents working a shared problem. Now you have to decide what memory is shared and what is private, and getting this boundary wrong produces two opposite failures.

Share too much and agents step on each other: a specialist writes a working assumption to shared memory, another agent reads it as established fact, and a tentative guess propagates through the system as truth. Share too little and the system has no coherent picture: each agent remembers its own slice, the supervisor cannot see what the specialists learned, and the user gets contradictory answers from different parts of the same product. The design question โ€” which memories are local to an agent and which are promoted to shared memory, and who is allowed to promote them โ€” is as important in multi-agent systems as the coordination logic itself, and it connects directly to the orchestration patterns in enterprise multi-agent systems.

The workable pattern mirrors how teams of people handle it: each agent has private working memory, a shared store holds the established facts everyone can rely on, and promotion from private to shared is a deliberate, gated step rather than an automatic write. A guess stays local until it is confirmed; only confirmed knowledge gets promoted. That single rule prevents most of the propagation failures that make multi-agent memory feel haunted.

Advertisement

You cannot improve memory you do not measure

Every component in this architecture โ€” retrieval, the write path, forgetting, compaction โ€” is a place where quality silently degrades, and none of them announces when it breaks. A retrieval miss looks like a confident answer. A bad write-path extraction looks like a memory that simply is not there. A compaction that dropped the key detail looks like a conversation that mostly still works. The only way to know any of these is healthy is to measure it, which is why a memory system without evaluation is a memory system you are flying blind.

The metrics are specific and buildable. Retrieval can be measured for whether the relevant memory was actually surfaced for a query. The write path can be measured for whether the facts it extracted from a session were correct and complete. Forgetting can be measured for whether stale facts actually aged out and current ones survived. Each is a standing eval in exactly the sense laid out in the evaluation bottleneck analysis: a fixed set of cases, scored on every change, gating whether a memory change ships. Memory and evaluation are not separate projects. The memory system is one of the things your evals exist to protect, and an unmeasured memory layer degrades exactly as silently as any other unmeasured AI component.

Context engineering: budgeting the window

Once you accept that the window is finite working memory fed by retrieval, the job becomes context engineering: deciding, for each call, exactly what earns a place in the limited window. This is a budgeting problem, and good agents have an explicit budget rather than an accidental one.

A typical turn's window has to hold the system prompt and instructions, the relevant retrieved memories, the recent conversation, the available tool definitions, and room for the model to actually respond. Every one of those competes for the same finite space, and naive agents let one of them โ€” usually runaway conversation history โ€” crowd out the others until the instructions themselves fall out of the effective window and the agent starts ignoring its own rules.

A deliberate context budget

A deliberate context budget
componentbudget
System + instructions15
Retrieved memory30
Recent conversation25
Tool definitions10
Response headroom20

Compaction is the technique that keeps the budget balanced over a long session: periodically summarizing older conversation into a compact form so the recent-turns slice does not grow without bound. Done well, the agent retains the gist of a long conversation in a fraction of the tokens. Done badly, compaction silently drops the one detail that mattered. Like retrieval and the write path, compaction is a place where quality has to be measured, not assumed โ€” the same averaging trap that hides problems elsewhere hides a compaction that is dropping the wrong things behind a conversation that mostly still works.

Memory is also a governance surface

There is a dimension of agent memory that pure architecture discussions miss: memory is data you are now storing about users, and that makes it a governance and privacy surface, not just an engineering one. The moment your agent remembers facts about a user across sessions, you have built a profile, and profiles carry obligations โ€” consent, retention limits, the right to be forgotten, and the security of a store that now contains a durable record of everything users told your agent.

This connects directly to the control-plane questions raised in the agent governance analysis: an agent's memory is one of the most sensitive things about it, and "where does the agent's memory live, who can read it, and how is it aged out" is a question your security and legal partners will ask before an enterprise deployment. The forgetting strategy you build for quality reasons turns out to be the same mechanism you need for compliance reasons, which is a rare case of the right engineering and the right governance pointing at the same design.

The architecture, assembled

Put the pieces together and the durable-agent memory architecture is legible. Working memory lives in the context window and only there. Episodic, semantic, and procedural memory live in storage โ€” an event store, a profile or knowledge base, and a pattern store respectively. A retrieval layer queries those stores on each request and loads only the relevant pieces into the window. A write path runs at session boundaries to extract, compress, and store what is worth keeping, and a forgetting strategy ages out what is not. A context budget governs what fits in the window each turn, with compaction keeping the conversation slice bounded.

None of these components is exotic, and you do not need all of them on day one. But the architecture is the thing the bigger window was never going to give you, because the window is one component in this system, not the system. The cost discipline this requires โ€” choosing when to spend a model call on a write-path extraction, which model to use for compaction โ€” is the same discipline laid out in the cost-aware multi-model router tutorial: memory operations are model calls, and model calls have a budget.

Build it, or buy memory-as-a-service?

A crop of "agent memory" platforms arrived in 2026 promising to handle all of this for you โ€” drop in an SDK, and your agent has persistent memory. The pitch is real and the tools are often good, but the build-versus-buy line falls in a specific and instructive place, much as it does for evaluation tooling.

The parts worth buying are the undifferentiated mechanics: the vector store, the embedding pipeline, the hybrid-retrieval machinery, the storage and indexing. These are genuinely hard to build well and not where your product is differentiated, and a good memory platform saves real months here. The parts you cannot outsource are the judgment calls that are specific to your product: what is worth remembering about your users, how your domain's facts should be structured, what your forgetting policy should be, and what "the relevant memory" even means for your queries. A vendor can store and retrieve; a vendor cannot decide that in your domain a user's compliance tier is load-bearing and their favorite greeting is not.

The failure mode the platforms enable is the same one that haunts every abstraction-over-a-hard-problem: a team adopts memory-as-a-service, accepts its defaults for what to store and when to forget, and ends up with a hoarder or a confabulator wearing a nicer SDK. The platform made the mechanics easy and left the judgment โ€” which was always the hard part โ€” exactly as hard as it was. Buy the storage and retrieval plumbing if it saves you time; own the policy of what your agent remembers and forgets, because that policy is your product's memory, and no one else can write it for you.

There is also a portability caution that mirrors any data decision: your users' memories are among the most sensitive and valuable data your product holds, and you want them in a store you can export and migrate. A memory platform you cannot leave is a platform that owns your agent's relationship with every user, which is far too much leverage to hand a vendor you might outgrow.

A worked example: an agent that learns you over a month

Trace a single user through a well-built memory system to see the components working together. Day one, a new user starts a session. There is nothing in storage about them, so the agent works from working memory alone โ€” a competent stranger. At session end, the write path runs: it extracts two durable facts (the user is on the team plan, works in logistics), records the episode (helped configure a shipping webhook, succeeded), and discards the rest of the transcript.

Day three, the user returns. Retrieval runs at session start, pulls the two semantic facts and the relevant past episode into the window, and the agent opens already knowing who it is talking to and what they did last time. The user notices โ€” the agent feels continuous. Over the next three weeks, each session adds a little: more facts, more episodes, a procedural pattern the agent learned about how this user likes their reports formatted. The semantic profile sharpens; the agent gets measurably more useful.

Day twenty-four, the user changes a preference โ€” switches their reports from weekly to daily. The write path does not just append "wants daily"; the forgetting logic overwrites the stale "wants weekly," so the contradiction never enters the store. Day thirty, a long troubleshooting session blows past the context budget, and compaction summarizes the early back-and-forth into a compact gist so the recent, load-bearing turns stay fully in the window. Throughout, a set of retrieval and write-path evals runs on every change to the memory logic, catching the day a prompt tweak quietly started dropping the logistics fact.

One user, one month, a working memory system

One user, one month, a working memory system
dayusefulnesscontinuity
1355
35260
106878
177985
248690
309194

Nothing in that month required a two-million-token window. It required a small store, a disciplined write path, recency-aware retrieval, a forgetting rule, compaction for the long session, and evals to keep it honest. The curve is what "the agent remembers me" actually looks like when you measure it โ€” and it is produced by architecture, not by window size.

Where agent memory goes next

It is worth looking ahead, because agent memory is moving in directions that will reshape the architecture over the next couple of years. The first is the blurring of the line between memory and fine-tuning. Today, semantic and procedural memory live in stores and get retrieved into the window. Increasingly, teams are exploring folding the most stable, load-bearing knowledge directly into lightweight model adaptations โ€” a continuum from "in the window this turn" through "in the store, retrieved on demand" to "in the weights." The architecture does not change in spirit, but the storage tiers gain a new, slowest, most durable layer, and deciding what is stable enough to bake into weights becomes a new version of the write-path question.

The second is self-organizing memory: agents that manage their own stores, deciding what to remember and what to forget without a hand-written write path. This is genuinely promising and genuinely risky, the same tension that runs through every move toward self-improving AI systems. An agent that curates its own memory can adapt faster than any policy you would write by hand; it can also quietly drift, forgetting things you needed remembered or remembering things it should have dropped, with no human in the loop to notice. The teams that adopt self-organizing memory safely will be the ones that keep a measured, human-anchored evaluation of memory quality that the self-organization is held against โ€” automate the curation, but never automate away the check on whether the curation is any good.

The third is regulatory. As agents accumulate durable profiles of users, the memory store becomes exactly the kind of personal-data repository that privacy regimes were written to govern, and "the right to be forgotten" stops being a metaphor and becomes a literal API your forgetting strategy has to implement. The forgetting mechanism you build for quality and the one you build for compliance converge, and the teams that built deliberate forgetting early will find themselves compliant almost by accident, while the hoarders will face an expensive retrofit.

All three directions reinforce the same point this piece has argued from the start: memory is a system you design, not a capacity you buy by the token. The window will keep growing and the storage tiers will keep multiplying, but the architecture โ€” working memory in the window, durable memory in stores, retrieval to connect them, a write path to fill them, and forgetting to keep them honest โ€” is the durable shape. Builders who internalize it now will adapt to every new tier that arrives; builders waiting for the window to make the problem disappear will still be waiting.

What to build first

The smallest useful memory system is not the full architecture. It is one durable store and one retrieval step. Pick the single kind of memory your agent most obviously lacks โ€” usually semantic facts about the user โ€” give it a place to live outside the window, write to it at the end of each session, and retrieve from it at the start of the next. That alone moves an agent from "stranger every session" to "remembers who you are," which is most of the felt difference.

From there the path is incremental and each step has a clear trigger. When the agent acts on irrelevant retrieved context, your retrieval needs work and measurement. When the store fills with stale contradictions, you need a forgetting strategy. When long sessions blow the budget, you need compaction. When the conversation crowds out the instructions, you need an explicit context budget. Each fix is small; the architecture emerges from solving real symptoms rather than building everything up front.

The thing to stop doing today is waiting for a context window large enough to make the problem disappear. It will not. The window will keep growing, and memory will keep being a different problem that growth does not solve โ€” because the window is working memory, it was always working memory, and the agents that remember are the ones whose builders stopped asking RAM to be a disk and built the disk. A model with a giant window and no memory system is a brilliant colleague with amnesia; the memory system is what turns the session into a relationship.

It is worth ending on the competitive stakes, because they are larger than they look. As base models converge in raw capability โ€” and in 2026 they are converging fast โ€” the model itself stops being a differentiator. Two competitors can license the same frontier model and ship the same window. What they cannot copy is each other's memory: the accumulated, curated, well-retrieved knowledge of their users and their domain that one has built and the other has not. That memory compounds with every session, it is specific to your product, and it is the asset a competitor cannot acquire by signing the same model contract you did. The context window is a commodity that gets cheaper and larger every quarter. The memory system is the thing you own โ€” and in a market where everyone has the same model, the agent that remembers is the agent that wins.

Signed by Michael Eakins

PGP key fingerprint ends in 08E8 8F19 ยท signed 2026-05-30

Verify โ†’.sig
Advertisement

Was this article helpful?

Your feedback helps us improve our content and create more valuable resources

We appreciate honest feedback - it helps us serve you better

Work with us

This analysis is what we do for clients

CrashBytes consults on enterprise AI strategy and implementation, builds custom web and mobile software, and places senior engineers on corp-to-corp engagements.

See Services

Enjoyed this? Get the next one.

Join developers getting CrashBytes articles, tutorials, and predictions in their inbox. No spam, unsubscribe anytime.

Related Topics

AI agentsagent memorycontext engineeringRAGretrievalLLM architecture
Back to Articles
โ† PreviousThe Lightwell Bet: Open-Source Security as the AI-Era BottleneckNext โ†’Prompt Injection Is the Threat Model, Not a Bug

From across the CrashBytes network

More than the blog โ€” predictions, news, fiction, and AI art.

PredictionCustom AI Chips Reach Commodity Status by Q4 2027: Cloud Provider Competition Drives Democratization
NewsWeek In Review July 19-25, 2026 - The Week The Money Moved To The Metering Layer
Short StoryThe Answer Key
AI ArtThe Room That Remembers

Continue Your Learning Journey

Explore more articles related to Engineering and expand your knowledge.

๐Ÿ“„Engineering

Build a Durable Agent Memory Layer in TypeScript: Recall, Summarize, Evict

A hands-on TypeScript tutorial for building a durable agent memory layer: vector recall, hybrid recency-and-salience ranking, scoped retrieval, rolling summarization, and eviction policies โ€” with tests.

28 min readRead more
๐Ÿ“„Engineering

Build an LLM-as-Judge Evaluation Harness in TypeScript: Scorers, Rubrics, and a CI Gate

A hands-on TypeScript tutorial for building an LLM evaluation harness: deterministic scorers, an LLM-as-judge rubric scorer, a concurrent runner with retries, and a CI regression gate โ€” provider-agnostic, fully tested.

28 min readRead more
๐Ÿ“„Engineering

Build a Parallel Subagent Orchestrator in TypeScript: Fan-Out, Retries, Pipelines

A hands-on TypeScript tutorial for building a parallel subagent orchestrator: bounded-concurrency fan-out, automatic retries, schema-validated structured output, and barrier-free pipelines โ€” provider-agnostic, with tests.

27 min readRead more
๐Ÿ“„Engineering

Prompt Injection Is the Threat Model, Not a Bug

Prompt injection is not an edge case you patch. For tool-using AI agents it is the threat model itself โ€” why detection cannot fix it, and the architecture that contains it.

26 min readRead more