.nh .TH "glab" "1" "Sep 2026" "Auto generated by spf13/cobra" "" .SH NAME glab-govern-setup - Configure this machine to record AI agent sessions. (EXPERIMENTAL) .SH SYNOPSIS \fBglab govern setup [flags]\fP .SH DESCRIPTION Configure the current machine for AI agent governance session capture. .PP Installs the following: .IP \(bu 2 Stop hook in \fB~/.claude/settings.json\fR .IP \(bu 2 SessionEnd hook in \fB~/.claude/settings.json\fR .PP The Stop and SessionEnd hooks are the sync mechanism. Safe to run multiple times — existing hooks are not duplicated. Run \fBglab govern doctor\fR afterwards to verify the setup. .PP 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/. .SH OPTIONS \fB-y\fP, \fB--yes\fP[=false] Skip confirmation prompt. .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB-h\fP, \fB--help\fP[=false] Show help for this command. .SH EXAMPLE .EX # Configure hooks for AI agent governance $ glab govern setup .EE .SH SEE ALSO \fBglab-govern(1)\fP