The most invisible source of prompt failure in long sessions is not bad instructions — it’s amnesia. Every time you send a new prompt, the model processes it against whatever fits in its context window. In short sessions that means everything. In longer ones, it means the model quietly forgets that you already chose a tech stack, already ruled out an approach that failed, or already locked an architectural decision three messages ago. The result is an output that contradicts prior decisions, re-suggests something you already rejected, or ignores constraints that were established earlier. Memory Blocks solve this by explicitly packaging the session’s critical decisions and prepending them to every new prompt that depends on them.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nidhinjs/prompt-master/llms.txt
Use this file to discover all available pages before exploring further.
What a Memory Block Contains
A Memory Block is a structured prose section that captures the four categories of information most likely to drift out of the model’s active attention as a session grows: established stack and tool decisions, locked architecture choices, active constraints, and things that were already tried and failed.The Memory Block is written in plain markdown. It does not use XML tags, special delimiters, or tool-specific syntax. This keeps it portable across target tools and easy to scan.
Where to Place It
The Memory Block must appear in the first 30% of the prompt. Not near the top — in the first 30%, specifically. This placement rule exists because of how attention works in transformer-based models: content at the beginning and end of a prompt receives reliably stronger attention than content in the middle. A Memory Block buried halfway through a long prompt will be read and then functionally ignored when the model reaches the actual instruction block. The recommended structure is:Why It Matters: Attention Decay
Transformer models do not read prompts the way humans read documents — sequentially, with equal attention throughout. Attention is not uniformly distributed. The beginning and end of a context window receive disproportionately strong weight. The middle, especially in long prompts, is where information goes to be technically processed but practically forgotten. This is why re-prompts happen. You tell the model your stack in message two. By message seven, the model generates something that contradicts it. You did not fail to communicate — the model’s attention decayed. The Memory Block counters this by taking the most important settled facts out of the linear history and re-anchoring them at the high-attention zone of every new prompt that builds on them.Before and After: The Same Prompt, With and Without a Memory Block
The following example shows a mid-session prompt for a software development task. The session has already established a tech stack, rejected one approach, and locked an architectural pattern. Without a Memory Block, all of that prior work is invisible to the model.Without a Memory Block
With a Memory Block
[entity, id] key pattern, calling the GraphQL client, with no REST drift and no useEffect regression. First attempt, no corrections needed.
When Prompt Master Adds a Memory Block Automatically
Prompt Master monitors the session for decisions worth preserving. When the intent extraction step detects that the current prompt is part of a session with meaningful history — prior tool choices, locked patterns, rejected approaches — it automatically populates a Memory Block from that history and prepends it to the new prompt. You do not need to manually track what has been decided. Prompt Master reads the session context dimension and constructs the block from what it finds. If the session is new or the task is self-contained, no Memory Block is added — blank Memory Blocks add tokens without signal.Memory Blocks are not permanent — they are constructed fresh for each prompt that needs them. If a decision from turn 2 is no longer relevant by turn 15, it will not appear in the Memory Block for turn 15. The block carries forward only what is still in scope.