A Gemini chat that has run for days carries everything, from the plan and the dead ends to the decisions and the corrections. The longer it gets, the more the early decisions get buried, and starting over means explaining it all again. The fix is to compact it. Have Gemini write the chat down as one clean doc, save it to DocStash, and start fresh from that link.
Why long Gemini chats get worse
Every message rides on everything before it. As a chat grows, the decisions that matter sit next to drafts you abandoned, and the model has more to sort through on every turn.
- Buried decisions. What you settled early competes with everything you tried since.
- Stale context. Old drafts and corrections stay in the chat long after they stop being true.
- No clean handoff. Moving to a new chat means retelling the story by hand.
Compacting fixes all three, with one doc that holds only what still matters and a fresh chat that reads it.
Carry the context in one doc
DocStash is a home for the docs your AI makes. Have Gemini compact the chat into a doc and stash it, and you get one link that any new chat, or any other agent, can read, so nothing has to be explained twice.
Compact a Gemini chat with DocStash
- Connect Gemini to DocStash. In the Gemini web app, open Settings, then Connected Apps, add a custom app, and paste the DocStash MCP URL. The button below has the setup.
- Ask Gemini to compact it. Say "Compact this whole chat into a Markdown doc and stash it on DocStash." Gemini writes the decisions, the current plan and the open questions, then saves it.
- Start a fresh chat. Open a new Gemini chat, type
@, pick DocStash, and say "Continue from docstash.ai/<slug>." - Keep it current. When the new chat moves things forward, ask it to update the same doc. The link stays the same, and Activity keeps every version.
FAQ
What does compacting a Gemini chat mean?
Turning a long chat into one short doc that holds only what still matters, like the decisions, the current plan and the open questions. A new chat reads that doc instead of the whole history.
Can I continue the compacted chat in another agent?
Yes. The doc lives on DocStash, so Claude, ChatGPT or any other agent connected to DocStash can read the same link and pick up where Gemini left off.
Is the compacted doc private?
Yes. It stays private until you choose to publish it or share it with specific people.
Do I need anything besides Gemini?
Just DocStash, added once as a custom connected app in Gemini. It is free to start.
Compact your Gemini chats
Connect Gemini to DocStash and carry any chat forward from one link.
Get started