From 15.8% to 60.2% exact answers on the same model (GLM-5.3-Flash, OfficeQA Pro V1): on top of the conversation history, the agent keeps two lists. The LongHarness method lets you get an answer from a huge folder of documents and see which sources it rests on. The first list is the evidence bank: short facts with a link to a file the agent read and a status of active / superseded / retracted. The second is the conclusion state: what the agent believes is true and which gaps are still missing. The trick: the agent doesn't search for "anything useful," only for what closes a recorded gap. The Claude Code and Codex harnesses on the same model scored 48.1% and 46.6%.
Practical prompting, backed by research
Techniques proven in research papers and rated for real-world use
The paradox: on GPT-5.4, a prose summary at handoff turned out worse than just the raw chat tail. The method lets you hand unfinished work to a new model or a fresh session so it doesn’t re-ask, doesn’t redo what’s done, and doesn’t drift back to a rejected option. Before the handoff, break the state into four fields: decided, current facts, done, remaining. In a polished, coherent text the line between “decided,” “tried,” and “done” disappears. A structured block holds that line. At equal text length it beat the chat tail for five of six models, and the summary on GPT-5.4.
A new agent session starts from zero and walks right back into the dead ends that cost two hours yesterday. STRATUM lets you carry experience across sessions: at the end of its work the agent writes the bug's cause and its failed attempts into a file next to the code, and the next session reads it before searching. The trick: a context window isn't memory, it's a single-run cache. In a small test (eight bugs), even a different, weaker model with these notes found the right file noticeably more often and spent noticeably fewer tokens.
From 96% to 8% accuracy in one move: the question slid from the end of the context to the middle. Same model (MiMo-v2-Flash), same math questions, same 64K-token context packed with solved example problems. Other models dropped less, and a few not at all. This explains why models so often answer "the wrong thing" when you work with big documents, and it hands you a direct fix. Put the task last in the context: it's the only position where the model reliably "sees" it right before generating an answer. If the structure doesn't allow that, repeat the question at the very end: at 8K tokens accuracy recovered to within ±4 points of the end-position level for all 9 models tested (at 64K, fully for only 2 of 4 models checked).
Early agreements with AI don't vanish — they sink. A plausible reason (the paper doesn't isolate one): new messages pull focus toward the latest text, and long sessions get compacted. "The structure should look like this," said 40 turns ago, can lose weight by the end. The paper's ProjectGuard protects early decisions in long coding sessions by automatically keeping a two-part project state: what was decided (semantic state) and what was built (structural state). Our manual version is a living "project brief". The brief goes at the start of every new request — and early decisions become "fresh" again, as if you'd written everything in one prompt. In the SLUMP study, ProjectGuard recovered ~90% of the lost semantic faithfulness on Claude Code without any changes to the model (on Codex there was little semantic loss to recover, but module reuse improved).
The finding: For strong models, giving files and search tools beat stuffing everything into the prompt — modestly. 9,649 experiments on SQL generation showed that frontier and frontier-lab models (Claude, GPT, Gemini) became +2.7 points more accurate on average when they looked up data in files via grep/read instead of reading it from the prompt. But for some open-source models, files hurt badly: Qwen lost 21.9 points and Llama Maverick 13.9. The trick: a navigable knowledge base instead of a monolithic context. You spread information across files (schema.yaml, rules.md, navigator.md) — the model finds the relevant chunk on its own and reads only that. It is meant to sidestep "lost in the middle" and keep the context small.
The paradox: Long-context models can hold hundreds of thousands of tokens but still lose the thread in multi-step reasoning. The problem isn't context size — it's the lack of structure. Load hundreds of documents, ask it to connect the facts, and the model sees the data but doesn't know how to join it up.
Thought Templates lets you structure multi-step reasoning through a library of reusable patterns. You separate "what to know" (documents) from "how to think" (templates). Instead of "sort it out yourself across 800 documents", you hand over ready patterns: "how to find the author", "how to link a person to a place", "how to match two events". The model picks the templates it needs and composes the reasoning chain itself (in the paper, gains over loading documents alone ranged from about 2 to 13 points depending on model and dataset).
Under a tight limit of 5–10% of the source, compressing with a named goal yields roughly twice as many correct answers as compressing “in general.” The method lets you shrink a long chat, document, or agent log so you can pick up the work tomorrow without losing the details you need. The trick: don't show the model the future questions, just tell it what you'll do with the text next. The goal works as a filter: the model decides on its own what to keep in detail and what to toss.
Finding: once the conversation fills half the context, the model loses up to 75–80% of its ability to produce long answers. No error. No warning. Just a blank screen — and you assume something broke. The researchers call it "output stalling." Two-step generation lets you get a complete multi-page document even at the end of a long analysis session — without restarting the chat. The trick: first ask for all the text without formatting, then add the formatting in a separate request. Formatting itself costs tokens: JSON markup adds +15% to the volume, HTML +20%, structured reports up to +40%. When the model tries to write a nicely formatted document with an already full context, it spends its shrunken budget on brackets and tags instead of content. Splitting removes that load from the first step — and saves 48–72% of tokens.
At step 15 the agent worked out on its own how the data is structured. Then old turns fell out of the window, and the inference was gone for good. The method lets you keep agent-inferred facts after the context is trimmed, with a single sentence in the system prompt. The trick: the model will re-read a file on its own, but something inferred or shown only once has nothing to be re-read from. So you need to make such facts repeat in every reply. Then they ride along with the latest turns. On a test with such a fact, success rose from 7% to 28%.
71% success with the full history versus 91.6% with a trimmed one — while using 2.7 times fewer tokens. The longer the chat, the worse the model performs, because old messages compete with new ones for attention on equal terms, creating noise instead of value. The Compact Context method lets you run long working sessions without the answers degrading. The trick: every 10-15 messages you take a snapshot — a compressed summary of the older history — and open a new chat with just the summary and the last 4-6 exchanges. The model stops getting tangled in rejected options and works more accurately, faster and cheaper all at once.
The finding: when you ask an LLM to "shorten" something, it decides on its own what matters. And gets it wrong. The number 4.8% next to a long paragraph seems insignificant to it — out it goes. "30 calendar days" becomes "30 days" — the point is lost. "X because Y" becomes "X. Y." — the link is broken. Telegraph English (TE) reframes the task: instead of "decide what's important" — "re-encode by the rules." The method introduces ~40 symbols (→ causation, ∴ conclusion, ↑ increase) and a strict grammar: one line — one statement, numbers always with units, no pronouns without the entity's name — the model doesn't guess what's important, it keeps everything in compact form. Result: 50% fewer tokens, 99.1% accuracy on key facts.
Finding: LLMs lose up to 50% accuracy on structured tasks because of "structural blindness": the model gets flat text and has to guess the relationships between parts on its own. On optimized code, accuracy drops from 74% to 47%. The HELIOS method lets you work with complex multi-page documents without losing critical links between sections. The trick: an explicit relationship map across four levels: context → structure ("A leads to B and C") → element details → source material. Accuracy rose from 45-71% to 94-96%.
DeepNews Framework: High-Entropy Context Loading + Adversarial Prompting for Deep Long-Form Writing
86A pattern was found: LLMs produce "correct nonsense" in long analytical texts. The grammar is fine, the style is even, but inside there are hidden hallucinations and zero depth. The cause: RLHF trains the model to produce a "safe, averaged answer", which isn't enough for complex long-form text. The DeepNews Framework lets you generate deep analysis and investigations (3,000+ words) with 85% accuracy instead of 40%. The trick: load 10x more context than the length of the final text. At 30,000+ characters of input, the model physically shifts from "open-ended composition" to "fact compression" — triangulation becomes possible (checking a single claim against several sources). On top of that, adversarial constraints break statistical smoothness: short and long sentences mixed together, no explicit connectors like "therefore", jargon mixed with conversational language.
The paradox: a model retrieves information with 100% accuracy yet loses up to 85% of its reasoning accuracy. The problem isn't search quality — it's that the context is too long. The Retrieve-then-Reason method lets you solve tasks over long documents without losing accuracy — it turns a long-context task into a short-context one. Division of labor: first extract the evidence in a separate request, then reason over a short context. Llama-3.1-8B finds the conditions in 970 out of 1000 problems but drops 24.2% in solving accuracy — the method wins those points back.
The agent loses not only the files it never found. It loses what it already read: a number flashed in the terminal output at step 5, by step 40 new data had pushed it out, and it never made it into the report. Roughly one in five numeric values that the agent saw and that the report needed never reached the final result. RunningTab lets you build a report from dozens of files over many steps without losing what you found. The trick: the ledger is kept not by the model but by the environment around it. The environment itself writes the read log (verbatim chunks with a pointer to the file) and the list of files that merely flashed by. The model only states the requirements and closes them. An item can be closed only with a pointer to a real quote or with an honest reason why the data is not there.
Ask the model to “think step by step” and the result gets worse. CoT doesn’t help when the problem isn’t logic: 300 comma-separated numbers in a row are indistinguishable, and attention just spreads across the whole series. SepSeq lets you work precisely with long number series — finding maximums, growth streaks, anomalies — with zero fine-tuning. The trick: break the numbers into lines of 5–10 before you even send the prompt — the attention mechanism latches onto the breaks like anchors, and each block gets processed accurately. +35% accuracy on average, and it even uses fewer tokens than unformatted data.
A model can fix a wrong answer into a right one 10 times more often than it breaks a right one, but only if the question isn't hanging there from the start of the conversation. The Q-Last method gets you balanced answers to complex, layered tasks simply by moving the question to the end. The trick: structure beats instructions. Writing "don't answer too early" barely helps, but physically putting the question last works. Models give more than 55% of their answers in multi-turn dialogues within the first two messages, while context is still incomplete: they're not dumb, they're in a hurry.
The paradox: the harder you push the model to use personal context, the more often people choose the answer without memory. The method keeps ChatGPT's memory from wrecking a general question (a lecture on subscriptions turns into a breakdown of Amazon listings because that's where you sell). Instead of "personalize more," you set a strict criterion: memory kicks in only if it noticeably improves the answer to the current question. The model gets a checkable condition instead of a fuzzy "be relevant," and the skew toward the personal goes away. The effect is small, but the answer stops getting worse.
Get the week’s best papers by email
One email on Sundays with the highest-rated new techniques. Unsubscribe with one click.
Prefer a browser notification when a new technique is published?