Skip to content

Install the documentation for agents with the package - #2

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 rowtype 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 rowtype: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 rowtype should read the docs of the release
it builds against, but the packages installed only their README,
CHANGES and LICENSE. starlight-hypha-agents writes each page as
Markdown and llms.txt into agents/ as the docs build, and the rowtype
package, which every other one depends on, 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 0406c65 into main Nov 22, 2026
5 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