Skip to content

Install the documentation for agents with the package - #4

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 spool 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 spool: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 spool should read the docs of the release it
builds against, but the package installed only its README, CHANGES and
LICENSE. starlight-hypha-agents writes each page as Markdown and
llms.txt into agents/ as the docs build, and the spool package installs
it into its doc directory. An agent reads it when told to, so the README
gives the one line for a project's AGENTS.md that sends it there. The
docs take starlight-theme-hypha 0.8.0, a look alone, beside it.

The docs workflow now builds every pull request, so a page changed
without agents/ fails before it lands, and deploys only from main.
`make docs` writes agents/, so it has no target of its own.
@zaiev
zaiev merged commit e685ee4 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