hayate is a Go CLI that searches project directories across Windows 11 and WSL2. Select a project to jump to its directory and optionally run a configured action.
Prebuilt Windows and Linux binaries are available from GitHub Releases once a release is published.
With Go 1.23 or later, run this from any directory.
go install github.com/withnic/hayate/cmd/hayate@latestIf you already have a local clone, run go install ./cmd/hayate from the repository root to install that checkout.
Add the installation directory to your PATH. This is GOBIN if set, or the bin directory under go env GOPATH.
- From Windows PowerShell, the Windows build can search both Windows and WSL2 directories. Installing hayate inside WSL is optional.
- To run hayate directly from Bash or Zsh inside WSL, install it there and add it to your WSL PATH.
Windows 11 is the supported Windows version. Windows 10 has not been tested.
Run hayate init-config to create ~/.hayate.jsonc, then edit roots to match your directory layout.
-
Open a WSL terminal and change to the parent directory containing the projects you want to search.
-
Run
pwdthere and copy the resulting absolute path intopathfor the WSL entry inroots. For example, ifpwdprints/home/alice/projects, use this entry.{"env": "wsl", "distro": "Ubuntu", "path": "/home/alice/projects", "mode": "children"} -
Set
distroto the name of your distribution. Runwsl -l -qin PowerShell to check the name. After saving the configuration, runhayate.exe list --refreshin PowerShell to see the results.
In PowerShell, run these two lines to register j for the current session and open the search.
hayate.exe init powershell | Out-String | Invoke-Expression
jTo make j available in new PowerShell sessions, add the first line to your PowerShell profile ($PROFILE).
If you installed hayate inside WSL, run these lines from Bash. For Zsh, replace bash with zsh in the first line.
eval "$(hayate init bash)"
jTo make j available in new sessions, add the first line to ~/.bashrc or ~/.zshrc as appropriate.
- Run
jto open the search. Press Enter to jump to the selected directory, or Esc or Ctrl+C to cancel. - Run
j -cto open VS Code after changing directories. Add entries toactionsto define more flags. - Set
"default_action": "c"at the top level of your config to open VS Code with plainj. An explicitly requested action takes priority. Withdefault_actionomitted, plainjonly changes directories. - If you have
withnic/knitchecked out as/home/alice/projects/knit, runj --query knitto open the search withknitalready entered. - Run
hayate list --jsonto inspect the results. Add--refreshto rescan the roots. - Pass
--cmd <name>tohayate initto change the wrapper's name.
With GNU Make, run make fmt to format the Go source and make check to check formatting, run go vet, and test with the race detector. The race detector requires CGO and a C compiler.
To run checks directly, use gofmt -s -l cmd internal from the project root. If it lists any files, format them with gofmt -s -w cmd internal. Run go vet ./... for static analysis and go test ./... for the standard test suite.

{ "roots": [ {"env": "windows", "path": "C:\\dev", "mode": "children"}, {"env": "wsl", "distro": "Ubuntu", "path": "/home/alice/projects", "mode": "children"}, ], "actions": { "c": {"description": "Open VS Code", "windows": "code .", "wsl": "code ."}, }, // Optional: uncomment to open VS Code when you run j without an action flag. // "default_action": "c", }