Skip to content

add AGENTS.md for coding agents - #1

Merged
fr3shw3b merged 4 commits into
mainfrom
docs/agents-md
Nov 22, 2026
Merged

fr3shw3b merged 4 commits into
mainfrom
docs/agents-md

Conversation

@fr3shw3b

@fr3shw3b fr3shw3b commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Adds an AGENTS.md for coding agents, with a one-line CLAUDE.md that imports it. It also serves the lo1 config schema at the URL the SDK promises, and fixes a broken anchor and three site bugs. Merging deploys the site.

Reading order

  1. Schema (first commit):
    • The problem: the lo1 SDK's JSON Schema $id, which is also the URL its README tells users to point their editors at, is https://lo1.dev/schemas/lo1.v1.schema.json. It 404'd.
    • Schema copy: public/schemas/lo1.v1.schema.json is an unchanged copy of lo1's packages/sdk/schemas/lo1.v1.schema.json.
    • Sync check: schema-sync.yml checks the copy against lo1's main byte for byte, every Monday and when public/schemas/ changes. It's adapted from celerity-docs' check for the handler manifest schema.
  2. Anchor (second commit): configuration.mdx linked /docs/cli#lo1-restart, but the heading renders as lo1-restart-services.
  3. AGENTS.md (third commit). These sections matter most:
    • Running locally:
      • Don't copy .env.example to .env, because its placeholders switch search on and make sync-content try to run.
      • A local newsletter signup sends a real confirmation email.
    • Compatibility:
      • The schema's $id path can't move.
      • lo1 doctor links /docs/troubleshooting.
      • The landing showcase mirrors lo1's examples/shop.
    • Safety: a push to main deploys, with nothing building a PR first.
  4. Site fixes (fourth commit):
    • Markdown links on parent pages: "Copy Markdown" and "Open in…" on /docs and /docs/plugins 404'd. The export writes pages with child pages at llms.mdx/<path>/index, so toMarkdownUrl now adds /index for those.
    • Social metadata: docs pages didn't go through createMetadata, so they took the home page's OpenGraph title. createMetadata also hard-coded og:url to the site root for every page. Each page now sets its own og:url, and docs pages get their own title.
    • Sitemap: the URLs now end in /, the canonical form with trailingSlash: true, so they no longer redirect.

Found while writing this, not changed here

  • README:
    • It describes src/app/(home) and src/components as only the landing page, and doesn't mention the blog, analytics or newsletter.
    • It says the sync needs ALGOLIA_SECRET_API_KEY "also", but the sync checks the app ID and the secret key, not the index name.

Verification

  • Build: yarn install --immutable, then yarn next build without .env.
  • Schema: out/schemas/lo1.v1.schema.json is exported, identical to the copy and to lo1's main (cmp against the raw GitHub URL).
  • Anchor: id="lo1-restart-services" is in out/docs/cli/index.html.
  • Links: yarn check-links reports no errors.
  • After the site fixes: yarn lint (no errors; its 3 warnings are in files this PR doesn't touch) and the build pass. In the export:
    • /docs/ links /llms.mdx/index and /docs/plugins/ links /llms.mdx/plugins/index, and both files exist. /docs/cli/ still links /llms.mdx/cli.
    • og:title and og:url are per page: Introduction | lo1 at https://lo1.dev/docs/, CLI reference | lo1 at https://lo1.dev/docs/cli/, Privacy | lo1 at https://lo1.dev/privacy/, and the home page at https://lo1.dev/.
    • Sitemap URLs end in /.

🤖 Generated with Claude Code

fr3shw3b and others added 4 commits November 22, 2026 17:30
The lo1 SDK's JSON Schema $id, and the URL its README tells users to point
their editors at, is https://lo1.dev/schemas/lo1.v1.schema.json, which 404'd. A
copy of lo1's packages/sdk/schemas/lo1.v1.schema.json now lives in
public/schemas, and schema-sync.yml checks it against lo1's main weekly and on
changes, as celerity-docs does for the handler manifest schema.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The heading renders as lo1-restart-services, so the link landed at the top of
the cli page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds AGENTS.md, and a CLAUDE.md that imports it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sitemap urls

Pages with child pages are exported at llms.mdx/<path>/index, so their copy
markdown and open in links 404'd. Docs pages took the home page's open graph
title and url, and every page's og:url was the home page. Sitemap urls lacked
the trailing slash the static export redirects to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fr3shw3b
fr3shw3b merged commit 0c4073b into main Nov 22, 2026
1 check passed
@fr3shw3b
fr3shw3b deleted the docs/agents-md branch November 22, 2026 17:39
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