{"slug": "hunk-review-first-terminal-diff-viewer-for-agentic-coders", "title": "Hunk – Review-first terminal diff viewer for agentic coders", "summary": "Hunk, a new terminal diff viewer designed for agentic coders, has been released, offering a review-first interface that displays entire changesets in a single stream with side-by-side and stacked layouts, keyboard navigation, and support for agent annotations. The tool can be installed via npm (`npm i -g hunkdiff`), Homebrew (`brew install hunk`), or Nix (`nix run github:modem-dev/hunk`), and requires Node.js 18 or newer for npm installs.", "body_md": "### One stream, every file.\n\nThe whole changeset reads top to bottom in sidebar order — no flipping between single-file views. File counts at a glance, hunk jumps with [ and ], and the sidebar takes you straight to any file.\n\n[How reviews work →](/docs/workflows/working-trees-and-commits/)\n\nHunk is a review-first diff viewer that plays nice with agents. It's fast, it looks good, and it works everywhere.\n\n# from the community\n\n# what you get\n\nThe whole changeset reads top to bottom in sidebar order — no flipping between single-file views. File counts at a glance, hunk jumps with [ and ], and the sidebar takes you straight to any file.\n\nAgents leave notes in a sidecar; hunk renders each one inside the diff, right above the hunk it annotates — summary, rationale, and author. Step through hunks with [ and ] and the notes follow.\n\nClick a file in the sidebar to jump, wheel-scroll the stream, hover a row to leave a note — or never leave the keyboard. Pipe patches straight in and hunk is your pager, too.\n\nSide-by-side when your terminal is wide, stacked when it's narrow. Auto picks for you; press 1, 2, or 0 to override at any time, with wrapping and line numbers toggled live.\n\nUnderstand structure, not just added and removed lines. Ships with its own looks plus the classics — Catppuccin, Dracula, Gruvbox, GitHub, and more — or roll your own in config.\n\n# install\n\n`npm i -g hunkdiff`\n\n`brew install hunk`\n\n`nix run github:modem-dev/hunk`\n\nThen **hunk diff** to review your working tree, or **hunk show** to review a commit. npm installs require Node.js 18 or newer.", "url": "https://wpnews.pro/news/hunk-review-first-terminal-diff-viewer-for-agentic-coders", "canonical_source": "https://www.hunk.dev/", "published_at": "2026-08-01 00:04:20+00:00", "updated_at": "2026-08-01 00:22:33.707685+00:00", "lang": "en", "topics": ["developer-tools"], "entities": ["Hunk", "npm", "Homebrew", "Nix", "Node.js"], "alternates": {"html": "https://wpnews.pro/news/hunk-review-first-terminal-diff-viewer-for-agentic-coders", "markdown": "https://wpnews.pro/news/hunk-review-first-terminal-diff-viewer-for-agentic-coders.md", "text": "https://wpnews.pro/news/hunk-review-first-terminal-diff-viewer-for-agentic-coders.txt", "jsonld": "https://wpnews.pro/news/hunk-review-first-terminal-diff-viewer-for-agentic-coders.jsonld"}}