Skip to content

hk agent hooks

  • Usage: hk agent hooks <--target <TARGET>>
  • Effect: read-only

Print a hook configuration for an agent or editor

Flags

  • --target <TARGET> — Agent or editor to generate the hook configuration for

    Choices: codex, claude-code, vscode

  • -h --help — Print help

Examples

Print a hook or task snippet to review and merge into your host configuration.

sh
hk agent hooks --target claude-code
hk agent hooks --target vscode

Learn more

Coding agents · Troubleshooting · All commands

MIT LicenseCopyright © 2026jdx.dev