PlugMyPlugin
← Browse

preamble-gate

DylanMerigaud ★ 1

preamble-gate is a PreToolUse hook that prevents Write, Edit, and MultiEdit operations from expanding always-loaded files (CLAUDE.md, ~/.claude/rules, MEMORY.md) beyond their token budgets; shrinking edits always pass to allow recovery from over-budget states. It measures token usage using trimwrit's estimate and blocks expansions while allowing configuration via project-level .trimwrit/budget.json or user-level ~/.claude/trimwrit-gates.json.

Productivity DevOps No API key detected runs shell

Install

> /plugin marketplace add DylanMerigaud/trimwrit/tree/HEAD/plugins/preamble-gate
> /plugin install preamble-gate

Source: https://github.com/DylanMerigaud/trimwrit/tree/HEAD/plugins/preamble-gate

What it's made of

1 hook

Commands
0
Agents
0
Skills
0
MCP servers
0
Hooks
1 · PreToolUse

What it needs & plugs into

API keys
none
Paid services
none detected
External tools
python3
Talks to
nothing external detected

Analyzed . Facts extracted from the plugin's files. Prose generated by claude-haiku-4-5-20251001.

Is this your plugin?

Claim it to keep the card accurate and enter the weekly contest. Requires signing in as the GitHub owner (DylanMerigaud).