microsoft / microsoft/ShadowFrog

[Windows port] 6/8: Convert the hook scripts to Python

Open
#13 0 comments 0 reactions 1 assignee View on GitHub

@wmaciel is already working on this.

Since Aug 8, 2026.

enhancement windows-port
Dominant language
Python
Stars
25
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Part of #7. Phase 6 of 8.

Replace the two bash hook scripts with Python bodies and switch the hook templates to an OS-aware launcher (the runner selects bash or powershell per OS), so the hooks no longer hard-depend on bash. The bash fail-open machinery is retired in favor of a simple Python guard.

Changes: add Python check-init and pre-tool hooks, update the Copilot and Claude hook templates, port the hook tests, remove the bash hooks and the bash-specific lint.
Acceptance: hook tests pass on both OSes; a failing hook never blocks a tool call.
Depends on: Phase 5.

Drafted with Copilot 🤖

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.