I Wanted "agy ." for Google Antigravity on WSL2 — So I Built "wagy"
I use WSL2 as my main development environment on Windows. My projects live in Linux: /home/user/Projects/... Node.js, pnpm, Git, Docker, and the rest of my toolchain also run inside WSL. When I started using Google Antigravity IDE, I wanted the same workflow I already had with VS Code: code . Something like: agy . That would have been the obvious command. But agy is already the official…
To use Google Antigravity IDE within WSL2 on Windows, the author created a custom script called "wagy" that launches the IDE directly from the WSL terminal. The goal was to maintain the project, terminal, and development toolchain within WSL while avoiding the need to switch to the Windows environment or patch Antigravity every time it gets updated.
The setup involved installing Antigravity IDE on Windows at a specific path and using the `--remote` flag with WSL to open the project from the WSL distribution. The `wagy` script simplifies the process by providing a convenient command-line interface for launching the IDE, with options to open in a new window, reuse an existing window, specify a version, and handle file and line numbers for debugging.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.