hooks-performance — Claude Code plugin: performance monitoring
hooks-performance is a plugin for Claude Code and Cursor that runs scripts and automation when performance metrics or context usage change.
MIT ★ 3,785 updated 2026-10-25
/plugin marketplace add davepoon/buildwithclaude
/plugin install hooks-performance@buildwithclaudeWhat hooks-performance does
hooks-performance connects to performance signals in Claude Code and Cursor, letting you automate responses to resource changes. The plugin watches context usage, memory load, and processing speed, then executes configured actions—flush cache, log telemetry, call external tasks—when metrics cross defined thresholds.
It works through an event-based system where you define triggers (context near capacity, processing slows) and pair them with handlers (execute script, send notification). This gives you granular control over how your editor adapts as workload changes.
The plugin installs on Claude Code and Cursor via the plugin marketplace.
What it helps with
- automatically trim context when token capacity approaches its limit
- capture and log performance metrics when thresholds are exceeded
- trigger optimization routines as system load increases
- detect memory spikes and run mitigation tasks
Example prompts for the agent
- Set an
on-context-fullhook to archive old files when context fills up - Create a trigger for performance degradation with
on-performance-drop - Record metrics every 5 minutes using
periodic-monitor
How to install hooks-performance
Plugin marketplace
/plugin marketplace add davepoon/buildwithclaude/plugin install hooks-performance@buildwithclaudeStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about hooks-performance
How do I install hooks-performance in Claude Code?
Run /plugin marketplace add davepoon/buildwithclaude, then /plugin install hooks-performance@buildwithclaude.
What does hooks-performance do?
The plugin monitors performance and context metrics in your editor, then runs configured actions—cleanup, logging, external calls—when those metrics exceed your thresholds.
Which editors support this plugin?
hooks-performance works with Claude Code and Cursor.
Source text
hooks-performance · MIT
Performance Hooks - Event-driven automation hooks
© BuildWithClaude Community · MIT · davepoon/buildwithclaude