contextmanager

contextmanager is a Claude Code mod by devohmycode that watches a session for wasted context and time, shows a one-click card when a waste behaviour repeats, and lets the user steer or stop it.

Updated 2026-10-05

What is contextmanager?

contextmanager is a Claude Code mod by devohmycode that watches a session for wasted context and time, shows a one-click card when a waste behaviour repeats, and lets the user steer or stop it. It is listed under Context & memory and has no public popularity data yet.

TypeClaude code mod
Authordevohmycode
Repositorydevohmycode/claude-mods
Popularityno public popularity data yet
CategoryContext & memory
SecurityHigh risk (44/100)
Rank#3,036 of 5,272 Claude Code mods; #280 in Context & memory
LicenseMIT
Last commit2026-10-05
Hooks13 events
Seescompaction, every prompt, every skill, every tool call
Draws onAbovePrompt, Pane

Is contextmanager safe to install?

contextmanager scores 44/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables; watches every prompt or event. It passed 2 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes files or configReview
Reads environment variablesReview
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.every
$.clock.now
$.clock.sleep
$.command.register
$.env.getreads env vars
$.fs.existsreads files
$.fs.readreads files
$.fs.writewrites files
$.model.forkdrives Claude
$.process.runruns processes
$.session.messagesreads the transcript
$.session.usage
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.closedraws interface
$.ui.focusdraws interface
$.ui.invalidatedraws interface
$.ui.logdraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install contextmanager?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/devohmycode/claude-mods
    claude plugin validate ./claude-mods/context-manager
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add devohmycode/claude-mods && claude plugin install contextmanager@claude-devohmycode-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs contextmanager for you:

Install the "contextmanager" Claude Code mod from https://github.com/devohmycode/claude-mods/tree/main/context-manager. Run claude plugin validate on it first and show me what it can access before you enable it.

More from devohmycode/claude-mods

This repository has 6 Claude Code mods on MCPMods.

  • clauget: The scale, then the diet — and the diet only where the scale says it pays. Each model request inside a turn streams thro (High risk)
  • cockpit: One pane of tabs beside the transcript, and the $.cockpit noun other plugins fill. /cockpit opens it, and so does the Co (Review before installing)
  • forge: Make your own plugins and mods, and catch what a mod breaks without a word before a session loads it. /forge new writes (Review before installing)
  • message: What another session sends lands in a tab instead of in the context. A peer's delivery is written to the mailbox under y (Review before installing)
  • switch: A pane of the models and the effort levels, each switched with one click. /switch opens it; /switch opus or /switch high (Low risk)