Discover and explore top open-source AI tools and projects—updated daily.
modem-devTerminal diff viewer for agentic code review
New!
Top 72.0% on SourcePulse
Hunk is a terminal-based diff viewer specifically designed for reviewing code changes generated by AI agents. It offers an interactive, multi-file interface with inline AI annotations, aiming to significantly improve the efficiency and clarity of code review workflows for developers leveraging AI coding assistants.
How It Works
Hunk utilizes OpenTUI for its interactive terminal user interface and Pierre diffs for parsing. Its core design emphasizes a "review-first" approach, presenting changes in a navigable stream with a sidebar for multi-file context. A key differentiator is the integration of inline AI and agent annotations, allowing AI-generated comments and rationale to be displayed directly alongside code, enhancing understanding and review speed. It supports flexible split, stack, and responsive layouts, along with a watch mode for automatic updates.
Quick Start & Requirements
npm i -g hunkdiffHighlighted Details
git config --global core.pager "hunk pager").Maintenance & Community
CONTRIBUTING.md.Licensing & Compatibility
Limitations & Caveats
Hunk does not support structural diffing. When integrated as a Git pager, untracked files are not automatically included in the diff output, as Git controls the patch content in that scenario.
1 day ago
Inactive