auto-handoff (promptadvisers)
Reviewed
at commit 36f76db
Writes a cold-start handoff to handoff/ before the context fills up or compacts, and offers to resume from it in the next session.
0 upvotes
Log in to upvote or save- Made by
- Prompt Advisers
- Pinned commit
-
36f76db2eaace816c651a0c1ad3e6cb46f770432 - What we checked
-
When the context window reaches 85% (configurable) or before a compaction, asks Claude on your own account to write a handoff summary of the session and saves it under handoff/ in your project. It adds handoff/ to your .gitignore, and the next session offers a /autohandoff resume command. It makes no network calls of its own.
Review details
Static review of the source at the pinned commit; not run. Registers session.start (registers /autohandoff, stores cwd, reads handoff/LATEST.md to offer a resume), turn.complete (clears the offer), session.measure (after the context passes the threshold, forks the conversation once in the background with $.model.fork and a fixed prompt that tells the model to leave out secrets), session.compact (does the same before a non-precompute compaction of the main conversation, so compaction waits for the fork; skipped when disabled, busy or a handoff already covers the context), command.run for autohandoff (status, on, off, threshold, now, resume) and an AbovePrompt ui.render. Files written: handoff/handoff-<timestamp>.md, handoff/LATEST.md (overwritten each time), handoff/ACTIVE_PROJECT.md (only when missing or containing a dot), and .gitignore at the project root (appends handoff/ when absent, or creates it in a git repo). The resume pointer is checked for slashes and a .md suffix before use. Settings are kept with $.store; /autohandoff resume submits a fixed prompt through $.prompt.submit. Failures are logged and shown as a toast, and never block the session.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: no
- Blocks or changes tool calls: no
- Reads or writes files: yes
- Runs programs on your machine: no
- Calls the model (uses tokens): yes
- Sends data over the network: no
- Stores data: yes
- Shows something on screen: yes
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/auto-handoff-promptadvisers/)