maintaining-session-continuity

maintaining-session-continuity is a skill for Claude Code from betmoar/cc-reload-plugin. It costs 110 tokens per session (985 once invoked), scanned A, original, MIT.

Guidance for preserving a coding session across a context reset by saving a short digest and restoring it later. A context reset is when the conversation is cleared or compacted to make room for more work.

In plain words
What is it for?
Use it to decide when to snapshot work, arm an automatic reload, restore the saved digest, or tune the reload budget and mode.
Why use it?
It helps long tasks continue with their important decisions and progress intact without relying on the full earlier conversation.

Skill for Claude Code

Written for Claude Code: SessionStart hook event.

Part of the cc-reload plugin — 1 skill, 3 commands, 4 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/betmoar/cc-reload-plugin/maintaining-session-continuity
Any agent
npx skills add betmoar/cc-reload-plugin --skill maintaining-session-continuity
Clone the repo
git clone --depth 1 https://github.com/betmoar/cc-reload-plugin

Made for: Claude Code.

Or install cc-reload, the plugin that ships this one along with the rest of its 1 skill, 3 commands, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for maintaining-session-continuity

README.md
[![agentmods](https://agentmods.dev/badge/skills/betmoar/cc-reload-plugin/maintaining-session-continuity.svg)](https://agentmods.dev/skills/betmoar/cc-reload-plugin/maintaining-session-continuity)
Your own site
<a href="https://agentmods.dev/skills/betmoar/cc-reload-plugin/maintaining-session-continuity"><img src="https://agentmods.dev/badge/skills/betmoar/cc-reload-plugin/maintaining-session-continuity.svg" alt="Measured on agentmods" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 985 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00110 $0.00985
Opus 5 $0.00055 $0.00492
Sonnet 5 $0.00022 $0.00197
Haiku 4.5 $0.00011 $0.00098

Measured today against content hash 72881ea96794, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

maintaining-session-continuity scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/maintaining-session-continuity/SKILL.md · 70 lines

How it starts

The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Maintaining session continuity

cc-reload preserves an ordinary session's working thread across a context reset. It does not drive work (that's a loop — use cc-repete); it snapshots the thread to .reload/session.md before a reset and hands it back after.

The cycle: budget → snapshot → arm → rehydrate

Reset before rot, and long before auto-compaction — stay well under the window, never let auto-compact fire.

  1. Budget — the Stop hook watches occupancy; crossing context_budget_pct (default 45) escalates per context_budget_mode: notify (default) nudges in one status line, never blocks, re-nudges only every ~10 further points; snapshot forces the digest turn and arms. /reload-budget <pct> tunes it, /reload-budget notify|snapshot switches mode.
  2. Snapshot — a fresh digest is written (budget prompts it; /snapshot forces one).
  3. Arm.reload/pending means "rehydrate on the next reset". Only armed resets rehydrate, so a deliberate /clear meant to drop context isn't undone.
  4. Rehydrate — SessionStart injects the digest and consumes the marker. Automatic; /reload does it on demand.

Judgment that isn't obvious from the mechanism

Lower the budget than you think. Occupancy is a % of the main session model's window (1M on current large-context models). Effective context — where reasoning stays sharp — degrades well before the raw window fills, so 45% of 1M is generous: prefer ~30 or lower for reasoning-heavy or context-sensitive work. Non-Claude models routed through the cc-proxy plugin (e.g. glm-4.5 at 128K, glm-4.6/glm-5 at 200K) have real windows far smaller than 1M. SessionStart learns this live from cc-proxy itself (one loopback-only call to its /v1/models, fired once per session) when the proxy is reachable; model_window()'s curated table is the offline fallback. An id neither the proxy nor the table knows still falls back to the optimistic 1M assumption, so pin context_window explicitly if you're running a small-window proxy model and the proxy might not be up at session start.

Read the full file on GitHub · 70 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +1 lines 72881ea96794
  2. 5d ago First seen · 69 lines · 110 tokens per session scan A 471a0e8d7ada

Subscribe to this mod's changes

maintaining-session-continuity is a skill published in the GitHub repository betmoar/cc-reload-plugin (1 stars, last pushed yesterday), licensed MIT. It adds 110 tokens to every session and 985 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.