Skip to content

fix(hooks): enable cross-platform execution in .antigravity-plugin/hooks.json - #474

Open
seb4ez wants to merge 1 commit into
monk-io:mainfrom
seb4ez:fix/cross-platform-hooks-json-466
Open

fix(hooks): enable cross-platform execution in .antigravity-plugin/hooks.json#474
seb4ez wants to merge 1 commit into
monk-io:mainfrom
seb4ez:fix/cross-platform-hooks-json-466

Conversation

@seb4ez

@seb4ez seb4ez commented Aug 31, 2026

Copy link
Copy Markdown

Fixes #466

Bounty eligibility

  • I signed up for the Monk.io bug bounty at https://monk.io/bug-bounty with this GitHub account
  • I used the installed Monk product end-to-end for this reproduction
  • I starred monk-io/monk-plugin

Summary

In .antigravity-plugin/hooks.json, hook commands previously contained unescaped Windows backslashes and lacked POSIX/Windows execution separation. On POSIX environments, shell evaluation resulted in exit 127 due to backslash consumption.

Changes

  • Separated POSIX command and Windows commandWindows across PreInvocation, PreToolUse, and PostToolUse.
  • Corrected ensure-monk-agent targets to match the script locations in scripts/.
  • Added cross-platform validation coverage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug bounty] Cross-platform hook execution fails on Linux/POSIX due to unescaped Windows backslashes in hooks. json

1 participant