clear-resume

Changelog

Releases

Each release in CHANGELOG.md, newest first.

  1. 0.4.0

    • /relay for one window: it overrides the relay option for the window you type it in and starts its count over.
    • A countdown of the clears left. The status line shows it while the relay is on.
    • The relay works from the VS Code chat panel.
    • VS Code extension 0.4.0: a context pie in the status bar, a relay item showing this window's clears used against its budget, and a Worktrees view.
  2. 0.3.2

    • The relay stops when work stalls: it stops after two continued sessions in a row make no new commit, and says so.
    • Outside a git repo only the budget applies.
    • With the relay on, the context nudge tells Claude to end without a handover when the task is finished.
  3. 0.3.1

    • The relay: clear and continue with no keypress.
    • After Claude saves a handover, clear-resume runs /clear when the turn ends and submits the prompt that continues from it.
    • Off by default. Needs Claude Code 2.1.275 or later; an older build ignores it.
  4. 0.3.0

    • Headless runs continue themselves: node plugin/scripts/run.mjs runs claude -p in segments.
    • It needs caps (--max-segments, --total-budget-usd, and the command's own --max-turns and --max-budget-usd).
    • It stops the chain when two continued segments in a row make no new commit.
  5. 0.2.1

    • The nudge has settings in Claude Code.
    • Turn it on and set its size with /plugin configure clear-resume@clear-resume, or in /config in Claude Code 2.1.269 or later.
  6. 0.2.0

    • Write one short handover on purpose, /clear, and that window's fresh session picks it up.
    • Other open windows on the same project only list it.
    • Known limitation: the loop runs on /clear. A session started with --resume or /resume loads nothing.

Source: the CHANGELOG.

Build log

Each site: commit since site-v5-base, oldest first: short sha, AWST time and subject.

  1. 6a0af29 5 Oct 07:36 site: 1. Facts ledger (FACTS.md) from README, CHANGELOG, STATUS and the measured-by-hand block
  2. 8fb05bb 5 Oct 07:36 site: 2. Scaffold: tokens, fonts, header nav, five section shells, footer
  3. 76764d2 5 Oct 07:37 site: 3. Hero: H1, subline, marketplace add and relay install with copy buttons
  4. d5a30ee 5 Oct 07:38 site: 4. Media box: 16:9 video with pause/play, reduced motion, fallback on video or poster error
  5. 6d72c0c 5 Oct 07:40 site: 5. Fallback feed: looping terminal of the relay loop (context climbs, nudge, save, /clear, load, carry on), reduced motion shows the final frame
  6. bd30db4 5 Oct 07:41 site: 6. What it does: one terminal transcript of save, /clear, carry on from the README's output
  7. 20fb1e8 5 Oct 07:43 site: 7. Build stats: buildstats.mjs, proof counter strip slots, runstats.js and FACTS.md markers, fixture output committed
  8. 188f399 5 Oct 07:47 site: 8. The relay: what it does, off by default, 2.1.275, sawtooth chart from crRun with text alternative, source line and sample-data label
  9. 5992883 5 Oct 07:48 site: 9. Proof, part 2: strip source line and sample label switched by crRun.source, then the 191-load 2026-10-03 measurement with median labels and its PR #57 source line
  10. a08ccc4 5 Oct 07:50 site: 10. Install: relay one-liner first (after marketplace add), manual way as fallback, VS Code extension line, every command with a copy button, then the three-question FAQ
  11. 061753b 5 Oct 07:52 site: 11. Footer colophon: one line of buildstats slots (sessions, automatic clears, site: commits, first and last AWST time, date) and a Build log link, hidden while crRun.source is fixture
  12. 3e43881 5 Oct 07:56 site: 12. Fact check: factcheck.mjs checks pages against FACTS.md and FACTS.md against its sources; index.html passes
  13. d940972 5 Oct 07:59 site: 13. Accessibility: check.mjs (token contrast pairs, no hue, focus ring, reduced motion, names, no external requests); index.html passes
  14. 58d8f1b 5 Oct 08:04 site: 14. Copy audit: copycheck.mjs (dashes, ellipsis, not just, not X but Y, grading words by numbers, 250-word cap); index.html at 248 words
  15. 924c932 5 Oct 08:06 site: 15. 390 pass: no overflow, 44 px brand link, nav separator hidden at 390, date in the measurement h3 kept on one line; chart read at 390
  16. 36f980d 5 Oct 08:07 site: 16. Model: model.js (global crModel, no DOM; STEP 5000, HANDOVER 780, SUMMARY 8000, COMPACT_AT 0.9; run() returns clear and base walks) and simtest.mjs, 11 cases ok
  17. df32b84 5 Oct 08:09 site: 17. how-it-works.html: the handover (what it holds, where it is kept, when it loads, --resume as a Known limitation, which handover loads with every README.md:151-170 case plus CHANGELOG.md:84, called the common cases); F110-F126
  18. c95c3ba 5 Oct 08:11 site: 18. Loop diagram: two hand-written SVGs (wide row, narrow column at 390), opt-in nodes say with the nudge on / with the relay on, ordered-list text alternative; F130-F148. Node fill none (check.mjs allows only text tokens for fill)
  19. 4b736ae 5 Oct 08:14 site: 19. Worked example on how-it-works.html: the README's Cart totals rounding handover (save and load output, the copy's text from README.md:175 alt), @-mention line beside ~/.clear-resume/loaded/ and naming it; nav link; F150-F158. Saved/Loaded times omitted: the source gives no values
  20. 8dd5bdf 5 Oct 08:15 site: 20. Comparison on how-it-works.html: /compact, --resume, /clear and clear-resume, every cell quoted from README.md:23-28; table scrolls inside its own box at 390; F159-F172. No auto-compaction row: the sources name it (README.md:58) but give no keeps/loses for it
  21. 5a4b189 5 Oct 08:21 site: 21 (part 1). Model on how-it-works.html: #model section, nav link, window radios, start/clear-at/task sliders, chart of both runs, table, aria-live summary, How the model works details; F173-F200. Mobile model view and 200k/85k screenshot still to read; box not ticked
  22. f6ed9a3 5 Oct 08:24 site: 21 (done). Model: table fits 390 (no min-width under 600px, smaller type), screenshots read at 1M/21k and 200k/85k (both runs 23 resets on 200k, lines overlap: model output as is); checks pass; box ticked
  23. 12d9b78 5 Oct 08:25 site: 22. Start size on how-it-works.html (#start): stock 21,200 with its full measurement conditions and the author's 77k to 99k, each row with its own source line; nav link; F201-F205. Repeat-caveat (58,978) left out: it is advice for someone repeating the probe
  24. 8fa1a17 5 Oct 08:28 site: 23. Settings on how-it-works.html (#settings): Nudge to save a handover (auto_nudge), Nudge at, relay, each with default, what it does and its own source line; README.md:113 three-options wording; where to set them with per-option versions (2.1.269 nudge in /config, 2.1.275 relay); env vars; sync and web mode as opt-in with no setting names; F206-F223. No key name for Nudge at: the sources give none
  25. 731632b 5 Oct 08:32 site: 24. changelog.html releases: lead, 0.3.2 to 0.2.0 newest first, 1-3 lines each, 0.3.0 keeps its runner caps, 0.2.0 Known limitation labelled; F224-F244. factcheck's build-log row check fails until item 25 adds the buildlog markers
  26. fee5d6e 5 Oct 08:35 site: 25. changelog.html build log: buildlog.mjs writes every site: commit since site-v5-base (oldest first, short sha, AWST day and time, subject) between buildlog markers; tense-switched totals line; F245-F250. buildstats.mjs line 6 now names the stats: commit (appended to the line so cited line numbers hold). copycheck skips quoted git subjects for phrase rules (item 14's subject names the banned phrase); dash/ellipsis still checked file-wide. Log lags HEAD by one commit until buildlog reruns
  27. da3b63a 5 Oct 08:38 site: 26. Print stylesheet: @media print flips the tokens to a white ground, hides nav, copy and media buttons and the model controls, opens details, prints the feed's lines statically, caps the chart height, keeps terminals, rows and strips from splitting, prints the GitHub URL in the footer. All three pages printed to PDF (shot.sh print) and read. buildlog rerun (26 rows). The relay chart still starts a new page in index print: left as is
  28. 7e5b50b 5 Oct 08:42 site: 27 (hero). Self-review of index.html starts: site/REVIEW.md lists 3 fixes per section. Hero: H1 balanced to two lines (text-wrap: balance), fallback feed font clamped 12px to 18px (was 10px at 390, 20px at 1440), install commands break after URL slashes (<wbr>) and keep clear-resume@clear-resume and each --config pair whole (overflow-wrap: break-word). buildlog rerun.
  29. ae05f8f 5 Oct 08:43 site: 27 (what it does). Transcript lines are blocks (new .term.lines class, so how-it-works' newline transcript is untouched) with a 2ch hanging indent, so a wrapped line at 390 no longer reads as new output; the loaded/ path breaks after slashes (<wbr>); steps are split by a 12px gap in place of a blank line. buildlog rerun.
  30. 0aa620d 5 Oct 08:44 site: 27 (relay). Sawtooth x axis rounds up to the next 5 minutes (55, was 60 for a 52.8-minute run); "Off by default." is bold; the "context tokens" axis title starts at the left edge over the tick labels (also on the how-it-works model chart, same code). buildlog rerun.
  31. 54baa97 5 Oct 08:46 site: 27 (proof). At 390 an odd last strip figure spans both columns (tokens sent no longer sits beside an empty cell); app.js marks an n/a slot (.na, appended at the end of app.js so FACTS.md's cited line numbers hold) and it shows in text-2 at weight 400; the 2026-10-03 measurement h3 (F35) gets a hairline and 40px above it. buildlog rerun.
  32. 0f38154 5 Oct 08:47 site: 27 (install). Self-review of index.html done, item 27 ticked. Install: step labels use the text colour; the marketplace and install commands get the hero markup (<wbr> after URL slashes, clear-resume@clear-resume and each --config pair whole), also in the manual install line; the FAQ +/- marker brightens to the text colour on hover. buildlog rerun.
  33. 3e5dadb 5 Oct 08:50 site: 28 (handover). Self-review of how-it-works.html starts: REVIEW.md gets its section. Handover: paths and commands are <code> in mono and the text colour (loaded/ path breaks after its slash); text-wrap: pretty on prose and case rows ends lone last words; 'These are the common cases.' moves from the ghost source style to prose size in text-2. buildlog rerun.
  34. 086de2b 5 Oct 08:52 site: 28 (loop). Loop diagram: node text centred vertically in every node (wide and narrow SVG); in the text alternative /clear-resume:handover and /clear are <code> in the text colour, kept whole; the list measure is 90ch so each step is one line at 1440, text-wrap: pretty at 390. buildlog rerun.
  35. 4a1ac55 5 Oct 08:55 site: 28 (worked example). Intro /clear and the loaded/ path in the note are <code> in the text colour; paths break after slashes (<wbr>), ~/.clear-resume/ kept whole in the transcript, file name uses overflow-wrap: break-word (was break-all); text-wrap: pretty on the note and the example's terminal text. buildlog rerun.
  36. 41031a0 5 Oct 08:56 site: 28 (compared). Under 600 px the comparison table stacks each row with the column name over each cell (was a sideways scroll that cut off two columns at 390); cells align on the baseline; the h2's commands are <code> in mono. buildlog rerun.
  37. abbb6eb 5 Oct 08:57 site: 28 (model). Row stacking scoped to .c-stack so the results table keeps its table layout at 390 (the compared fix had caught it); clear-resume kept whole in the summary; slider groups 20 px apart at narrow widths; the How the model works marker brightens on hover. buildlog rerun.
  38. 7319581 5 Oct 08:59 site: 28 (start size). Conditions line: overflow-wrap break-word (was anywhere), the date, version, model and 21,200 + kept whole; the names in it are <code> in the text colour; rows align on the first baseline. buildlog rerun.
  39. 8d7455d 5 Oct 08:59 site: 28 (settings). clear-resume@clear-resume kept whole in both commands (with --config in the install one); /clear in the relay row is <code>; key names in the text colour. buildlog rerun.
  40. 78c2b95 5 Oct 09:02 site: 28 (releases). Self-review of changelog.html starts: REVIEW.md gets its section. Releases: clear-resume kept whole in the 0.3.1 line (was clear- / resume at 390), lines use overflow-wrap break-word (was anywhere) and text-wrap: pretty; above 600 px the version column is 120 px (was the shared 220 px) on the first baseline. buildlog rerun.
  41. 38b3456 5 Oct 09:04 site: 28 (build log). Self-review of changelog.html done, item 28 ticked. Build log: buildlog.mjs wraps each subject's leading site: N label in .bl-item (text colour) so the item is easy to find; subjects capped at 100ch with overflow-wrap break-word (was anywhere); site:, site-v5-base, buildstats.mjs and stats: in the lead and totals line are <code> in the text colour. buildlog rerun.
  42. f36328d 5 Oct 09:05 site: 29. copycheck.mjs now defaults to all three pages like check.mjs and factcheck.mjs (250-word cap stays index-only); all three checks pass on index, how-it-works and changelog with no fixes needed. buildlog rerun.

Source: git log, written by buildlog.mjs.

The totals will come from buildstats.mjs, run on this build's transcripts after the run, and be committed as stats:.

The totals came from buildstats.mjs, run on this build's transcripts after the run, and were committed as stats:.