ClaudeCodeMod

All shelves / Mods / Workflow

contextsaver

By AlmogBaku

contextsaver is a Claude Code workflow mod by AlmogBaku.

Shows a card when a session's process or a tool habit repeats, with its cost and a fix you can send.

Draws

Install

The marketplace name is contextsaver.

In Claude Code
/plugin marketplace add AlmogBaku/ContextSaver
/plugin install contextsaver@contextsaver
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
0.5.0
License
MIT
Repo stars
28
Last change
2026-09-27

What it can reach

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

Needs Claude Code 2.1.273 or newer. Function hooks are early access, so set CLAUDE_CODE_ENABLE_FUNCTION_HOOKS to 1 in your shell, or under env in ~/.claude/settings.json. The official docs say 2.1.287 and later ignore that flag. One line sits above the prompt until something repeats, then a card shows the cost in context and minutes. Fix sends the suggested fix. Fix... lets you reword it first. Ignore drops the card for the session. The audit runs on your session's model, so a session on Opus pays Opus for it. No tool is denied. On mobile the plugin keeps its ledger and draws nothing. A checkout starts with CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 claude --plugin-dir . The README does not say anything leaves the machine.

Demo

The ContextSaver pane beside a Claude Code session: cards for repeated habits, each with how often it happened, its share of context and time, a suggested fix, and Fix, Fix… and Ignore
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • turn.startWhen Claude starts a turn
  • tool.callAround a tool call, where it can hold one
  • turn.completeWhen a turn ends
  • agent.spawnWhen a subagent starts
  • session.compactWhen the context is compacted
  • prompt.submitWhen you send a prompt
  • ui.renderDraws into the sessionAbovePromptPane
  • command.runWhen you run its slash command/clear/resume
  • ui.closeWhen its pane closes

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

Files

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

Facts

Author
AlmogBaku
Category
Workflow
Marketplace
contextsaver
Repo
AlmogBaku/ContextSaver
Version
0.5.0
License
MIT
Repo stars
28
Last change
2026-09-27
Language
TypeScript
Files
144

Other mods in Workflow

fleet-bandwrg32786Draws a line above the prompt with the seat, context percent, unread Room messages, pending results, and seats in a hold.fleet-deliverywrg32786Draws a delivery line under the prompt, and sends one Room message or job result into the session when it is idle.pi-agent-for-claudeFazalAAliShows a pi subagent in Claude Code's agent list, streams its tool calls, and can open that agent in a tmux pane.stoadigital-stoic-orgDraws the save status of a session pack, can clear the context when it fills, and flags files whose sources changed.trailheadToRvaLDzHolds a commandDraws the ticket map beside the chat and the step above the prompt, and refuses a bad commit, a secret, or an unvetted install.notice-boardHolyGrailDraws a band of notices for the other sessions in this repo, or for every session on the machine.muslim-modsashafizullahDraws the next prayer under the prompt, with adhkar and a verse, and keeps a prompt typed during the salah break until it ends.superclaude-plusplusexcattToasts when a session loads, and checks each edit for conventions and console.log, in a framework of 44 skills and 9 agents.agent-raceOneWave-AIDraws a live race pane for the sessions you put on one track, with tools, files, and tests.inbox-alertsOneWave-AIDraws Gmail, Slack, and Calendar alerts as toasts, a status count, and a pane.cc-mod-parkGGGODLINParks a session with /park, then draws a button in a new session in that folder so you can resume it.vimeskanehiraTurns romaji in the prompt into Japanese, with a candidate band above the prompt, using anthy on this machine.
All 396 in Workflow