Automic VaultAutomic Vault

brew

Installer hk avec Homebrew, MacPorts, scoop

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de hk pour les workflows d'agents IA.

installation

Commandes d'installation supplémentaires

macOS

Homebrewvérifié · 100%
brew install hk

local Homebrew formula metadata

MacPortsvérifié · 94%
sudo port install hk

MacPorts ports tree · devel/hk/Portfile · Source: api.github.com

Windows

Scoopvérifié · 92%
scoop install main/hk

Scoop official bucket manifest trees · bucket/hk.json · Source: api.github.com

aperçu

Résumé du paquet

Git hook and pre-commit lint manager

Commandes et alias

  • generate-docs
  • hk

historique

Historique du projet et usages

hk is a Rust git-hook manager and project lint runner by jdx, designed around fast hook execution, tighter linter integration, and safe parallelism through read/write file locking.

Historique du projet

The official README describes hk as a git hook manager and project linting tool with an emphasis on performance. Its About page explains the motivation: git hooks need to be fast or developers stop using them, and naive parallel execution can break when multiple formatters or linters modify the same files.

hk's configuration model uses Apple's Pkl language through hk.pkl files. The configuration documentation describes layered sources, including built-in defaults, user-level hkrc, project config, Git config, environment variables, and CLI flags.

Historique d'adoption

hk is a young tool in the git-hook manager space. The GitHub repository was created in January 2025, early GitHub releases began in March 2025, and the documentation quickly oriented around global Git hook installation, per-project hk.pkl files, and integration with mise-en-place.

The input package facts show packaging through Homebrew, MacPorts, and Scoop, which is a practical footprint for a developer CLI aimed at local workstations rather than servers.

Modes d'utilisation

The intended workflow is to install hooks globally or per repository, run hk init to create hk.pkl, and then let Git events run configured lint and fix steps. hk check and hk fix provide explicit command-line entry points for running checks outside Git hooks.

The configuration docs emphasize precedence and local overrides: hk.local.pkl is for local changes that should not be committed, while ~/.config/hk/config.pkl can hold user-wide defaults.

Pourquoi les passionnés de paquets s'y intéressent

hk matters to package nerds because it is part of the newer wave of developer workflow CLIs that try to make local checks fast enough to keep enabled. Its differentiator is not another hook file format by itself, but the combination of Pkl configuration, built-in linter definitions, libgit2 usage, mise integration, and locking around file modification.

It also reflects a packaging trend: single-purpose Rust CLIs distributed through Homebrew, Scoop, MacPorts, and direct release binaries for developers who want one binary in their path.

Chronologie

  • 2025-01-26: The jdx/hk GitHub repository was created.
  • 2025-03-29: Early v0.6.x GitHub releases were published.
  • 2025: hk documentation described global Git hook installation and hk.pkl project setup.
  • 2026: hk documentation described pklr as the built-in Pkl evaluator and layered configuration sources.

Related projects

  • mise-en-place: jdx's environment/tool-version manager that hk documentation names as an integration point.
  • pre-commit, lefthook, Husky, lint-staged: adjacent git-hook and lint-running tools in the same developer workflow category.
  • Pkl: Apple's configuration language used for hk.pkl.

posture de sécurité

Niveau de risque : vert

narrow executable package without higher-risk signals.

Classificateur de risque

risque vert · confiance faible · appliance

Pourquoi

  • narrow executable package without higher-risk signals

Signaux

  • metadata:no-higher-risk-signals

Comportement d'installation

  • Aucun hook post-install Homebrew n’est enregistré dans les métadonnées de formule.
  • Les métadonnées de bottle Homebrew sont disponibles pour 6 plateformes.
  • S’installe avec 2 dépendances d’exécution.
  • Les métadonnées de compilation listent 2 dépendances de compilation.

Revue recommandée

Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.

local files

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

Config paths the tool may read or write during local use.

Unix
hk.local.pkl.config/hk.local.pklhk.pkl.config/hk.pkl~/.config/hk/config.pkl

exécutables

Exécutables installés

CommandeTypeExpositionNote
generate-docscliexécutable global
hkcliexécutable global

fraîcheur

Version et fraîcheur

Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.

page générée2026-07-25
version du gestionnaire1.53.0
gestionnaire mis à jour2026-07-25
données localesOK
amontnot checked
dernière version détectéenon détecté

https://github.com/jdx/hk

métadonnées d'installation

Métadonnées du paquet

Clé du paquetbrew:hk
Version1.53.0
Gestionnaire de paquetsHomebrew
Page du gestionnaire de paquetshttps://formulae.brew.sh/formula/hk
Page d'accueilhttps://hk.jdx.dev
Dépôthttps://github.com/jdx/hk
Docs amonthttps://hk.jdx.dev/
LicenceMIT
Archive sourcehttps://github.com/jdx/hk.git
Dernière mise à jour2026-07-25T01:00:14Z
Pulseupdated
Dépendancesopenssl@3, usage
Dépendances de compilationpkl, rust
Bouteilledisponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
post-install Homebrewnon défini
Serviceaucun déclaré

faits du registre

Détails de la base source

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namehk
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

correspondances dans les bases sources

Autres enregistrements de gestionnaires de paquets

Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.

MacPorts95%

hk

sudo port install hk
  • normalized package name match
  • Correspondance par : Hk
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/hk/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/hk

scoop install main/hk
  • normalized package name match
  • Correspondance par : Hk
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/hk.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

piste source

Généré depuis les données du dépôt

Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.

Combined YAML source

View the package source record on GitHub.

combined/hk.yml

Sources utilisées

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment