claude

cowork-pretooluse-shell-probe

Tests whether Cowork runs plugin-level PreToolUse hook commands through cmd.exe (like SessionStart) or a POSIX shell, and whether the inline tool_input=$(cat)|grep&&echo-block pattern actually blocks the bash tool.

0 on GitHubby kazukinagatav0.1.0MITupdated 1 month ago
/

Plugin cowork-pretooluse-shell-probe from marketplace verifier-mp in kazukinagata/analyzing-claude-plugin. Commands read from the repo's manifest — 1 month ago.

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

Skills (1)

  • run-pretooluse-probe

    Triggers the plugin-level PreToolUse hooks by running a sentinel bash command, to test (via session export) whether Cowork runs PreToolUse hook commands through cmd.exe or a POSIX shell, and whether the inline block pattern actually blocks the bash tool.

Hooks (6)

  • PreToolUse

    echo PRE_CONTROL=static_no_var

  • PreToolUse

    echo PRE_HOME=$HOME

  • PreToolUse

    echo PRE_DQ="double-quoted"

  • PreToolUse

    echo PRE_NUL=$NO_SUCH_VAR_EXPECT_EMPTY

  • PreToolUse

    bash -c 'echo PRE_BASH_HOME=$HOME EXEC_HOST=$(hostname)'

  • PreToolUse

    tool_input=$(cat); echo "$tool_input" | grep -q 'PROBE_BLOCK_TRIGGER' && echo '{"decision":"block","reason":"PRE_S5_PATTERN blocked"}' || true

View source on GitHub

Problems found in this repo's manifests

  • "cowork-mcp-tool-hook-probe" points to ./cowork-mcp-tool-hook-probe, which doesn't exist in the repo — install will fail

More from kazukinagata/analyzing-claude-plugin

All 28 plugins →

verifier

claude

Probe plugin for re-verifying findings recorded in research.md

24 skills · hooks

0

Companion plugin used to trigger validator errors (probes 02 and 20)

4 skills

0

Does a plugin-level SubagentStart hook fire on Cowork, and does its JSON additionalContext reach the subagent? Compares plain stdout, matcher-less JSON and matcher-scoped JSON in one launch.

1 skill · 1 agent · hooks

0

userConfig re-probe for the post-2.1.207 spec: exec-form ${user_config.*} substitution, CLAUDE_PLUGIN_OPTION_<KEY> env in hooks, skill/agent content substitution, and the manifest `default` field. Declares every documented option field (string/number/boolean, required, sensitive, default, multiple, min/max) so the input UI can be compared between Claude Desktop Code and Cowork.

1 skill · 1 agent · hooks

0

PreToolUse block-method matrix (decision/permissionDecision/exit2) CLI vs Cowork

1 skill · hooks

0

Skill-to-skill PreToolUse:Skill block test for CLI vs Cowork

2 skills

0

Maintain cowork-pretooluse-shell-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 plugins28 plugins