Gabriel Anhaia's DEV post, “Exhale: A Breathing Guide That Reads Your Breath While Claude Code Works,” describes an Electron app that uses a long coding-agent run as a cue to show a breathing guide. Anhaia tested the app on macOS and used a webcam with the SmartSpectra SDK to draw a moving horizon from chest motion. The original report is at https://dev.to/gabrielanhaia/exhale-a-breathing-guide-that-reads-your-breath-while-claude-code-works-244a.
A delayed sensor can still have a clear lifecycle
Exhale waits ten seconds before showing its guide for a Claude Code run. The camera requires consent, and the author describes releasing it when the run ends. That gives the feature a clear start and stop even though the sensor has its own schedule. A short command can finish during the delay. A longer command can open the card while the waveform is still unavailable. Anhaia reports that blink detections could arrive before the chest waveform. Keeping a distinct waiting state lets the interface explain why a visible card has yet to display a reading.
The author moved SDK capture into a separate child process after encountering a native crash during a test. The child sends small metric frames to the application, which manages the session lifecycle. This makes a test with the repository's simulated sensor useful for checking transitions independently of camera setup. Real camera runs then exercise a different set of conditions, including permission prompts and the wait for the waveform. See the project repository at https://github.com/gabrielanhaia/exhale.
The recap needs the scored interval
In the recorded example, the coding agent ran for 87 seconds and the guide ran for 77. Only 51 seconds were eligible for scoring, and the app counted 30 of those seconds as in sync. The displayed 59 percent therefore describes the scored interval. A reader dividing by the full command duration would answer a different question.
Anhaia describes comparing a recent window of the chest waveform with the guide curve, allowing a short lag. The resulting figure expresses similarity to that curve under the app's scoring rule. For a developer building a similar recap, the example suggests displaying elapsed time and eligible time together. That makes a delayed sensor startup visible in the same card that reports the score.