Why Do AI System Prompts Bloat to 200,000 Characters?

    This article examines why system prompts for large language model agents keep growing, what it really costs to run oversized prompts, and how to keep them under control. Using a leaked (and unverifiable) frontier chatbot system prompt as a case study, it explains the "prompt ratchet" effect, breaks down the true cost of long prompts beyond just price, dissects a cross-session memory design worth borrowing (hierarchical loading, demand paging, layered write thresholds), and offers concrete governance strategies including token budgets, layered injection with KV-cache-friendly ordering, capability internalization, prompt versioning, and separation of the prompt layer from the retrieval (RAG) layer.

    Why Do AI System Prompts Bloat to 200,000 Characters?

    A system prompt allegedly belonging to a frontier LLM chat assistant recently circulated online, reportedly growing from about 120,000 characters in the previous generation to roughly 200,000. Observers have largely attributed the increase to a set of cross-session memory specifications. We can’t verify its authenticity or the specifics of its implementation. But setting the controversy aside, it raises a common problem every developer should think carefully about: as an agent’s capabilities keep expanding, how should its system prompt control size and stay maintainable?

    1. The Phenomenon: A “Ratchet Effect” Along One Path

    According to the circulated version, the new content falls into roughly seven categories:

    New content Primary purpose
    Cross-session memory filesystem spec (the largest, 200+ lines) Defines when to read/write, file formats, directory structure, privacy boundaries, and conflict handling
    Model-routing guidance for high-risk requests Routes high-risk or complex requests to a more capable model
    Multi-surface product usage notes (chat assistant, coding tool, browser and office suite integrations, etc.) Helps the model recognize entry-point differences and give operational guidance
    Specs for retrieval, files, attachments, citations, and tool calls Standardizes how information is fetched and results are presented
    More granular safety reminders (minors, mental health, weapons, cybersecurity, very long conversations) Covers risk scenarios that were blind spots in earlier prompts
    Extensive language-style and interaction rules Constrains tone, structure, and phrasing habits
    Change notes for availability adjustments in a particular region Lets the model explain accurately when asked

    The most contentious point is writing a feature’s full “removed then restored” timeline into the prompt, and claiming the model only recognizes the feature after it’s restored. This exposes a classic “prompt ratchet”:

    • Every time a class of problem is found, another rule or classifier is appended;
    • Every time a capability is added, another set of usage instructions is bolted on;
    • Every time an anomaly occurs, another boundary constraint is added.

    Content only ever grows and rules keep stacking up, so the system prompt balloons into a long, encyclopedia-like document.

    2. Why Do Prompts Keep Getting Longer? Four Structural Causes

    1. Patch-based governance. Whatever problem shows up in production gets patched directly into the prompt. The patch doesn’t address the root cause; instead it introduces new edge cases, which spawn the next patch. Over time, the prompt accumulates rules that overlap and even contradict each other.

    2. Front-loaded explanations. To reduce user confusion, the model has to explain things like “why a certain feature is temporarily unavailable in one region” or “why some requests are routed to a stronger model.” This explanatory content really belongs on product pages and in the help center, yet it’s been stuffed into the input of every inference call.

    3. One prompt shared across multiple entry points. A chat assistant, a coding tool, office integrations, and a browser extension have very different responsibilities. When they share one base prompt, all of each entry point’s rules have to be merged in, even though the model only needs a small subset at any given time.

    4. No prompt governance mechanism. There’s no token budget and no regression evaluation asking “is this section still necessary.” Changes are made purely on intuition. The jump of roughly 80,000 characters from one generation to the next looks less like a planned design and more like a month’s worth of accumulated “technical debt.”

    It’s worth noting that the model’s underlying capabilities were also improving during the same period. Many of the rules in the prompt could have been internalized into model behavior through supervised fine-tuning (SFT) or reinforcement learning from human feedback (RLHF). While capability growth should have been lightening the load on the system prompt, the prompt kept piling on more.

    3. The Real Cost of Long Prompts: More Than Just Price

    Direct cost. The full system prompt has to be sent on every turn, so token consumption multiplies. For high-frequency, short-conversation products, this is a fixed daily overhead.

    Time to first token. The longer the input, the more computation the prefill stage requires, and the higher the time-to-first-token latency — which directly slows down the interaction experience.

    Attention dilution and instruction conflicts. When key constraints are buried in a few hundred thousand characters, the model’s adherence rate tends to drop. The industry often summarizes this kind of long-context phenomenon as “lost in the middle”: information located in the middle of the context is more easily ignored. When rules contradict each other, the model’s behavior can also oscillate between adjacent turns.

    Maintenance cost. A prompt quietly hardens into a de facto product specification, but without the version history, review process, and test coverage that code enjoys. When something goes wrong, developers struggle to pinpoint which single rule caused the abnormal output.

    4. Dissecting the Memory Mechanism: The Most Worth-Borrowing Part of This Bloat

    From the description of the circulated version, the largest chunk of growth is a <memory_filesystem> memory spec whose level of detail approaches an internal product spec. Its opening framing is quite representative: memory is used to persist context across sessions; writing isn’t a temporary response to a given request but preparation in advance for needs that may arise in the future. Whether or not it’s genuine, a few engineering ideas behind this design are worth borrowing.

    1. Hierarchical loading: index stays resident, content is read on demand.

    Each turn injects only three kinds of information into the model:

    • <profile>: the body of a stable user-profile file;
    • <preferences>: the user’s preferences for how answers should be given;
    • <memory_listing>: the paths, summaries, aliases, and sources of the remaining memory files.

    The rest of the files are only listed as entries; their bodies aren’t injected. When the model judges that a file might be relevant, it reads it on demand through a read-only tool like memory_read().

    1. # Context kept resident every turn (illustrative)
    2. profile: name / role / long-term areas of responsibility ...
    3. preferences: prefers concise answers / include examples in answers ...
    4. memory_listing:
    5. - /areas/flutter-project.md Architecture and progress notes for the Flutter project
    6. - /people/partner.md Partner's basic info and preferences
    7. - /topics/food.md Dietary preferences and restrictions
    8. - ...

    This is essentially bringing the operating system’s demand paging into context engineering:

    • The stable user profile stays resident “in memory”;
    • The remaining memories sit on “disk”;
    • A page table (the index) maintains the mapping;
    • A page is swapped into the context only when the model actually needs it.

    2. Anti-hallucination constraint: verify first, then say “I don’t know.”

    The system prompt repeatedly stresses that before answering “I don’t have this information,” the model must first check the memory index and read potentially relevant files. For example, when a user asks “what architecture did we decide on for my Flutter project earlier,” even if that content isn’t in the resident context, the model must first read the corresponding project memory file rather than answering “not sure” simply because “it isn’t in front of me.”

    This rule reminds developers that when an agent says “I don’t know,” it’s sometimes not because the data is missing, but because the data didn’t enter the model’s view at the right moment. The boundaries of when to call retrieval tools should be explicitly specified in the prompt.

    3. Memory layering and write thresholds: stable information gets its own home.

    Memory is organized by different “half-lives,” and a core account file (like profile.md) is dedicated to stable identity information such as name, title, and long-term areas of responsibility. Its write criterion is “very likely still true three months from now.” This idea can be generalized into:

    Layer Typical content Write policy
    Stable Name, title, long-term areas of responsibility Written when info is explicit or confirmed by the user
    Preference Answer style, language, level of detail Written after consistent repeated expression; user can change anytime
    Situational Current project, task background, phased decisions Updated or archived as the task changes
    Sensitive Credentials, keys, health and financial info Not written by default, or saved only with explicit authorization

    Layered governance both suppresses memory bloat and reduces interference from irrelevant old information on the current task.

    4. Responsibility isolation: profile, preferences, and knowledge stored in separate chunks.

    The model uses different attention and instruction sets when handling the user profile, answer style, and business knowledge. Organizing the user profile, answer preferences, and business memory into separate chunks reduces cross-contamination and makes it easier to set update cycles and privacy levels per chunk.

    5. Privacy boundaries and conflict handling: concurrency and freshness both need explicit rules.

    The circulated version claims that different entry points — chat, coding, collaborative office work — may share the same memory files and may initiate writes simultaneously, so the spec requires privacy boundaries and conflict handling. This is essentially a shared-storage problem with concurrent access from multiple clients, and it needs several kinds of rules in engineering practice:

    • Consistency: use version numbers or timestamps, and agree on a merge strategy for conflicts;
    • Freshness priority: the user’s current instruction takes precedence over historical memory; when preferences conflict, the most recent explicit expression wins;
    • Privacy grading: sensitive information is kept only within a controlled scope;
    • Revocability: allow users to view and delete memories. Under personal-information-protection laws in many regions, “accessible, correctable, deletable” is gradually becoming a compliance requirement for user-facing agent applications.

    5. Governance Recommendations: Slimming Down and Versioning the System Prompt

    Rather than continuing to stack rules, tackle it systematically from five angles.

    1. Set a prompt budget.

    Give the system prompt a hard budget (say, 8k–12k tokens) and allocate quotas by module: role, safety, tools, product notes, and so on. Before a new rule ships, it must state which old rules it will replace or retire — one in, one out.

    2. Layer injection, put dynamic content last.

    Content type Injection strategy Example
    Global role and safety baseline Resident Role definition, safety and compliance constraints
    Current-task-relevant info Retrieved on demand Project memory, business knowledge base, historical tickets
    Session state Dynamically assembled Remaining steps, completed actions
    Time-sensitive change notes Moved out of the prompt Feature adjustments, service status, operational announcements

    Also, put volatile content such as time and user identity as close to the end of the prompt as possible. Only when the system prompt’s prefix is identical across all requests can it reliably hit the inference-side KV-cache prefix cache and reduce redundant computation.

    3. Internalize capabilities, externalize explanations.

    • Capability internalization: generic formatting requirements and stable interaction styles can be internalized through fine-tuning or preference optimization, without writing each one into the prompt;
    • Explanation externalization: user-facing explanatory content belongs in the product interface and help docs.

    4. Version prompts and drive with evaluation.

    Manage the prompt like code: put it under version control, record the reason for each change, the owner, and a rollback plan. At the same time, build an evaluation set covering instruction-following, factual accuracy, safety compliance, and style consistency, run A/B comparisons on every change, and let data decide whether rules go up or down — not a gut feeling about adding rules.

    5. Manage the system prompt and the retrieval knowledge base in separate layers.

    In a typical RAG architecture, knowledge usually lives in a vector database or object storage and is dynamically recalled per query. The prompt should keep only a small set of “general rules,” while user memory, product docs, and time-sensitive information live in the retrieval layer.

    Frameworks like RAGAS, for example, reflect this division in their evaluation dimensions:

    • The retrieval side focuses on context recall (whether relevant snippets are found) and context precision (how many returned snippets are actually relevant);
    • The generation side focuses on faithfulness (whether the answer is grounded in retrieved content) and answer relevance.

    So the retrieval layer is responsible for “providing the right material” and the prompt layer for “using the material well” — the two shouldn’t be conflated.

    6. Conclusion

    From roughly 120,000 to roughly 200,000 characters, the persistent bloat of the prompt isn’t so much the model “getting dumber” as engineering governance failing to keep pace with product iteration. The memory mechanism itself has plenty of clever touches: the index stays resident, content is read on demand, storage is layered, and verification precedes answering. But the way it was “stuffed wholesale into the prompt” is equally worth being wary of.

    For developers, the one truly reusable lesson is this: a system prompt should be a core asset shaped by budget constraints, layered design, and continuous evaluation — not a sticky note slapped on every time a problem appears.