ClaudeCodeMod

All shelves / Mods / Workflow

mod-wrap-up

By v-amorim

mod-wrap-up is a Claude Code workflow mod by v-amorim.

Draws a Wrap up pill that hands off to a fresh session or fills /compact with what you keep, and can hand off by itself at 400K tokens or 65% of the window.

Draws

Install

The marketplace name is claude-mods.

In Claude Code
/plugin marketplace add v-amorim/moonlight-claude-mods
/plugin install mod-wrap-up@claude-mods
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
2.1.0
License
MIT
Repo stars
5
Last change
2026-11-05

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Runs a command when you press

Needs Claude Code 2.1.287 or newer; the author tested on Windows Terminal and macOS iTerm2. /plugin install asks where to install the mod: keep Install for you (user scope), press Enter, press Esc to leave the plugin screen, then run /reload-plugins. Auto-update is off for unofficial marketplaces; turn it on under /plugin, Marketplaces, claude-mods. The README warns that mods are not sandboxed and run with your permissions. Opens from the Wrap up pill. Automatic handoff and Auto handoff at the mark are off by default; with Automatic handoff off, the mod makes no background model call. With them on, Sonnet at low effort updates a ledger after each turn, and a 5 second countdown card appears between turns at 400K tokens or 65% of the window, whichever comes first. Opening the card reads threads with Haiku. With Hand off to a new window on and Windows Terminal, a handoff opens the next session in a new window instead of clearing this one. The ledger is one JSON file per chain under ~/.claude/mods-data/mod-wrap-up/chains/, and the mod never prunes these files. The command hooks need a POSIX shell, Git Bash on Windows; without one they write nothing and the mod falls back to what it can find on its own.

The marketplace, claude-mods, holds 13 mods in the Moonlight look, and other repositories use that name too, so add v-amorim/moonlight-claude-mods. Carrying the work from one session to the next is why this page files it under workflow. handoff-compact replaces compaction with a structured handoff that a fork of the session writes, and saves that handoff as a file. ctx-handoff keeps the cache warm while you are away, turns what you teach Claude into project notes, and can hand a full session to a fresh conversation. This one adds a Wrap up pill: Handoff or Compact opens a card with the session's threads and fixed items such as files in play and open tasks, and you keep or drop each line. Compact writes the /compact instructions as you click and Fill prompt puts them in the prompt for you to send. Handoff summarizes through a hidden fork, runs /clear, and fills the handoff into the fresh prompt. Session names are proposed for the session you leave and the fresh one.

Demo

The Features section of the author's README: a click on Wrap up offers Handoff or Compact, a card of the session's threads read by Haiku with a keep or drop click per line, the /compact instructions filled into the prompt, the handoff through a hidden fork and /clear, a new window handoff, and the proposed session names.
Screenshot of the author's GitHub page.

What it hooks into

  • ui.toastA Claude Code event
  • session.startWhen a session starts
  • command.runWhen you run its slash command/mod-wrap-up
  • session.endWhen a session ends
  • turn.startWhen Claude starts a turn
  • turn.completeWhen a turn ends
  • prompt.submitWhen you send a prompt
  • ui.closeWhen its pane closes
  • state.setA Claude Code event
  • ui.renderDraws into the sessionAbovePromptPane
  • ui.messageAdds a message to the session

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 1

  • /mod-wrap-up

Hooks 2

  • SessionStartexec 2>/dev/null; IN=$(cat); D="${CLAUDE_CONFIG_DIR:-$HOME/.claude}/mods-data/mod-wrap-up/bridge"; S=$(printf '%s' "$IN" | sed -n 's/.*"session_id":"\([^"]*\)".*/\1/p'); [ -n "$S" ] && mkdir -p "$D" && printf '%s\n' "$IN" >> "$D/$S.jsonl" && find "$D" -name '*.jsonl' -type f -mtime +7 -exec rm -f {} + >/dev/null 2>&1; exit 0
  • SessionEndexec 2>/dev/null; IN=$(cat); D="${CLAUDE_CONFIG_DIR:-$HOME/.claude}/mods-data/mod-wrap-up/bridge"; S=$(printf '%s' "$IN" | sed -n 's/.*"session_id":"\([^"]*\)".*/\1/p'); [ -n "$S" ] && rm -f "$D/$S.jsonl" >/dev/null 2>&1; exit 0

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
v-amorim
Category
Workflow
Marketplace
claude-mods
Repo
v-amorim/moonlight-claude-mods
Folder
mod-wrap-up
Version
2.1.0
License
MIT
Repo stars
5
Last change
2026-11-05
Language
TypeScript
Files
28

Other mods in Workflow

kairos-forgeVilelaAIHolds a commandDraws a panel of the delivery arc and a band when a human gate waits, asks before a call a revert cannot undo, and masks secrets in tool output.altimate-codeAltimateAIDraws a band for GitHub, Jira and Linear credentials it finds, an /integrations pane, and a /lineage pane of the dbt model Claude reads or edits.xcrewbreferrariHolds a commandDraws a live line above the prompt for each Xcode build and test, gives Claude only the failures, and asks you before Claude rewrites a generated project file.commit-medev-build-deployHolds a commandDenies a git commit whose message is not a Conventional Commit, with commit-me's error text and the allowed types and scopes, so Claude rewrites it.noctia-modsEtienneP-26Draws a Noctia band above the prompt, a side panel of subagents, an agent graph, a task checklist, and toasts when a Noctia guard blocks or questions a command.sidecarkaameo-labDocks a pane beside the chat with Claude's options and questions as buttons, a session summary, a diagram of the files it changed, and a log of each turn.android-device-consoleNathanWAHolds a commandDraws a band of live Android device toggles above the prompt and a /device pane for Doze, standby, and WorkManager jobs, and tells Claude the device state.android-logcatNathanWABounds Claude's adb logcat calls, redacts secrets from adb output, and keeps a pid-scoped logcat buffer for a logcat_grep tool and a /logcat pane.android-project-lensNathanWAHolds a commandAsks before Claude adds a permission that needs a Play Console declaration, gives it the real manifest SDKs and permissions, and adds a nav_graph route index.build-output-distillerNathanWASwaps Gradle console output for a short digest of errors and test failures with file:line lists and fix hints, flags a repeat failure, and opens a /build pane.plan-metervumichienDraws a one-line band above the prompt with how far your plan file is, in phases and steps, and how many of Claude's own tasks are done.idea-shelfvumichienParks an idea with /idea while Claude works, counts the shelf in a band, and sends nothing to the model until you press Send.
All 396 in Workflow