CAP vs. llms.txt

CAP vs. llms.txt

llms.txt tells a model what to read. agent.txt tells an agent where to ask. One hands over pages. The other hands over an answer.

Side by side

How CAP and llms.txt differ

llms.txt is a markdown file at /llms.txt that lists the pages and documentation a model should read about a site. The Concierge Agent Protocol (CAP) lets any visiting agent ask a company's own agent a question, found from agent.txt on the domain.

CAP compared with llms.txt
CAPllms.txt
What it gives an agentA URL to send a question toA list of pages to read
Who does the workThe company’s agent searches its record and answersThe visiting agent reads the pages and works out the answer
Data that changesAnswered from the record when the question is askedAs current as the pages it lists
Questions that need filtersOne question, answered by search and structured queriesSeveral pages read and pieced together
Account questionsYes, with an OAuth token the person grantsNo
What the company seesEvery question askedPage requests, if it logs them

Fair to say

When llms.txt is the right fit

A few accurate pages

When every answer is already on a few pages that stay current, reading them is faster, and llms.txt is enough.

Documentation for builders

Docs a developer’s coding agent reads in full belong in llms.txt and llms-full.txt.

Together

Use both

The CAP spec asks for one line in llms.txt that points at /agent.txt, so an agent reading your docs finds the door. Cosmic can also build your agent from your public pages, including the ones your llms.txt lists, as a starting point before your content is in Cosmic.

Host your CAP agent on Cosmic

Cosmic runs the agent behind your agent.txt, free on every agent, from the content you publish. No agent yet? Enter your site and Cosmic builds one from your pages.