Loading
feat(minder): rename glab govern to glab minder
What does this MR do and why?
Renames glab govern to glab minder, keeping everything that earlier glab versions installed working.
glab minder audit sync,glab minder doctorandglab minder setupreplace theglab governcommands.glab governstays as a hidden command with the same subcommands. The Claude Code hooks, OpenCode plugin and fallback periodic sync job that earlier versions installed run it, so they keep syncing without any action. It is excluded fromglab mcp serve, so the tools are not listed twice.- Setup now installs hooks, a plugin and a job that run
glab minder:- Claude Code: the old
glab governhooks are replaced rather than kept next to the new ones, so a session is not synced twice. Uninstall removes both. - OpenCode: a plugin installed by an earlier version is recognised by its first line and replaced. The file name stays
glab-govern.js. - Fallback periodic sync: the job now runs
minder audit sync --all. The launchd label and systemd unit names are unchanged, so setup replaces the existing job.
- Claude Code: the old
- Doctor reports old hooks and an old job as working, with a prompt to run
glab minder setupagain. govern.AddSubcommandsaddsaudit,doctorandsetupto a given command, so they can be added to anotherglab mindercommand, such as the one in !4179 (merged). The Go packages stay underinternal/commands/governfor now.- Docs are regenerated under
docs/source/minder.
How to set up and validate locally
- With a glab built from
main, runglab govern setup. - Build this branch and run
glab govern doctorandglab minder doctor. Both work, and the hooks check says they runglab govern. - Run
glab minder setup.~/.claude/settings.jsonnow has oneglab minder audit syncStop hook and one SessionEnd hook, and noglab governhooks. - Run
glab minder setup --uninstall. The hooks, plugin and job are removed.