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.
/plugin marketplace add AlmogBaku/ContextSaver /plugin install contextsaver@contextsaver
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

What it hooks into
session.startWhen a session startsturn.startWhen Claude starts a turntool.callAround a tool call, where it can hold oneturn.completeWhen a turn endsagent.spawnWhen a subagent startssession.compactWhen the context is compactedprompt.submitWhen you send a promptui.renderDraws into the sessionAbovePromptPanecommand.runWhen you run its slash command/clear/resumeui.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
- Version
- 0.5.0
- License
- MIT
- Repo stars
- 28
- Last change
- 2026-09-27
- Language
- TypeScript
- Files
- 144