Skip to main content
plugin

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

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add davepoon/buildwithclaude
/plugin install hooks-performance@buildwithclaude
Open on GitHub

What 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-full hook 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@buildwithclaude

Step 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

Similar plugins

All plugins for Agent setup: memory, context, orchestration →

From the same set235

The whole set →
all-agents all-agents provides a complete bundle of 117 specialized agents structured into 11 categories. ★ 3,785repo stars mcp-servers-docker mcp-servers-docker adds Docker-based MCP servers from the official Docker MCP registry to Claude Code. The set holds 199+ verified servers. ★ 3,785repo stars hooks-testing hooks-testing is a plugin for Claude Code and Cursor that automates testing through event-driven hooks. Testing actions run in response to events. ★ 3,785repo stars hooks-security hooks-security is a Claude Code and Cursor plugin for security automation that protects files, controls branch edits, and scans code. ★ 3,785repo stars hooks-notifications The hooks-notifications plugin sends IDE events—errors, operation completions, hook triggers—to Discord, Slack, or Telegram. Track long-running scripts and build failures without keeping an eye on the editor. ★ 3,785repo stars hooks-git hooks-git is a plugin for Claude Code and Cursor that automates Git workflows by staging changed files and structuring commits according to Conventional Commits. ★ 3,785repo stars hooks-formatting hooks-formatting — a plugin for Claude Code that runs JavaScript and Python formatting automatically on agent hooks — no manual trigger needed. Fires when the agent writes or modifies code. ★ 3,785repo stars hooks-development The hooks-development plugin for Claude Code runs event hooks in a project to track changes, create file backups, lint on save and format code. ★ 3,785repo stars

Project sponsors

Companies that keep this analytics open