claude

to-hook-probe

[BETA] Token Optimizer Cowork hook-firing diagnostic. Install this FIRST in Claude Cowork to see which hooks actually fire on your build. Writes a marker + env dump you can read in-session. Part of the beta Cowork adapter.

2,967 on GitHubby Alex Greenshpunv0.1.0PolyForm-Noncommercial-1.0.0updated todayproductivity
/

Plugin to-hook-probe from marketplace alexgreensh-token-optimizer in alexgreensh/token-optimizer. Commands read from the repo's manifest — today.

This plugin runs code on your machine — its hooks fire automatically on events like tool use. The exact commands are listed below; read them before installing.

What it installs

Hooks (13)

  • SessionStart

    for b in bash /bin/bash /usr/bin/bash /usr/local/bin/bash /opt/homebrew/bin/bash; do command -v "$b" >/dev/null 2>&1 && exec "$b" "${CLAUDE_PLUGIN_ROOT}/hooks/probe.sh" SessionStart; done; exit 0

  • UserPromptSubmit

    for b in bash /bin/bash /usr/bin/bash /usr/local/bin/bash /opt/homebrew/bin/bash; do command -v "$b" >/dev/null 2>&1 && exec "$b" "${CLAUDE_PLUGIN_ROOT}/hooks/probe.sh" UserPromptSubmit; done; exit 0

  • PreToolUse

    for b in bash /bin/bash /usr/bin/bash /usr/local/bin/bash /opt/homebrew/bin/bash; do command -v "$b" >/dev/null 2>&1 && exec "$b" "${CLAUDE_PLUGIN_ROOT}/hooks/probe.sh" PreToolUse; done; exit 0

  • PostToolUse

    for b in bash /bin/bash /usr/bin/bash /usr/local/bin/bash /opt/homebrew/bin/bash; do command -v "$b" >/dev/null 2>&1 && exec "$b" "${CLAUDE_PLUGIN_ROOT}/hooks/probe.sh" PostToolUse; done; exit 0

  • Stop

    for b in bash /bin/bash /usr/bin/bash /usr/local/bin/bash /opt/homebrew/bin/bash; do command -v "$b" >/dev/null 2>&1 && exec "$b" "${CLAUDE_PLUGIN_ROOT}/hooks/probe.sh" Stop; done; exit 0

  • SessionEnd

    for b in bash /bin/bash /usr/bin/bash /usr/local/bin/bash /opt/homebrew/bin/bash; do command -v "$b" >/dev/null 2>&1 && exec "$b" "${CLAUDE_PLUGIN_ROOT}/hooks/probe.sh" SessionEnd; done; exit 0

  • PreCompact

    for b in bash /bin/bash /usr/bin/bash /usr/local/bin/bash /opt/homebrew/bin/bash; do command -v "$b" >/dev/null 2>&1 && exec "$b" "${CLAUDE_PLUGIN_ROOT}/hooks/probe.sh" PreCompact; done; exit 0

  • PostCompact

    for b in bash /bin/bash /usr/bin/bash /usr/local/bin/bash /opt/homebrew/bin/bash; do command -v "$b" >/dev/null 2>&1 && exec "$b" "${CLAUDE_PLUGIN_ROOT}/hooks/probe.sh" PostCompact; done; exit 0

  • StopFailure

    for b in bash /bin/bash /usr/bin/bash /usr/local/bin/bash /opt/homebrew/bin/bash; do command -v "$b" >/dev/null 2>&1 && exec "$b" "${CLAUDE_PLUGIN_ROOT}/hooks/probe.sh" StopFailure; done; exit 0

  • SubagentStart

    for b in bash /bin/bash /usr/bin/bash /usr/local/bin/bash /opt/homebrew/bin/bash; do command -v "$b" >/dev/null 2>&1 && exec "$b" "${CLAUDE_PLUGIN_ROOT}/hooks/probe.sh" SubagentStart; done; exit 0

  • SubagentStop

    for b in bash /bin/bash /usr/bin/bash /usr/local/bin/bash /opt/homebrew/bin/bash; do command -v "$b" >/dev/null 2>&1 && exec "$b" "${CLAUDE_PLUGIN_ROOT}/hooks/probe.sh" SubagentStop; done; exit 0

  • Notification

    for b in bash /bin/bash /usr/bin/bash /usr/local/bin/bash /opt/homebrew/bin/bash; do command -v "$b" >/dev/null 2>&1 && exec "$b" "${CLAUDE_PLUGIN_ROOT}/hooks/probe.sh" Notification; done; exit 0

  • CwdChanged

    for b in bash /bin/bash /usr/bin/bash /usr/local/bin/bash /opt/homebrew/bin/bash; do command -v "$b" >/dev/null 2>&1 && exec "$b" "${CLAUDE_PLUGIN_ROOT}/hooks/probe.sh" CwdChanged; done; exit 0

View source on GitHub token-optimizer.dev

More from alexgreensh/token-optimizer

All 3 plugins →

token-optimizer

claudecodex

Audit, fix, and monitor Claude Code context window usage. Find the ghost tokens.

6 skills · 2 commands · hooks

2,967

Token Optimizer for Claude Cowork — full skills + Cowork-native hooks (beta). Install THIS in Cowork; the standard token-optimizer entry is for desktop Claude Code.

5 skills · 2 commands · hooks

2,967

Similar plugins

caveman

claude

Talk like caveman. Cut filler. Keep technical details explicit.

22 skills · 1 command · 3 agents · hooks

JuliusBrussee/caveman 119,462

claude-mem

claudecodex

Persistent memory for Claude Code: the next session starts where the last one left off.

29 skills · 1 MCP server · hooks

thedotmack/claude-mem 116,618

Taste Skill

claudecodex

tasteskill 2.5.1: professional company websites at the figma.com and x.ai level, with one section per screen, real photographs, real product UI, effects kept for tech and gaming pages, and a real-browser checker and finish gate.

1 skill

Leonxlnx/taste-skill 114,391

career-ops

claudecodex

Open-source AI job search that runs locally in your AI coding CLI: scan job portals, evaluate listings into a structured A-H report with a 1-5 score, tailor your CV, track applications

5 skills · hooks

career-ops-hq/career-ops 82,253

mem0

claudecodex

Cross-session memory and token savings for coding agents.

6 skills · 1 agent · 1 MCP server · hooks

mem0ai/mem0 68,893

pake

claudecodex

Package any website or local web build into a lightweight desktop app with Pake CLI.

1 skill

tw93/Pake 63,463

Maintain to-hook-probe?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex plugins3 plugins