# Cursor-agent (Windows): imported Claude Code hooks are composed as PowerShell but executed with bash, silently blocking every tool call

**URL:** <https://forum.cursor.com/t/cursor-agent-windows-imported-claude-code-hooks-are-composed-as-powershell-but-executed-with-bash-silently-blocking-every-tool-call/168129>\
**Category:** Bug Reports\
**Tags:** hooks, windows, cli\
**Created:** [August 12, 2026, 12:04pm UTC](https://forum.cursor.com/t/cursor-agent-windows-imported-claude-code-hooks-are-composed-as-powershell-but-executed-with-bash-silently-blocking-every-tool-call/168129 "2026-08-12T12:04:47Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [August 28, 2026, 3:41pm UTC](https://forum.cursor.com/t/cursor-agent-windows-imported-claude-code-hooks-are-composed-as-powershell-but-executed-with-bash-silently-blocking-every-tool-call/168129/11 "2026-08-28T15:41:19Z")

</div>

Hey, thanks for the independent repro and the detailed data points. This really helps.

Three things you added are especially useful, and I passed them to the team along with the context we already collected:

- hookify as a third provider, which confirms this is not about a specific hook but about the combo of any Claude Code PreToolUse hook and `MSYSTEM`.
- The fact that `--mode plan` is also affected, even though it is not going to write anything.
- The silent behavior with `--print --output-format json` (`is_error:false`, `subtype:success` at the top level). I agree this is the trickiest part because the harness reads it as a clean success.

Like in the main thread, until there is a fix, the junction workaround with a clean `HOME` and `USERPROFILE` is still a working option for headless. You are already doing that.

I can’t share a timeline yet, but I’ll reply here when I have an update. For the opt-out from importing third-party configs, it is best to follow this thread: [No way to opt out of third-party (Claude Code / Codex) config loading - the flag is hardcoded](https://forum.cursor.com/t/no-way-to-opt-out-of-third-party-claude-code-codex-config-loading-the-flag-is-hardcoded/166558)

---

_[View the full topic](https://forum.cursor.com/t/cursor-agent-windows-imported-claude-code-hooks-are-composed-as-powershell-but-executed-with-bash-silently-blocking-every-tool-call/168129)._
