trim-startup-context

by AneeqMalik · ★ 0 · updated 18 Oct 2026

ToastsCommandswarnings

0

Finds MCP servers whose tool schemas bloat startup context but are never used, and denies them automatically per project; /trim-context undo reverts.

install trim-startup-context

Install

/plugin marketplace add AneeqMalik/claude-code-mods
/plugin install trim-startup-context@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.startcommand.run
API calls
$.command.register$.env.get$.fs.exists$.fs.list$.fs.read$.fs.write$.session.cwd$.session.usage$.store.delete$.store.get$.store.set$.ui.toast
Reach
level 2 of 3 writes filesreads filesreads env varspersists 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/AneeqMalik/claude-code-mods
Path in repo
trim-startup-context
Source commit
36f0d02 the exact code the scan read
Author
@AneeqMalik
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 AneeqMalik/claude-code-mods

auto-model

AneeqMalik/claude-code-mods

Routes each turn to Haiku, Sonnet or Opus by workload, and only switches when the prompt-cache re-write cost is worth it.

★ 0ToastsCommands

token-usage

AneeqMalik/claude-code-mods

Narrow pane beside the transcript with this session's input, output and cache tokens. /tokens opens it.

★ 0PanesCommands

usage-status

AneeqMalik/claude-code-mods

A pill above the prompt showing model, context, cost and rate limits; auto-compacts at 250k tokens.

★ 0Bands