modem-dev/hunk
Review-first terminal diff viewer for agentic coders
What it solves
Hunk is a terminal-based diff viewer designed specifically for reviewing changesets, particularly those authored by AI agents. It replaces the plain-text output of standard diff tools with an interactive, review-first user interface that makes it easier to navigate and understand complex changes across multiple files.
How it works
Hunk integrates with version control systems like Git, Jujutsu, and Sapling, acting as a pager or a standalone tool. It renders diffs in a terminal UI (TUI) using OpenTUI and Pierre diffs. It supports multiple layout modes (split, unified, and responsive auto), a sidebar for multi-file navigation, and a "watch mode" that auto-reloads changes in real-time as the working tree is updated.
Who it’s for
Developers and AI agent users who need a high-quality, interactive way to review code changes in the terminal without leaving their command-line environment.
Highlights
- Agent-First Review: Supports inline AI and agent annotations beside the code to provide context for changes.
- CVS Integration: Deep integration with Git, Jujutsu, and Sapling, including the works as a Git pager.
- Interactive TUI: Features a sidebar for file navigation, mouse support, and responsive layouts.
- Extensible: An experimental TypeScript API allows users to add custom VCS backends, rewrite changesets, or add new UI components.
- Live Updates: Watch mode allows for continuous, real-time review of file changes.
Related
- Project
- Project
- Project
- Dispatch
- Project