clear-resume

Clear the chat. Keep the work.

A free, open-source Claude Code plugin.

claude plugin marketplace add https://github.com/m4cd4r4/clear-resume
claude plugin install clear-resume@clear-resume --config auto_nudge=true --config relay=10

What it does

# the README's example, in a widget-shop repo/clear-resume:handoverSaved handover "Cart totals rounding" (id 31c9af7).After /clear, the next session in ~/code/widget-shop loads it automatically./clearclear-resume: loaded handover "Cart totals rounding" (saved just now).A copy to read or share: ~/.clear-resume/loaded/widget-shop-cart-totals-rounding-31c9af7.mdgo# Claude carries on from the handover.

The relay

Past a size you choose, Claude saves a handover and the plugin runs /clear when the turn ends.

Off by default. Needs Claude Code 2.1.275 or later; works in a terminal and in the VS Code chat panel.

plugin default, 180k (this run's setting is not recorded)

0 sessions. Peaks: 0 to 0 tokens.

Source: this site's build transcripts (buildstats.mjs)

Source: transcripts of an earlier relay run (site/source/fixture), buildstats.mjs

Sample data from an earlier run. Replaced after this build.

ProofSample data

This site's buildSample: an earlier relay run

15 sessions

14 automatic clears

42 site: commits

94.1 minutes

91.0M tokens sent

Source: this site's build transcripts and git log (buildstats.mjs)

Source: transcripts of an earlier relay run (site/source/fixture), buildstats.mjs

Sample data from an earlier run. Replaced after this build.

Context per /clear, a separate 2026-10-03 run

191 /clear loads

195k median before

97k median after

101k median drop

Source: STATUS.md. As of 2026-10-05, scripts/measure.mjs is on the open PR #57, not in the released plugin.

Install

Relay on, in your terminal:

claude plugin marketplace add https://github.com/m4cd4r4/clear-resume
claude plugin install clear-resume@clear-resume --config auto_nudge=true --config relay=10

Manual (the default): install, then /clear-resume:handover, /clear, go.

claude plugin marketplace add https://github.com/m4cd4r4/clear-resume
claude plugin install clear-resume@clear-resume

Optional: VS Code extension; needs the plugin.

code --install-extension macdara.clear-resume

Marketplace, Open VSX, releases.

Does anything leave my machine?

Handovers are plain text files on your disk, in ~/.clear-resume. Nothing is sent anywhere unless you turn on sync (to your own private git remote) or web mode (for Claude Code on the web). Keep secrets out of them.

What does it need?

Node 18 or later and git. On Windows, Claude Code runs plugin hooks through Git Bash, which comes with Git for Windows.

The relay needs Claude Code 2.1.275 or later and works in a terminal and in the VS Code chat panel.

When does the relay stop?

When it uses up its clears for that Claude Code window, or when two continued sessions in a row make no new commit (outside a git repo, only the count applies). It says why. When the task is finished, Claude ends without a handover, so there is nothing to continue.

It stays out of the way for a subagent's save, a failed save, an interrupted turn and headless runs.