glab(1) glab(1)

glab-govern-setup - Configure this machine to record AI agent sessions. (EXPERIMENTAL)

glab govern setup [flags]

Configure the current machine for AI agent governance session capture.

Installs the following:

  • Stop hook in ~/.claude/settings.json
  • SessionEnd hook in ~/.claude/settings.json

The Stop and SessionEnd hooks are the sync mechanism. Safe to run multiple times — existing hooks are not duplicated. Run glab govern doctor afterwards to verify the setup.

This feature is an experiment and is not ready for production use. It might be unstable or removed at any time. For more information, see https://docs.gitlab.com/policy/development_stages_support/.

-y, --yes[=false] Skip confirmation prompt.

-h, --help[=false] Show help for this command.

# Configure hooks for AI agent governance
$ glab govern setup

glab-govern(1)

Sep 2026 Auto generated by spf13/cobra