Handoff summaries that let a fresh session pick up the thread

Hit a session limit halfway through a project and the advice that circulates is simple: before starting over, ask the assistant to summarise the conversation so another model can understand it. It works surprisingly well, and it points to something more general. Every model session is a fresh start, and the only memory it has is what you put into its context.
The same idea explains other frustrations: uploading a large codebase only to have the assistant say a few turns later that it cannot see any code, or copying answers between two different assistants to make them talk to each other. This guide shows how to write handoff summaries that preserve what matters, how to budget context so material does not silently disappear, and how to automate a handoff with any OpenAI-compatible API, including this site's free endpoint.
Frequently asked questions
What is a context window?
The maximum amount of text, counted in tokens, that a model can consider at once: instructions, conversation history, attached files and its own answer. Anything beyond it is cut off or never sent, depending on the application.
Why does an assistant forget a file I uploaded earlier?
Applications manage long conversations in different ways. Some drop or truncate older content when the total grows too large, some summarise it, and some fail to include it because of a bug. From the model's side, material that is not in the current request does not exist.
What is a handoff summary?
A structured recap of a conversation written so that a different session or model can continue the work: goal, decisions made, current state, open questions and the exact artefacts needed, such as code or data samples.
How does a summary differ from copying the whole transcript?
A transcript is long, repetitive and full of abandoned ideas. A summary keeps only what still matters, so it fits comfortably into a new context and focuses the next model on the current state rather than on the path that led there.
Which is better for continuing coding work, a summary or the files themselves?
Both. The summary explains intent and decisions; the current versions of the relevant files provide exact detail. Never rely on a summary to reproduce code accurately.
Does the free endpoint remember previous conversations?
No. It is stateless: every request must contain the full context you want the model to use. That makes handoffs explicit, because nothing is remembered behind the scenes.
Can two different assistants talk to each other?
Only through something that passes messages between them, whether a person copying and pasting or a script calling both APIs. Each one sees only the text it receives, so the relay decides what each side knows.
Does a handoff work between very different models?
Usually, if the summary is explicit. Avoid shorthand that only the first model would understand, state constraints plainly and include examples of the desired output format.
Step by step
- Ask for a structured summary — Have the current model fill a template with goal, decisions, state, constraints, open questions, artefacts and next step.
- Review and correct it — Read the summary, fix anything presented as decided that was not, and remove private details.
- Collect the artefacts — Gather the current versions of files or data the next step needs, rather than relying on descriptions.
- Start the new session — Send the summary as context and the artefacts, then ask the new model to restate the goal and next step.
- Confirm what it sees — Ask the new model to list the files it received and a fact from each before continuing the work.
Why every session starts from zero
Language models do not remember between requests. What feels like memory in a chat app is the application re-sending earlier messages, sometimes plus a stored profile or summary. When you open a new chat, switch to another provider or reach a limit, that accumulated context is gone unless you carry it over yourself.
Seen this way, moving a conversation to another model is not a hack but the normal mechanism made visible. The quality of the continuation depends almost entirely on what you hand over. A thoughtful summary often produces a better continuation than the original long thread, because it removes noise that was distracting the model.
Application memory is not model memory
Features that remember preferences across chats are implemented by the app, not the model. They do not transfer to another provider.
Statelessness is a feature
A stateless API gives you full control over context. You decide exactly what the model knows on every call.
What a good handoff summary contains
Free-form summaries tend to keep the story and lose the specifics. A fixed structure prevents that. Ask the current model to fill in a template, then read it critically before using it; models sometimes smooth over unresolved disagreements or present tentative ideas as decisions.
Keep rejected ideas brief
Mention rejected approaches in a line so the next model does not suggest them again, but do not include the full discussion.
Write for a stranger
Ask for a summary that someone with no access to the original conversation could act on. That wording produces more explicit results.
- Goal: what the project or conversation is trying to achieve
- Decisions: what was settled and why, in one line each
- Current state: what works, what is half-done
- Constraints: requirements, preferences, things to avoid
- Open questions: what still needs deciding
- Artefacts: file names, key code snippets, data samples
- Next step: the very next thing to do

