Skip to content

Install the documentation for agents with spindle - #3

Merged
zaiev merged 1 commit into
mainfrom
starlight-hypha-agents
Nov 22, 2026
Merged

zaiev merged 1 commit into
mainfrom
starlight-hypha-agents

Conversation

@zaiev

@zaiev zaiev commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Why

An agent building on spindle reads what is installed with it, and the package installed only its README, CHANGES and LICENSE: the docs, and their examples, were out of reach, so an agent wrote by hand what the library already does.

Changes

  • The package installs its documentation for agents, each page as Markdown and llms.txt, at $(opam var spindle:doc), written by starlight-hypha-agents from the docs' pages.
  • The README's With an agent gives the line a user puts in their project's AGENTS.md so their agent reads it.
  • The docs take starlight-theme-hypha v0.8.0; the docs workflow builds every pull request, fails if agents/ differs from what the pages write, and deploys only main.

Verified

  • make docs, make lint and make test; dune build @install puts llms.txt and pages/ in the package's doc.

An agent writing code with spindle knew only the README and the
changelog the package installs: the tutorial and guides, where routes,
dependencies and each battery are shown whole, stayed online, and never
at the release it builds against. starlight-hypha-agents writes each
page as Markdown and llms.txt from the same pages people read, and
spindle installs them.

An agent reads them only when told to, so the README gives a user the
one line for their project's AGENTS.md that sends it there.

The docs workflow now builds every pull request and fails if agents/
differs from what the pages write, so the installed pages cannot drift;
it deploys from main alone. The theme moves to 0.8.0, which leaves what
agents read to that plugin.
@zaiev
zaiev merged commit ae42769 into main Nov 22, 2026
4 checks passed
@zaiev
zaiev deleted the starlight-hypha-agents branch November 22, 2026 00:22
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