Back to browse
GitHub Repository

lightweight C++ file-watcher CLI: define build commands, branch on success/failure, and persist watch state across reboots.

5 starsC++

FlowHook – a file watcher that knows if your build passed or failed

by mnsrealx·Jul 7, 2026·2 points·0 comments

AI Analysis

●●SolidShip ItNiche Gem

JSON build logs are clever, but watchexec already dominates this crowded category.

Strengths
  • JSON logging enables build history analytics instead of just scrolling terminal output.
  • Native on-success and on-failure hooks simplify conditional pipelines without shell scripting.
  • C++ implementation ensures low overhead compared to Electron-based or script-heavy watchers.
Weaknesses
  • Linux-only support limits adoption when most devs work on macOS or Windows.
  • Watchexec and entr already handle conditional execution via standard shell operators.
Target Audience

Backend developers, DevOps engineers

Similar To

watchexec · entr · nodemon

Post Description

FlowHook is a CLI tool that watches your files and executes given commands, similar to watchexec. But I believe it has three things that differentiate it from existing tools.

It persists your configuration. If you set up flowhook instance in your folder and add the necessary commands you only need to run `flowhook run` to start watching anytime.

It logs your build output plus other info (timestamp, exit code, etc.) to a JSON log file inside your project. Use cases include analyzing build history, debugging, etc. Personally I'm excited about this one. This was even the thing that convinced me to take this project seriously. Tools that analyze your success/failure ratio, most common time of build failures, and similar patterns could be built on top of this using the JSON data.

Third it lets you hook on-success and on-failure commands. These are separate commands that run based on the exit code of your base command. Use cases include running a test suite on success, a desktop notification on failure, committing to git on success, kicking off an agent to analyze the error on failure, etc.

TL;DR : FlowHook is a CLI tool that watches your file and execute given commands(like watchexec), but it also allows you to hook on-success and on-failure commands. It also logs your build output to a JSON log file in your project directory.

Excited about where this can go and would love your feedback.

Similar Projects

Infrastructure●●●Banger

Evidra – a fail-closed MCP guardrail for AI infrastructure ops

Fail-closed guardrail for AI agent infrastructure access—kills unsafe ops before they ship.

Solve My ProblemWizardry
vitass
114mo ago
Developer Tools●●●Banger

Fix

zsh wrapper that auto-corrects typos and runs Claude Code—no shell config changes.

SlickSolve My ProblemShip It
devolt
104mo ago
Developer Tools●●Solid

A bunch of Apache2/MIT log generators

uvx one-liners for 10 log formats with Poisson-paced anomaly scenarios.

Solve My ProblemBig Brain
TheIronYuppie
4123d ago