When big uploads silently disappear
A recurring complaint goes like this: someone uploads a large codebase to a chat, discusses a plan for several turns, and then the assistant states that it cannot see any code. Whether the cause is truncation, a summarisation step or a bug in the application, the effect is the same: the material is no longer in the model's context.
The defence is to budget context deliberately. Estimate the size of what you send, keep well below the model's limit to leave room for history and the answer, and send only the files relevant to the current step. For large projects, a short index of files with one-line descriptions plus the few files being changed works far better than everything at once.
Rough sizing
For English prose and code, a token is very roughly three to four characters. A 100 KB source tree may already exceed what a mid-sized context can hold alongside a conversation.
Ask it to confirm
After sending files, ask the model to list the files it can see and one fact from each. If it cannot, the material did not arrive.
Automating a handoff with an API
When you work through an API, a handoff is a few lines of code: send the transcript to a model with a summarisation prompt, then start the next session with that summary as the first message. The same code works whether the next session uses the same model, a different provider or a local one.
The example below uses this site's free endpoint for both steps. It is an independent service that is not affiliated with Anthropic, and its model, free-ai, is not Claude. Swap the base URL and model of the second client to continue on another backend.
Mind the source size
The transcript you summarise must itself fit into the summariser's context. free-ai accepts 32,000 tokens; for longer transcripts, summarise in chunks and then summarise the summaries.
from openai import OpenAI
free = OpenAI(base_url='https://api.anthropicapifreekey.com/v1', api_key='unused')
TEMPLATE = ('Summarise the conversation below for a different assistant that has never seen it. '
'Use these headings: Goal, Decisions, Current state, Constraints, Open questions, '
'Artefacts, Next step. Be specific and keep code snippets exact.')
def handoff(transcript: list) -> str:
text = '\n'.join(f"{m['role']}: {m['content']}" for m in transcript)
r = free.chat.completions.create(
model='free-ai', max_tokens=1500, temperature=0.2,
messages=[{'role': 'system', 'content': TEMPLATE},
{'role': 'user', 'content': text}])
return r.choices[0].message.content
old = [
{'role': 'user', 'content': 'I am building a CLI to rename photos by date.'},
{'role': 'assistant', 'content': 'Use EXIF DateTimeOriginal, fall back to file mtime.'},
{'role': 'user', 'content': 'Agreed. Format should be YYYY-MM-DD_HHMMSS.jpg.'},
]
summary = handoff(old)
new_session = [
{'role': 'system', 'content': 'Continue this project. Context from a previous session:\n' + summary},
{'role': 'user', 'content': 'Write the function that builds the new filename.'},
]
r = free.chat.completions.create(model='free-ai', max_tokens=800, messages=new_session)
print(r.choices[0].message.content)
Relaying between two different assistants
People enjoy setting up conversations between two different assistants, copying each reply into the other's chat. The results can be striking, and they also show clearly how context works: each assistant knows only what the relay gives it, including any framing about who it is talking to.
Through APIs, a relay is a loop that alternates between two clients, appending each reply to both histories with the roles swapped. Keep the number of turns limited, since each turn re-sends the growing history to both sides. Treat such experiments as entertainment or research into model behaviour rather than as evidence of what either model believes.
Frame it honestly
Tell each model that it is talking with another AI system. Hidden framing produces confusing results that are hard to interpret.
Cap the turns
Without a limit, relays can loop into repetitive agreement. Ten turns are usually enough to see how the exchange develops.
Continuing coding work in a new session
For code, a summary alone is never enough. The next session needs the current versions of the files being changed, not a description of them. A practical pattern is to keep a plan file in the repository with the goal, decisions and next steps, update it at the end of each session, and start each new session by sending that file plus the relevant source files.
This habit also protects you against outages and limits. If a session dies unexpectedly, the plan file is already there, and the next session, on the same model or a different one, can continue within minutes. The outage fallback guide uses the same checkpointing idea for automated jobs.
- Keep a short plan file in the repository
- Update it at the end of each session
- Send it with the files being changed
- Commit before handing over to a new session

Handing off between models of different strength
A common budget-saving pattern is to do exploration on a cheaper or free model and switch to a stronger one, such as Claude, for the hard part. The handoff summary is the bridge. Write it carefully, include constraints explicitly and attach the relevant files, and the stronger model can pick up where the cheaper one left off.
The reverse also works: use a strong model to make the key design decisions, then hand off routine implementation to a cheaper one with a detailed summary of those decisions. Either way, check the receiving model's output against the decisions list, since a weaker model may quietly deviate from constraints it did not fully understand. For deciding which tasks belong on which model, see the subscription versus API comparison.
Explicit beats implicit
A strong model infers unstated constraints; a weaker one often does not. The more different the models, the more explicit the summary should be.
Privacy when moving context
Moving a conversation to another provider means sending its contents to that provider. Before handing off, remove anything that should not travel: personal data, credentials, confidential business details. A summary is a good opportunity to do this, because you can instruct the summariser to replace such details with placeholders.
This site's endpoint keeps no conversation state, but each request leaves a technical log with time, IP, User-Agent, country, endpoint, status, latency, sizes and token counts. Use it for summaries of test projects and synthetic data. For managing how much context each request carries, see the article on token-heavy prompts.
Placeholders keep structure
Replacing a real customer name with a tag such as CUSTOMER_A keeps the logic of the discussion intact while removing the detail. The next model can still reason about the case, and you can map the placeholder back locally if needed.

Send a prototype prompt from the chat box on the home page: no key, no account and no card needed, just the usual per-IP limits.
Read also
- Does Extended Thinking Actually Make Claude's Answers Better?
- How to Estimate and Compare LLM API Costs Before You Commit
- What Is an MCP Server, and Does Your AI Prototype Really Need One?
- What Is Model Distillation, and Why Do Claims About It Spread?
- Open-Weight Model vs Claude Haiku: Which Is Better for App Prose?