Guards sit in front of the tools Claude uses. They can allow, deny or rewrite a tool call before it runs, for example to block risky shell commands or keep secrets out of tool output, using the tool.call and tool.check hooks.
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...
contextmanager
devohmycode/claude-mods
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.