Skip to content

docs: reconcile --gitignore-global wording with shipped --visibility=global-default - #85

Merged
Lillevang merged 1 commit into
mainfrom
docs/reconcile-gitignore-global-65
Jul 17, 2026
Merged

docs: reconcile --gitignore-global wording with shipped --visibility=global-default#85
Lillevang merged 1 commit into
mainfrom
docs/reconcile-gitignore-global-65

Conversation

@Lillevang

Copy link
Copy Markdown
Owner

Closes #65.

Problem

The canonical instructions in .agent/AGENTS.md (symlinked as AGENTS.md / CLAUDE.md / .agent/CLAUDE.md) still described machine-wide git excludes as a planned, not-yet-exposed --gitignore-global flag. That capability has shipped as agent-init init --visibility=global-default (#52 / #61, alongside the local and hidden modes in #70). The doc contradicted the binary and risked a contributor re-implementing it under the old flag name.

Changes (all in .agent/AGENTS.md)

  • Flags table — add --visibility and --private rows.
  • "Planned --gitignore-global" section → replaced with "Visibility and global excludes", describing the four shipped modes and noting --visibility=global-default is the superseding form. Machine-wide footgun warning kept.
  • Naming example--gitignore-global → real shipped flags (--no-git, --dry-run, --visibility).
  • Global-git-config guardrail ("What you should NOT do") — now references --visibility=global-default.
  • "Global gitignore is a footgun" note — reframed as shipped, warning preserved.

Two --gitignore-global mentions remain by design, both framing it as the old name superseded by --visibility=global-default.

Not changed (verified consistent)

README.md and docs/cli.md already document --visibility including global-default, with no stale --gitignore-global references — the issue's third acceptance criterion was already satisfied.

Notes

Touches this repo's own .agent/ canonical instructions, normally off-limits without an explicit ask — issue #65 is that authorization. Docs-only; no code or templates changed, so no golden/smoke impact. go vet and go test ./... pass.

🤖 Generated with Claude Code

Closes #65.

The canonical instructions (.agent/AGENTS.md, symlinked as AGENTS.md /
CLAUDE.md / .agent/CLAUDE.md) still described machine-wide git excludes as
a *planned, not-yet-exposed* `--gitignore-global` flag. That capability
shipped as `agent-init init --visibility=global-default` (#52/#61, plus
the hidden/local modes in #70), so the doc contradicted the binary and
risked someone re-implementing it under the old flag name.

- Add `--visibility` and `--private` rows to the "Flags on init" table.
- Replace the "Planned `--gitignore-global`" section with "Visibility and
  global excludes", describing the shipped modes and noting global-default
  is the superseding form. Machine-wide footgun warning preserved.
- Update the kebab-case flag example and the global-git-config guardrail
  to reference `--visibility=global-default`.
- Reframe the "Global gitignore is a footgun" note as shipped, keeping the
  warning.

README.md and docs/cli.md already document --visibility (incl.
global-default) with no stale `--gitignore-global` mentions; verified, no
change needed there.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Lillevang
Lillevang merged commit 8affd12 into main Jul 17, 2026
1 check passed
@Lillevang
Lillevang deleted the docs/reconcile-gitignore-global-65 branch July 17, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: reconcile '--gitignore-global' wording now that --visibility=global-default ships the capability

1 participant