What a draft AIDOC file looks like
The actual generator would crawl a site and produce this. A site owner still has to review, sign, and host it themselves before any agent should trust it — see the Trust Model tab for why that step isn't optional.
Example output, for a small storefront
Field names are spelled out, not single letters. A byte-optimized .min.json variant can be generated separately for production hosting — see Comparison.
How this compares
Numbers below are illustrative, from one example site. Actual savings depend entirely on site size and structure — nobody should quote a fixed percentage without measuring their own case.
| Format | Purpose | Example size | Est. tokens |
|---|---|---|---|
| sitemap.xml | URL list for search crawlers | 18.5 KB | ~4,200 |
| llms.txt | Prose overview for LLM readers | 3-8 KB (varies widely) | no structured schema |
| AIDOC | Structured action graph for agents | 2.3 KB (this example) | ~650 |
llms.txt (prose, for reading)
Good for a human-like summary. An agent still has to infer parameters and affordances from prose.
AIDOC (structured, for acting)
Explicit fields an agent can parse directly, no inference needed.
The real open problem: can an agent trust this file?
Why this matters more than compression
A manifest is self-reported by whoever generates it. A field like "auth": "none" being wrong is a much bigger risk to an agent than a slow crawl would have been. Any design that skips provenance is optimizing the wrong variable.
Proposed baseline, borrowed from existing conventions
- Same-origin only. An agent should only trust an AIDOC file served from the domain it describes, at a fixed path — the same pattern
robots.txtandsecurity.txt(RFC 9116) already use:/.well-known/aidoc.json. A third party generating one for a domain it doesn't control should never be treated as authoritative. - Owner attestation. The file is signed with a key whose fingerprint is published via DNS TXT record on the same domain, so possession of the domain implies possession of the claims.
- Freshness check. Agents spot-check a small sample of claimed pages against the live site before relying on the manifest for anything consequential, like a checkout flow.
- Scoped trust. Navigation hints (what links to what) are low-stakes if wrong. Auth and rate-limit claims are high-stakes. Treat them differently rather than trusting the whole file uniformly.
What this tool is, honestly
A drafting aid. It crawls and proposes a manifest a site owner can review, edit, sign, and publish themselves. It is not a trust authority, and it does not make any claim about a site it didn't generate for. That distinction is the whole point.
AIDOC format specification (draft)
Overview
AIDOC is a structured, machine-parseable description of a site's pages, actions, and API
surface, intended for AI agents that need to act on a site rather than just read it.
It's meant to sit alongside llms.txt, not replace it.
Top-level fields
version: spec versiondomain: the domain this manifest describesgenerated_at: ISO 8601 timestamppages: array of page objects
Page object fields
path: URL pathpurpose: short label for the page's functionactions: interactions available on the pageparams: query or form parameterslinks_to: outbound navigation targetsmethods: HTTP methods, for API-like pagesresponse: response shape, for API-like pagestemplate: boolean, true if the path represents a parameterized template rather than a single page
Field names are spelled out on purpose. A separate minified build step can shorten keys for production hosting without forcing every consumer to memorize a cipher — legibility and byte count don't have to trade off against each other in the source spec.
Hosting convention
Served at /.well-known/aidoc.json on the domain it describes. See Trust Model for why same-origin hosting is a hard requirement, not a suggestion.
Draft-to-publish workflow
From crawl to a signed manifest an agent can actually rely on. Owner review and signing are non-optional steps, not implementation details.
The step that's easy to skip in a demo, and the one that actually matters, is Owner Review. A manifest an agent can act on without checking is only safe once a human who controls the domain has looked at it.