- run multi-agent teams,
- care about consistent quality gates (tests, formatting, PR hygiene),
- or want predictable communication and safety behavior.
File locations
gg supports two scopes:- Global (applies everywhere):
$HOME/.agents/gg/lead.md
- Workspace (repo-specific):
<workspace>/.agents/gg/lead.md
bun run check:all before shipping”) without changing your global defaults.
Editing lead instructions
You can edit lead instructions either:- in-app (Preferences / Rules), or
- directly in the
lead.mdfile on disk.
What to put in lead instructions
Strong lead instructions usually include:- Definition of done: what “complete” means for your team.
- Quality gates: tests, typechecks, linters, formatting.
- Tool safety: when to ask before running installs or destructive commands.
- Communication norms: how often to report status, when to broadcast vs DM.
- Repo conventions: naming, structure, commit messages, review expectations.

