Trace is fully supported on Windows 10+ with no external dependencies beyond Git.
scoop bucket add trace https://github.com/GrayCodeAI/scoop-bucket.git
scoop install tracego install github.com/GrayCodeAI/trace/cmd/trace@latestgo build -o trace.exe ./cmd/trace/Or cross-compile from macOS/Linux:
mise run build:windows # amd64
mise run build:windows-arm64 # arm64- Windows 10 1809+ (ConPTY support)
- Git for Windows (provides
git.exe+ bundled bash for hooks) - Go 1.26+ (for building from source)
All commands work identically to macOS/Linux:
cd your-project
trace enable
trace status| Hook type | Mechanism |
|---|---|
| Git hooks | #!/bin/sh via Git for Windows MSYS2 bash |
| Agent hooks | JSON config, agents call trace.exe directly |
No batch file wrappers needed.
# Unit tests
go test ./...
# Integration tests
go test -tags=integration ./cmd/trace/cli/integration_test/...
# E2E tests
set E2E_TRACE_BIN=trace.exe
set E2E_AGENT=claude-code
go test -tags=e2e -count=1 -timeout=30m ./e2e/tests/...E2E uses native ConPTY — no tmux required.
| File | Purpose |
|---|---|
telemetry/detached_windows.go |
Process groups via CREATE_NEW_PROCESS_GROUP |
integration_test/procattr_windows.go |
Test process detachment |
e2e/agents/pty_session_windows.go |
Interactive sessions via ConPTY |
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
After building, verify:
trace.exe versiontrace.exe enablein a git repo- Start agent session, make changes
git commit -m "test"— hooks firetrace checkpoint rewind— shows checkpointstrace checkpoint explain— pager works