Hunk is a terminal-based diff viewer designed for interactive code review, providing a review-first approach with AI and agent annotations for agent-authored changesets.
Source: per README View on GitHub →Hunk is gaining attention due to its unique approach to code review, integrating AI and agent annotations into a terminal interface, which is a gap not addressed by many existing diff tools. Its use of OpenTUI and Pierre diffs for a terminal experience stands out in a market dominated by GUI-based diff viewers.
Source: Synthesis of README and project traitsHunk provides a terminal-based interface for reviewing code changes, with features like multi-file review streams, inline AI and agent annotations, and responsive layouts.
Source: per READMEUsers can review Git changesets and compare raw files directly within Hunk, with support for Git's diff-style commands and patch review capabilities.
Source: per READMEHunk allows for the integration of AI and agent skills for live code review sessions, enhancing the review process with real-time annotations and insights.
Source: per READMEThe architecture of Hunk is modular, with a clear separation of concerns. It leverages OpenTUI for the terminal UI and Pierre diffs for diffing capabilities. The project is structured into multiple packages, with a focus on reusability and maintainability. Key technical decisions include the use of TypeScript for development and the integration of various terminal utilities for functionality.
Source: Code tree + dependency filesinfra: Not enough information. | key_deps: opentui, @pierre/diffs, bun, tsc, oxfmt, oxlint | language: TypeScript | framework: OpenTUI, Pierre diffs
Source: Dependency files + code treeHunk is suitable for developers and technical teams engaged in code review processes, particularly those working in terminal environments or with a preference for interactive review tools. It is useful for reviewing Git changesets, comparing raw files, and integrating AI and agent insights into the review process.
Source: READMEv0.10.0 (2026-04-26): Refactor of session broker into reusable runtime-neutral packages.
Source: GitHub ReleasesHunk is a promising project for teams that require an interactive and terminal-based approach to code review, especially those looking to integrate AI and agent insights. Its unique features and terminal focus make it a standout tool for developers who prefer a non-GUI environment for code review tasks.