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.
| Type | Claude code mod |
|---|---|
| Author | devohmycode |
| Repository | devohmycode/claude-mods |
| Popularity | no public popularity data yet |
| Category | Context & memory |
| Security | High risk (44/100) |
| Rank | #3,036 of 5,272 Claude Code mods; #280 in Context & memory |
| License | MIT |
| Last commit | 2026-10-05 |
| Hooks | 13 events |
| Sees | compaction, every prompt, every skill, every tool call |
| Draws on | AbovePrompt, 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.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes files or config | Review |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.every | |
$.clock.now | |
$.clock.sleep | |
$.command.register | |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.model.fork | drives Claude |
$.process.run | runs processes |
$.session.messages | reads the transcript |
$.session.usage | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.close | draws interface |
$.ui.focus | draws interface |
$.ui.invalidate | draws interface |
$.ui.log | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install contextmanager?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- 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
- 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)