🔧 Công cụ lập trình•Mã nguồn mở•Đang hoạt động
Hunk
Terminal diff viewer thiết kế cho agentic coding: review thay đổi từ AI agent ngay trong terminal.
#hunk
Danh mục
🔧 Công cụ lập trình
Giá
Mã nguồn mở
GitHub Stars
⭐ 9,477
Ngôn ngữ
TypeScript
License
MIT
Ngày thêm
2026-03-29
Tóm tắt từ README GitHub
hunk
Hunk is a review-first terminal diff viewer for agent-authored changesets, built on OpenTUI and Pierre diffs.
hunk.dev · Documentation
- multi-file review stream with sidebar navigation
- inline AI and agent annotations beside the code
- split, unified, and responsive auto layouts
- watch mode for auto-reloading file and Git-backed reviews
- keyboard, mouse, pager, and Git difftool support
Split view with sidebar and inline AI notes
Unified view and mouse-selectable menus
Install
The default installation method on macOS and Linux downloads a standalone binary and installs it into . It checks the archive against the release checksum when both and a supported checksum tool are available, and warns otherwise. Release discovery uses Hunk's anonymous aggregate endpoint with direct GitHub fallback:
Windows users can install with npm or mise. Other installation methods are also available:
If you previously installed hunk via , be sure to uninstall it first with .
Windows requires mise 2026.8.6 or newer. Nix users can use the package exported in ; see the Nix guide for details. Hunk also ships as a default tool in Omarchy, installed through mise.
Requirements:
- macOS,
Xem thêm từ README.mdThu gọn README.md
Đánh giá chi tiết
Tổng quan
Hunk là diff viewer chạy trong terminal, thiết kế riêng cho workflow agentic coding. Khi AI agent sửa code, bạn review thay đổi ngay trong terminal với giao diện dễ đọc hơn git diff thông thường.
Tính năng chính
- Review-first: hiển thị diff ưu tiên việc review
- Chạy trong terminal, không cần mở browser
- Thiết kế cho output từ AI coding agent
- Syntax highlighting
Ai nên dùng
Developer sống trong terminal và dùng AI coding agent. Ai muốn review nhanh mà không rời terminal.
Hạn chế
Còn rất mới (301 stars, ra mắt 03/2026). Tính năng còn cơ bản.