Skip to content

docs: multi-location hubs + AGENTS.md/CLAUDE.md claims (and dogfood it)#133

Merged
Connorrmcd6 merged 2 commits into
mainfrom
docs/agents-hub-multi-glob
Jun 17, 2026
Merged

docs: multi-location hubs + AGENTS.md/CLAUDE.md claims (and dogfood it)#133
Connorrmcd6 merged 2 commits into
mainfrom
docs/agents-hub-multi-glob

Conversation

@Connorrmcd6

@Connorrmcd6 Connorrmcd6 commented Jun 17, 2026

Copy link
Copy Markdown
Owner

Summary

Documents two things Surface already supports but the docs didn't spell out — framed as possibilities users can choose, not prescriptions — then dogfoods one of them on this repo.

What changed

Docs

  • docs/reference/configuration.md — multi-glob surf.toml example; matches are unioned then sorted/de-duped (overlaps safe); any matching file that parses as a hub counts (incl. AGENTS.md); caveat that surf new uses only the first glob to scaffold.
  • docs/guides/authoring-hubs.md — new "Claims in AGENTS.md / CLAUDE.md" section showing how those files can double as hubs, with the two gotchas (whole file must parse as a hub; it couples the file to code/CI). The keep-them-separate default is left intact; the fold-in is presented as a deliberate trade-off.

Dogfood

  • surf.tomlhubs = ["hubs/*.md", "AGENTS.md"].
  • AGENTS.md — now itself a hub: one sealed claim anchored to lint_agents_pointer (the lint rule that polices AGENTS.md). Writing the claim surfaced that the old prose overstated the rule (it enforces link + directory-existence, not non-enumeration), so the prose is corrected to match the symbol. Everything else stays plain, unanchored instruction.
  • docs/dogfood-log.md — dated entry on how making the file sealable forced the prose honest.

Verification

  • cargo fmt --all --check — pass
  • surf lint — 0 errors (13 pre-existing advisory coverage warnings, unrelated)
  • surf check — all anchored spans match their stored hashes

🤖 Generated with Claude Code

Connorrmcd6 and others added 2 commits June 17, 2026 21:17
The hubs glob is a list, and any matched file that parses as a hub
counts — including AGENTS.md/CLAUDE.md. Surface both possibilities so
users can decide, rather than implying hubs must live in hubs/.

configuration.md gains a multi-glob example (noting the union/dedup and
the surf-new-uses-first-glob caveat). authoring-hubs.md gains a "Claims
in AGENTS.md / CLAUDE.md" section presented as a deliberate trade-off,
keeping the existing keep-them-separate default intact.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add AGENTS.md to the hubs glob and seal a single claim anchored to
lint_agents_pointer — the lint rule that governs AGENTS.md itself.
Writing a sealable claim surfaced that the existing prose overstated
the rule (it enforces link+existence, not non-enumeration), so the
prose is corrected to match the symbol. Logged in the dogfood-log.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Connorrmcd6 Connorrmcd6 changed the title docs: multi-location hubs and AGENTS.md/CLAUDE.md claims docs: multi-location hubs + AGENTS.md/CLAUDE.md claims (and dogfood it) Jun 17, 2026
@Connorrmcd6 Connorrmcd6 merged commit 7b641a4 into main Jun 17, 2026
5 checks passed
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.

1 participant