Skip to content

fix(frontlit-pages): nest agentInstructions headings under llms.txt's - #14

Merged
s3rot0n1n merged 1 commit into
mainfrom
fix/llms-headings
Nov 15, 2026
Merged

s3rot0n1n merged 1 commit into
mainfrom
fix/llms-headings

Conversation

@clbotdev

Copy link
Copy Markdown
Collaborator

#13 told agents that agentInstructions is /llms.txt, and it exempted it from the heading check so it could start with a # Title. That was wrong. FrontLit publishes the text under its own # <site title>, the branding subtitle and an ## Agent instructions heading. A # title in the text duplicates the H1, and ## sections land at the same level as ## Agent instructions. CourseLit hit this on its live beta (codelitdev/courselit#883).

  • check.mjs: warns on # or ## headings inside agentInstructions.
  • references/format.md: describes the wrapper and says to start sections at ###.

FrontLit publishes agentInstructions under its own # title and
## Agent instructions heading. The checker now warns on # and ## there,
and format.md tells agents to start sections at ###.
@s3rot0n1n
s3rot0n1n merged commit 66cdd74 into main Nov 15, 2026
1 check 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.

2 participants