glab(1) glab(1)

glab-govern-audit-sync - Sync agent session data to GitLab. (EXPERIMENTAL)

glab govern audit sync [flags]

Read new entries from the local agent transcript since the last sync and POST them to GitLab as audit events.

Called by the Stop hook after every agent turn. Also used by the SessionEnd hook (with --complete) to mark the session as complete.

Project is resolved from:

1.
--project flag (requires --hostname)
2.
Git remote of the current directory

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/.

--complete[=false] Mark the session as completed. Used by the SessionEnd hook.

-H, --hostname="" GitLab hostname (required with --project).

-p, --project="" Project ID or path to sync against.

--silent[=false] Suppress all output. Used when invoked from hooks.

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

# Sync the current agent session to GitLab
$ glab govern audit sync
# Sync and mark the session as completed
$ glab govern audit sync --complete
# Sync against a specific project
$ glab govern audit sync --project my-group/my-project --hostname gitlab.com

glab-govern-audit(1)

Sep 2026 Auto generated by spf13/cobra