| glab(1) | glab(1) |
NAME
glab-govern-setup - Configure this machine to record AI agent sessions. (EXPERIMENTAL)
SYNOPSIS
glab govern setup [flags]
DESCRIPTION
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/.
OPTIONS
-y, --yes[=false] Skip confirmation prompt.
OPTIONS INHERITED FROM PARENT COMMANDS
-h, --help[=false] Show help for this command.
EXAMPLE
# Configure hooks for AI agent governance $ glab govern setup
SEE ALSO
| Sep 2026 | Auto generated by spf13/cobra |