Show HN: Darna – Atomic commit validator for Go
Lately, while experimenting with agentic coding, I kept running into the same pain point: committing generated code cleanly. Quick prototypes often turn into large diffs that are hard to review and even harder to split into sensible commits.

After watching a FOSDEM talk on efficient Git workflows [0], I started exploring the idea of “atomic commits” for Go. The result is Darna.

Darna is a small CLI tool (usable as a Git hook) that validates whether your staged changes form a valid, working fileset. It works down to the line level, so partial staging is fully supported, and it can also tell you which additional files need to be staged (as whole files) to make a commit truly atomic.

If you’re dealing with large diffs, partial staging, or AI-assisted code generation, this might be useful for you too. For extra confidence: all commits in the repo are validated by Darna itself, and the commit messages were reviewed (not auto-generated) with help from Claude Code.

Feedback very welcome.

0: https://fosdem.org/2026/schedule/event/3VNNBK-efficient-git-...