Skip to content

feat: add Windows (Git Bash) support#9

Merged
claudioemmanuel merged 14 commits intoclaudioemmanuel:mainfrom
jhonatanjunio:main
Apr 6, 2026
Merged

feat: add Windows (Git Bash) support#9
claudioemmanuel merged 14 commits intoclaudioemmanuel:mainfrom
jhonatanjunio:main

Conversation

@jhonatanjunio
Copy link
Copy Markdown
Collaborator

Adds full Windows support:

  • home_dir() helper: tries HOME, falls back to USERPROFILE (Windows)
  • wrap.rs: cross-platform shell execution (cmd /C on Windows, sh -c on Unix)
  • libc crate moved to [target.'cfg(unix)'.dependencies]
  • install.sh: detects Windows/MINGW/MSYS/CYGWIN, downloads .exe, uses BIN_NAME variable throughout
  • release.yml: new build-windows-x86_64 job (windows-latest, msvc target), .exe included in release assets and checksums
  • README: Windows prerequisites and Rust install instructions

claudioemmanuel and others added 14 commits March 30, 2026 15:46
- Add opencode-plugin/squeez.js with tool.execute.before hook
- Update install.sh to install OpenCode plugin
- Update README with OpenCode instructions

The plugin intercepts all Bash tool calls and automatically
wraps them with squeez wrap for compression, similar to how
Claude Code hooks work.
- config.rs: Config::load() now respects SQUEEZ_DIR env var for profile
  switching instead of always reading from ~/.claude/squeez/
- init.rs: add run_copilot() / squeez init --copilot subcommand that
  stores session state in ~/.copilot/squeez/ and injects memory banner
  into ~/.copilot/copilot-instructions.md (auto-loaded by Copilot CLI)
- main.rs: parse 'init --copilot' flag
- hooks/copilot-pretooluse.sh: PreToolUse bash compression with
  SQUEEZ_DIR pointing to ~/.copilot/squeez/
- hooks/copilot-session-start.sh: SessionStart hook that calls
  'squeez init --copilot'
- hooks/copilot-posttooluse.sh: PostToolUse token tracking with
  SQUEEZ_DIR pointing to ~/.copilot/squeez/
- install.sh: new Copilot CLI section registers hooks in
  ~/.copilot/settings.json and seeds copilot-instructions.md
- bench/run.sh: auto-detect local release build vs installed binary
- bench/fixtures/git_copilot_session.txt: new fixture representing
  a real Copilot CLI bash session (35% compression, 3ms)
- tagline now mentions Copilot CLI
- install section lists Copilot CLI activation step
- benchmarks table updated to 10/10 with Copilot session fixture
- config section shows both claude and copilot paths
- new GitHub Copilot CLI section (hooks, memory injection, escape hatch)
- How it works updated to cover Copilot CLI hook architecture
- local dev section simplified (bench/run.sh now auto-detects binary)
@claudioemmanuel claudioemmanuel merged commit 779a95f into claudioemmanuel:main Apr 6, 2026
1 check passed
claudioemmanuel added a commit that referenced this pull request Apr 7, 2026
feat: add Windows (Git Bash) support
claudioemmanuel added a commit that referenced this pull request Apr 7, 2026
feat: add Windows (Git Bash) support
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.

2 participants