Trace is a library consumed by Hawk; its Windows behaviour is exercised through the
hawk trace ... commands. The trace packages are fully supported on Windows 10+ with no
external dependencies beyond Git. This document covers the Windows-specific platform code in
the library.
- Windows 10 1809+ (ConPTY support)
- Git for Windows (provides
git.exe+ bundled bash for hooks) - Go 1.26+ (for building/testing from source)
| Hook type | Mechanism |
|---|---|
| Git hooks | #!/bin/sh via Git for Windows MSYS2 bash |
| Agent hooks | JSON config; agents invoke the hawk binary directly |
No batch file wrappers needed.
# Unit tests
go test ./...
# Integration tests
go test -tags=integration ./cli/integration_test/...| File | Purpose |
|---|---|
telemetry/detached_windows.go |
Process groups via CREATE_NEW_PROCESS_GROUP |
cli/integration_test/procattr_windows.go |
Test process detachment |
os.Interruptonly (noSIGTERM)filepath.FromSlash()for git output paths- CRLF-safe parsing (
\r\n->\n) os.DevNullinstead of/dev/nullruntime.GOOSchecks for pager selection
- Interactive PTY tests skipped (guarded with
//go:build unix) - File permissions (0o755) set but ignored by Windows ACLs
- Symlinks require Developer Mode or admin
- OpenCode plugin pending Windows Bun support
Via the hawk CLI on Windows, verify:
hawk trace enablein a git repo- Start agent session, make changes
git commit -m "test"— hooks firehawk trace checkpoint rewind— shows checkpointshawk trace checkpoint explain— pager works