{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "peonist-ai-halogen-flash-server--keep-a-long-agent-session-warm-across-restarts",
 "repo": "peonist-ai/halogen-flash-server",
 "repo_url": "https://github.com/peonist-ai/halogen-flash-server",
 "repo_slug": "peonist-ai-halogen-flash-server",
 "title": "Resume a long agent session after a server restart",
 "page_title": "How to resume a long agent session after a server restart with Halogen Flash Server",
 "summary": "Use the on-disk prompt cache so a deep agent session picks up without a cold start.",
 "who": "A developer running a long coding-agent session with tens of thousands of tokens of context who needs to restart the server without losing that progress.",
 "problem": "A cold first turn on a long prompt is slow, and a restart normally throws away the conversation state the agent built up.",
 "outcome": "The conversation resumes from the disk prompt cache after a restart instead of reprocessing the whole prompt.",
 "steps": [
  "Read docs/configuration.md#prompt-cache-on-disk-resume-a-conversation-after-a-restart to learn how the disk cache is enabled.",
  "Read docs/sessions.md to learn how to keep, fork, or join a session.",
  "Start the server with the disk cache option set as described in docs/configuration.md, using the run command from the Quickstart.",
  "Send a long multi-turn session through the API and let the cache fill.",
  "Restart the server and send the next turn of the same session, then compare the first-token time with the cold first turn."
 ],
 "agent_prompt": "Using the repo peonist-ai/halogen-flash-server, enable the on-disk prompt cache as described in docs/configuration.md and resume <target session> after a server restart. Expected output: the resumed session answers its next turn without reprocessing the full prompt. Verify by checking the time to first token against the first cold turn.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "The README gives the cold first turn for a 34,000-token prompt as 21 s, so resume timing will depend on your own hardware and cache state.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "shell",
 "requirements": [
  "An AMD Strix Halo machine (the README measures on a Ryzen AI Max+ 395 with 128 GB)",
  "Podman installed, with access to /dev/kfd and /dev/dri",
  "Access to the BIOS to set the UMA frame buffer carve-out to its minimum",
  "Disk space for the model weights, which the container downloads on first run",
  "Network access to ghcr.io and the model download source"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/peonist-ai-halogen-flash-server/keep-a-long-agent-session-warm-across-restarts/",
 "md": "https://dedupedai.com/use-cases/peonist-ai-halogen-flash-server/keep-a-long-agent-session-warm-across-restarts/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/peonist-ai-halogen-flash-server--keep-a-long-agent-session-warm-across-restarts.json",
 "api_version": "v1"
}
