context-brake

by biqpro SH · ★ 1 · updated 16 Oct 2026

ToastsCommandsPromptvalidates

0

When the context window crosses your threshold, Claude gets one quiet note to reach a clean stopping point before auto-compaction, and you get a toast. /brake to configure.

install context-brake

Install

/plugin marketplace add jonirafael/claude-code-mods
/plugin install context-brake@claude-code-mods

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

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
session.startturn.completeprompt.submitcommand.run
API calls
$.command.register$.session.usage$.state.get$.state.set$.store.get$.store.set$.ui.toast
Can see
every prompt
Reach
level 1 of 3 reads mod statepersists 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/jonirafael/claude-code-mods
Path in repo
plugins/context-brake
Source commit
c33686a the exact code the scan read
Author
biqpro SH @jonirafael
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 jonirafael/claude-code-mods

context-receipt

jonirafael/claude-code-mods

Itemised receipt of what each turn added to the context window: which tool results, how many tokens. Band above the prompt plus /receipt.

★ 1BandsGuardsCommands