Watchexec

Published 2025 July 26

What's been hammered home for me lately is having a fast feedback loop when working on a project. Switching tmux panes and running go run main.go gets tedious fast. Now I use air for my go projects.

However, not every language has a native tool to automatically rebuild. My current solution has been watchexec. It's super easy to setup.

watchexec -e cpp,hpp "cmake --build build"

Moving forward, any project of significance I work on must have some sort of automatic rebuilding. It removes that little bit of overhead and lets me focus on the code. It also pairs well with agentic coding.