{
  "id": "B15-MAP",
  "url": "https://cartforagents.com/guides/agents-md",
  "title": "agents.md for online stores: the agent file Shopify serves for you, explained line by line",
  "description": "What agents.md is on a Shopify store, what the default file says, how it differs from llms.txt and robots.txt, whether to edit it, and an annotated real example. Plus a short note on AGENTS.md for code.",
  "answer": "agents.md is a Markdown file that tells AI agents how to work with something. On a Shopify store, it's a page at yourstore.com/agents.md that Shopify writes and serves for you, telling shopping agents how to find your products, use your cart and checkout, and read your policies. Shopify calls it your canonical agent discovery URL, and for most stores the default file needs no editing.",
  "take": "Leave Shopify's default agents.md alone and fix what it points to instead. In 7 of the 13 store files we read, there was no shipping policy to link, and that's a five-minute fix in Settings > Policies.",
  "summary": "Shopify now serves an agents.md file on every store: a plain page that tells shopping agents how to browse your products and check out with your buyer's approval. We read the file on 13 real stores. Here is what it says, what it does and doesn't do for you, and the one gap worth fixing this week.",
  "claims": [
    {
      "text": "Every Shopify store automatically serves /agents.md, which Shopify calls \"your canonical agent discovery URL, which is the source of truth and the primary location for agent discovery information\", plus /llms.txt and /llms-full.txt. By default all three return the same content, including the store name, store URL, sitemap link, store policies and discovery endpoints. Shopify Catalog remains the authoritative product feed, and the discovery files don't replace it.",
      "source_title": "Shopify Help Center: Shopify Catalog and product discovery for agentic storefronts, Understanding your store information that AI agents can find",
      "source_url": "https://help.shopify.com/en/manual/online-sales-channels/agentic-storefronts/products",
      "source_date": "2026-11-07",
      "method": "documented",
      "limitation": "Living help page. Our spot checks found headless (Hydrogen) storefronts didn't serve the file on their main domain."
    },
    {
      "text": "Shopify's developer docs say the agents.md file covers the store's Universal Commerce Protocol (UCP) discovery and Model Context Protocol (MCP) endpoints, read-only browsing URLs, published policies and guidance for personal shopping agents such as the Shop skill. Shopify manages it by default for every store and says the managed file is all most stores need.",
      "source_title": "Shopify.dev: agents.md.liquid",
      "source_url": "https://shopify.dev/docs/storefronts/themes/architecture/templates/agents-md-liquid",
      "source_date": "2026-11-07",
      "method": "documented",
      "limitation": "Developer documentation; living page."
    },
    {
      "text": "The agents.md.liquid template renders with a restricted Liquid context: only the request and agents objects are available, and standard objects such as shop, collections, pages and linklists render blank. The agents object provides store_name, store_url, ucp_discovery_url, mcp_endpoint_url, ucp_versions, currency and sitemap_url. Shopify warns against putting contact emails or phone numbers in the file, because it is broadly cached and served to every agent.",
      "source_title": "Shopify.dev: agents.md.liquid",
      "source_url": "https://shopify.dev/docs/storefronts/themes/architecture/templates/agents-md-liquid",
      "source_date": "2026-11-07",
      "method": "documented",
      "limitation": "Developer documentation; living page."
    },
    {
      "text": "Shopify looks for agents.md.liquid and then its own default for /agents.md; for /llms.txt and /llms-full.txt it checks the URL's own template first, then agents.md.liquid, then the default. The change shipped on May 28, 2026.",
      "source_title": "Shopify.dev changelog: Customize /llms.txt, /llms-full.txt and /agents.md",
      "source_url": "https://shopify.dev/changelog/posts/customize-llmstxt-llms-fulltxt-and-agentsmd",
      "source_date": "2026-11-07",
      "method": "documented",
      "limitation": "Changelog entry; the template reference has the current details."
    },
    {
      "text": "All 13 Shopify stores that answered at /agents.md served Shopify's default file, with the same six sections: Shop skill, UCP integration, interaction guidelines, read-only browsing, store policies and platform. None had been customized.",
      "source_title": "Cart for Agents: agents.md for online stores, How we checked",
      "source_url": "https://cartforagents.com/guides/agents-md#how-we-checked",
      "source_date": "2026-11-07",
      "method": "observed",
      "limitation": "Thirteen well-known brands, picked by hand, fetched once from a US server. Not a random sample."
    },
    {
      "text": "Seven of the 13 files linked three store policies with no shipping policy. On all seven of those stores, the shipping policy address either loaded with no policy text (six) or returned \"not found\" (one).",
      "source_title": "Cart for Agents: agents.md for online stores, How we checked",
      "source_url": "https://cartforagents.com/guides/agents-md#how-we-checked",
      "source_date": "2026-11-07",
      "method": "observed",
      "limitation": "We inferred that an empty policy is left out; Shopify doesn't document the rule. Seven stores, one check each."
    },
    {
      "text": "Four storefronts whose response headers said \"powered-by: Shopify, Oxygen, Hydrogen\" returned \"not found\" at /agents.md on their main domain. One other store redirected /agents.md to a Shopify-hosted checkout subdomain, which served the default file.",
      "source_title": "Cart for Agents: agents.md for online stores, How we checked",
      "source_url": "https://cartforagents.com/guides/agents-md#how-we-checked",
      "source_date": "2026-11-07",
      "method": "observed",
      "limitation": "Four headless stores, one fetch each. Shopify's docs don't say whether Hydrogen stores get the file."
    },
    {
      "text": "In 7 of 12 store robots.txt files we fetched, comment lines pointed agents to /agents.md and the store's UCP endpoints. The default /agents.md response also carried a Link header pointing to /.well-known/ucp.",
      "source_title": "Cart for Agents: agents.md for online stores, How we checked",
      "source_url": "https://cartforagents.com/guides/agents-md#how-we-checked",
      "source_date": "2026-11-07",
      "method": "observed",
      "limitation": "We don't know why the other five lacked the lines; some stores use their own robots.txt template."
    },
    {
      "text": "AGENTS.md is an open format for guiding coding agents, described as \"a README for agents\", used by over 60,000 open-source projects and stewarded by the Agentic AI Foundation under the Linux Foundation.",
      "source_title": "AGENTS.md",
      "source_url": "https://agents.md/",
      "source_date": "2026-11-07",
      "method": "documented",
      "limitation": "The project's own description and count."
    },
    {
      "text": "Shopify says the agents.md.liquid template is not the same as a theme-root AGENTS.md file: the template renders a public page for shopping agents, while the theme-root file gives coding agents context about how the theme is built and isn't served on the storefront.",
      "source_title": "Shopify.dev: agents.md.liquid",
      "source_url": "https://shopify.dev/docs/storefronts/themes/architecture/templates/agents-md-liquid",
      "source_date": "2026-11-07",
      "method": "documented",
      "limitation": "Developer documentation; living page."
    },
    {
      "text": "Ahrefs found that no AI bot requested an llms.txt file that didn't exist; agents fetch such files when something links to them or a user tells them to.",
      "source_title": "Ahrefs: We Analyzed 137K Sites: 97% of llms.txt Files Never Get Read",
      "source_url": "https://ahrefs.com/blog/llmstxt-study",
      "source_date": "2026-11-07",
      "method": "observed",
      "limitation": "Measured llms.txt, not agents.md, in May 2026."
    }
  ],
  "sources": [
    {
      "title": "Shopify Help Center: Shopify Catalog and product discovery for agentic storefronts",
      "url": "https://help.shopify.com/en/manual/online-sales-channels/agentic-storefronts/products",
      "accessed": "2026-11-07"
    },
    {
      "title": "Shopify.dev: agents.md.liquid",
      "url": "https://shopify.dev/docs/storefronts/themes/architecture/templates/agents-md-liquid",
      "accessed": "2026-11-07"
    },
    {
      "title": "Shopify.dev changelog: Customize /llms.txt, /llms-full.txt and /agents.md",
      "url": "https://shopify.dev/changelog/posts/customize-llmstxt-llms-fulltxt-and-agentsmd",
      "accessed": "2026-11-07"
    },
    {
      "title": "Shopify Help Center: Store policies",
      "url": "https://help.shopify.com/en/manual/checkout-settings/refund-privacy-tos",
      "accessed": "2026-11-07"
    },
    {
      "title": "AGENTS.md",
      "url": "https://agents.md/",
      "accessed": "2026-11-07"
    },
    {
      "title": "Ahrefs: We Analyzed 137K Sites: 97% of llms.txt Files Never Get Read",
      "url": "https://ahrefs.com/blog/llmstxt-study",
      "accessed": "2026-11-07"
    }
  ],
  "limitations": [
    "Nobody has published data on how often shopping agents read agents.md, or whether its content changes what they recommend.",
    "Our 13 stores are well-known brands we picked by hand, fetched once from a US server on November 7, 2026. Store names are withheld.",
    "Shopify writes and updates the default file. Its wording on your store may already differ from the example here.",
    "The link between an empty shipping policy and a missing link in agents.md is our inference from seven stores; Shopify doesn't spell it out."
  ],
  "related": [
    "https://cartforagents.com/guides/llms-txt",
    "https://cartforagents.com/guides/universal-commerce-protocol",
    "https://cartforagents.com/guides/shopify-mcp",
    "https://cartforagents.com/guides/shopify-agentic-storefronts",
    "https://cartforagents.com/guides/shipping-return-policy-structured-data",
    "https://cartforagents.com/guides/agentic-commerce-protocols",
    "https://cartforagents.com/guides/product-page-prompt-injection"
  ],
  "published": "2026-11-07",
  "updated": "2026-11-09",
  "checked": "2026-11-07",
  "kind": "guide",
  "figures": [
    {
      "url": "https://cartforagents.com/guides/agents-md#figure-1",
      "kind": "screenshot",
      "alt": "Screenshot of a real Shopify store's /agents.md file, taken November 8, 2026, with the store's name and web address covered by grey hatched blocks marked \"store\". The top reads \"# Agent Instructions —\" followed by the hidden name, then a paragraph saying you can browse and shop at the store's online store on your user's behalf, through the Shop skill and UCP. 1: the \"## Shop skill — recommended\" heading is boxed. A band notes that sections 2, UCP, 3, Interaction guidelines, and 4, Read-only browsing, are trimmed. 5: the \"## Store Policies\" section lists only three links: privacy policy, terms of service and refund policy. A pink note says \"No shipping policy\". 6: the \"## Platform\" heading is boxed.",
      "caption": "Shopify's default agents.md on a real store, name hidden. The numbers follow the article's six parts. This store lists no shipping policy, like 7 of the 13 stores we checked.",
      "source": "A Shopify store's default /agents.md (store anonymized); annotations by Cart for Agents",
      "taken": "2026-11-08"
    }
  ]
}