contextmanager
by DevOhMyCode · ★ 0 · updated 4 days ago
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.
Install
/plugin marketplace add devohmycode/claude-mods/plugin install contextmanager@claude-devohmycode-modsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
engine.createskill.promptsession.startturn.starttool.callturn.completeturn.stepsession.compactprompt.submitui.rendercommand.runconfig.describeui.close- API calls
$.clock.every$.clock.now$.clock.sleep$.command.register$.env.get$.fs.exists$.fs.read$.fs.write$.model.fork$.process.run$.session.messages$.session.usage$.store.get$.store.set$.ui.close$.ui.focus$.ui.invalidate$.ui.log$.ui.open$.ui.resolve$.ui.toast- Draws
AbovePromptPane- Can see
every skillevery tool callcompactionevery prompt- Reach
- level 2 of 3 runs processeswrites filesdrives Claudereads filesreads env varsreads the transcriptpersists statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/devohmycode/claude-mods
- Path in repo
context-manager- Source commit
dcb7818the exact code the scan read- Author
- DevOhMyCode @devohmycode
- License
- MIT
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from devohmycode/claude-mods
clauget
devohmycode/claude-mods
The scale, then the diet — and the diet only where the scale says it pays. Each model request inside a turn streams through one hook, whose stop chunk carries the four token counters and the model that answered, so the journal has a line per step, the main loop's and every subagent's apart, and names the cache misses where they happen. /clauget opens the report: the window and the cost, the...
cockpit
devohmycode/claude-mods
One pane of tabs beside the transcript, and the $.cockpit noun other plugins fill. /cockpit opens it, and so does the Cockpit button in the band above the prompt: Session reads the context window, the turn count, the model and the cost, with a Raster sparkline of the context the session has spent turn by turn; Usage draws what the session cost — the four token counters the API reports, kept...
forge
devohmycode/claude-mods
Make your own plugins and mods, and catch what a mod breaks without a word before a session loads it. /forge new writes a mod (or a classic plugin) in this repository's shape; /forge lint reads the source for the failures the loader refuses or that fail silently ($ bound to a name, a computed event or env name, two hooks with no matcher on one event, a plugin noun's verb hooked, a .catch that...
message
devohmycode/claude-mods
What another session sends lands in a tab instead of in the context. A peer's delivery is written to the mailbox under your home directory, listed in the Message tab beside the thread it belongs to, and announced in one line — and the session's transcript does not grow by a byte. The thread draws each message whole, wrapped to the column it has, with a Show more under the long ones that opens...
switch
devohmycode/claude-mods
A pane of the models and the effort levels, each switched with one click. /switch opens it; /switch opus or /switch high switches without it. A click runs the engine's own /model or /effort, so the status line follows; the pane shows the model and the effort the last request was actually sent with.