# hunk を Homebrew, Nix, scoop でインストール

hunk のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:hunk
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install hunk
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#hunk
```

  証拠: nixpkgs package indexes: pkgs/by-name/hu/hunk/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/hunk
```

  証拠: Scoop official bucket manifest trees: bucket/hunk.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:hunk
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/hunk>
- **バージョン:** 0.17.7
- **ソース概要:** Review-first terminal diff viewer for agent-authored changesets
- **ホームページ:** <https://hunk.dev/>
- **リポジトリ:** <https://github.com/modem-dev/hunk>
- **上流ドキュメント:** <https://hunk.dev/>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/modem-dev/hunk/archive/refs/tags/v0.17.7.tar.gz>
- **最終更新:** 2026-07-29T03:10:02Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- hunk (cli)
- hunk (エイリアス)

## ビルド依存関係

- bun
- node

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.17.7
- マネージャ更新日: 2026-07-29
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/modem-dev/hunk
- 検出された最新: v0.17.7 (最新)
## プロジェクトの歴史と使われ方

hunk is a review-first terminal diff viewer for agent-authored changesets. It sits in the developer-tools package niche around Git diffs, terminal UIs, code review, and AI-agent review workflows.

### プロジェクトの歴史

The official GitHub repository was created on 2026-03-17, and its README describes Hunk as a review-first terminal diff viewer built on OpenTUI and Pierre diffs.

The README documents multi-file review navigation, inline AI and agent annotations, split and stacked layouts, watch mode, keyboard and mouse support, pager support, Git difftool support, Jujutsu and Sapling integration, and an OpenTUI component export.

### 採用の歴史

Hunk's official homepage positions it as a diff viewer for humans and agents, with install paths through npm, Homebrew, and Nix.

The changelog shows rapid early adoption of package-manager concerns in spring 2026: Homebrew tap automation, prebuilt Windows support, npm packaging fixes, Nix outputs, release benchmarks, and performance work for large reviews.

### 使われ方

The README documents hunk diff for current repository changes, hunk show for commits, hunk patch for patch input, hunk pager for Git pager integration, and hunk session commands for live agent review workflows.

Preferences can be persisted in ~/.config/hunk/config.toml or .hunk/config.toml, including theme, layout mode, VCS override, watch behavior, line numbers, wrapping, menu bar, agent notes, and transparent background.

### パッケージ好きにとっての重要性

hunk is package-nerd significant because it packages a modern terminal review UI across npm, Homebrew, and Nix while also publishing prebuilt artifacts and an embeddable OpenTUI component.

Its focus on agent-authored changesets makes it part of the 2020s shift from plain diff pagers toward review tools that can display machine-written context beside code.

### タイムライン

- 2026-03-17: The official GitHub repository was created.
- 2026-03-20: The changelog lists the 0.1.0 release.
- 2026-05-12: Version 0.12.0 added Homebrew tap release automation, Windows support, Nix outputs, and npm packaging improvements.
- 2026-06-19: GitHub releases list v0.16.0.

### Related projects

- The README compares Hunk with lumen, difftastic, delta, diff-so-fancy, and GNU diff.
- The project is built on OpenTUI and Pierre diffs and integrates with Git, Jujutsu, and Sapling.

### ソース

- <https://api.github.com/repos/modem-dev/hunk>
- <https://api.github.com/repos/modem-dev/hunk/releases?per_page=10>
- <https://github.com/modem-dev/hunk>
- <https://hunk.dev/>
- <https://raw.githubusercontent.com/modem-dev/hunk/main/CHANGELOG.md>
- <https://raw.githubusercontent.com/modem-dev/hunk/main/README.md>


## セキュリティノート

hunk に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、パッケージメタデータはここに公開されています。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.config/hunk/config.toml, .hunk/config.toml
## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** hunk
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 他のパッケージマネージャ記録

- Nix - hunk: normalized package name match | nixpkgs package indexes: pkgs/by-name/hu/hunk/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - main/hunk: normalized package name match | Scoop official bucket manifest trees: bucket/hunk.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [node](https://pkg.so/ja/brew/node/) - Build dependency declared by Homebrew.
- [bun](https://pkg.so/ja/brew/bun/) - Build dependency declared by Homebrew.
- [diffr](https://pkg.so/ja/brew/diffr/) - Shares pkgdb curated category or tags: cli, code-review, developer-tools, diff, git.
- [gerrit-tools](https://pkg.so/ja/brew/gerrit-tools/) - Shares pkgdb curated category or tags: cli, code-review, developer-tools, git.
- [diff-so-fancy](https://pkg.so/ja/brew/diff-so-fancy/) - Shares pkgdb curated category or tags: cli, developer-tools, diff, git, terminal.
- [gitui](https://pkg.so/ja/brew/gitui/) - Shares pkgdb curated category or tags: cli, developer-tools, git, terminal, tui.
- [serie](https://pkg.so/ja/brew/serie/) - Shares pkgdb curated category or tags: cli, developer-tools, git, terminal, tui.
- [gitu](https://pkg.so/ja/brew/gitu/) - Shares pkgdb curated category or tags: cli, developer-tools, git, terminal, tui.
- [gitlogue](https://pkg.so/ja/brew/gitlogue/) - Shares pkgdb curated category or tags: cli, developer-tools, git, terminal, tui.
- [diffnav](https://pkg.so/ja/brew/diffnav/) - Shares pkgdb curated category or tags: cli, developer-tools, diff, git, tui.
- [difi](https://pkg.so/ja/brew/difi/) - Local package facts share a topical domain. Shared terms: cli, code, code-review, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/hunk.yml](https://github.com/mxcl/pkgdb/blob/main/combined/hunk.yml)


## ソース

- pkg.so package database
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
