{
  "@context": "https://schema.org",
  "@id": "https://aggr.aymericbeaumet.com/items/ampcode-com/2025-09-23-globs-in-agents-md/#webpage",
  "@type": [
    "WebPage",
    "ArchiveComponent"
  ],
  "articleBody": "Your [`AGENTS.md` files](https://ampcode.com/manual#AGENTS.md) can now include other context files dynamically, with glob mentions and filters, so you can give more granular guidance to the agent.\n\nFor example, to apply language-specific coding rules:\n\n1. Put `See @docs/*.md` anywhere in your `AGENTS.md` file.\n\n2. Create a file `docs/typescript-conventions.md` with:\n\n   ```markdown\n   ---\n   globs:\n     - '**/*.ts'\n   ---\n\n   Follow these TypeScript conventions:\n\n   - Never use the `any` type\n   - ...\n   ```\n\n3. Repeat for other languages.\n\nThere's nothing special about `@docs/*.md`; you could instead mention `@.agent/rules/*.md` or `@.cursor/rules/*.mdc` or anywhere else you want these rules to live.\n\nThese @-mentioned files with `globs` will only be included if Amp has read a file matching any of the globs (in the example above, any TypeScript file). Use `/agent-files` (CLI) or hover over `X% of 968k` (editor extension) to see the guidance files in use.\n",
  "authors": [],
  "captured_at": "2026-10-04T12:50:30.804479567+00:00",
  "category": "programming",
  "content_html": "<p>Your <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://ampcode.com/manual#AGENTS.md\"><code>AGENTS.md</code> files</a> can now include other context files dynamically, with glob mentions and filters, so you can give more granular guidance to the agent.</p>\n<p>For example, to apply language-specific coding rules:</p>\n<ol>\n<li>\n<p>Put <code>See @docs/*.md</code> anywhere in your <code>AGENTS.md</code> file.</p>\n</li>\n<li>\n<p>Create a file <code>docs/typescript-conventions.md</code> with:</p>\n<pre><code class=\"language-markdown\"><span class=\"code-snippet\" data-language=\"Markdown\"><span class=\"syntax-text syntax-html syntax-markdown\"><span class=\"syntax-meta syntax-block-level syntax-markdown\"><span class=\"syntax-meta syntax-separator syntax-thematic-break syntax-markdown\"><span class=\"syntax-punctuation syntax-definition syntax-thematic-break syntax-markdown\">---</span>\n</span></span><span class=\"syntax-meta syntax-paragraph syntax-markdown\">globs:\n</span><span class=\"syntax-markup syntax-list syntax-unnumbered syntax-markdown\">  </span><span class=\"syntax-markup syntax-list syntax-unnumbered syntax-bullet syntax-markdown\"><span class=\"syntax-punctuation syntax-definition syntax-list_item syntax-markdown\">-</span></span><span class=\"syntax-markup syntax-list syntax-unnumbered syntax-markdown\"> <span class=\"syntax-meta syntax-paragraph syntax-list syntax-markdown\">&#39;<span class=\"syntax-markup syntax-bold syntax-markdown\"><span class=\"syntax-punctuation syntax-definition syntax-bold syntax-begin syntax-markdown\">**</span>/<span class=\"syntax-markup syntax-italic syntax-markdown\"><span class=\"syntax-punctuation syntax-definition syntax-italic syntax-begin syntax-markdown\">*</span>.ts&#39;\n---\n<span class=\"syntax-invalid syntax-illegal syntax-non-terminated syntax-bold-italic syntax-markdown\">\n</span></span>Follow these TypeScript conventions:\n<span class=\"syntax-invalid syntax-illegal syntax-non-terminated syntax-bold-italic syntax-markdown\">\n</span></span></span></span><span class=\"syntax-markup syntax-list syntax-unnumbered syntax-bullet syntax-markdown\"><span class=\"syntax-punctuation syntax-definition syntax-list_item syntax-markdown\">-</span></span><span class=\"syntax-markup syntax-list syntax-unnumbered syntax-markdown\"><span class=\"syntax-meta syntax-paragraph syntax-list syntax-markdown\"> Never use the <span class=\"syntax-markup syntax-raw syntax-inline syntax-markdown\"><span class=\"syntax-punctuation syntax-definition syntax-raw syntax-begin syntax-markdown\">`</span>any<span class=\"syntax-punctuation syntax-definition syntax-raw syntax-end syntax-markdown\">`</span></span> type\n</span></span><span class=\"syntax-markup syntax-list syntax-unnumbered syntax-bullet syntax-markdown\"><span class=\"syntax-punctuation syntax-definition syntax-list_item syntax-markdown\">-</span></span><span class=\"syntax-markup syntax-list syntax-unnumbered syntax-markdown\"><span class=\"syntax-meta syntax-paragraph syntax-list syntax-markdown\"> ...\n</span></span></span></span></code></pre>\n</li>\n<li>\n<p>Repeat for other languages.</p>\n</li>\n</ol>\n<p>There's nothing special about <code>@docs/*.md</code>; you could instead mention <code>@.agent/rules/*.md</code> or <code>@.cursor/rules/*.mdc</code> or anywhere else you want these rules to live.</p>\n<p>These @-mentioned files with <code>globs</code> will only be included if Amp has read a file matching any of the globs (in the example above, any TypeScript file). Use <code>/agent-files</code> (CLI) or hover over <code>X% of 968k</code> (editor extension) to see the guidance files in use.</p>\n",
  "content_markdown": "Your [`AGENTS.md` files](https://ampcode.com/manual#AGENTS.md) can now include other context files dynamically, with glob mentions and filters, so you can give more granular guidance to the agent.\n\nFor example, to apply language-specific coding rules:\n\n1. Put `See @docs/*.md` anywhere in your `AGENTS.md` file.\n\n2. Create a file `docs/typescript-conventions.md` with:\n\n   ```markdown\n   ---\n   globs:\n     - '**/*.ts'\n   ---\n\n   Follow these TypeScript conventions:\n\n   - Never use the `any` type\n   - ...\n   ```\n\n3. Repeat for other languages.\n\nThere's nothing special about `@docs/*.md`; you could instead mention `@.agent/rules/*.md` or `@.cursor/rules/*.mdc` or anywhere else you want these rules to live.\n\nThese @-mentioned files with `globs` will only be included if Amp has read a file matching any of the globs (in the example above, any TypeScript file). Use `/agent-files` (CLI) or hover over `X% of 968k` (editor extension) to see the guidance files in use.\n",
  "dateCreated": "2026-10-04T12:50:30.804479567+00:00",
  "date_created": "2025-09-23T00:00:00+00:00",
  "date_modified": "2025-09-23T00:00:00+00:00",
  "date_published": "2025-09-23T00:00:00+00:00",
  "description": "Your AGENTS.md files can now include other context files dynamically, with glob mentions and filters, so you can give more granular guidance to the agent. For example, to apply language-specific coding rules: Put See @docs/.md anywhere in…",
  "external_url": "https://ampcode.com/news/globs-in-AGENTS.md",
  "git": {
    "commit": "ebb0941c5c06a2ab2377342d607535262a3e969e",
    "path": "items/ampcode-com/2025/09/2025-09-23-globs-in-agents-md.md",
    "permalink": "https://github.com/aymericbeaumet/aggr-instance/blob/ebb0941c5c06a2ab2377342d607535262a3e969e/items/ampcode-com/2025/09/2025-09-23-globs-in-agents-md.md"
  },
  "id": "urn:aggr:item:1572f8241a73249f8c85245c09b758a2974dd771",
  "isBasedOn": {
    "@id": "https://ampcode.com/news/globs-in-AGENTS.md"
  },
  "mainEntity": {
    "@id": "https://ampcode.com/news/globs-in-AGENTS.md",
    "@type": "CreativeWork",
    "archivedAt": {
      "@id": "https://aggr.aymericbeaumet.com/items/ampcode-com/2025-09-23-globs-in-agents-md/#webpage"
    },
    "dateModified": "2025-09-23T00:00:00+00:00",
    "datePublished": "2025-09-23T00:00:00+00:00",
    "headline": "Globs in AGENTS.md",
    "timeRequired": "PT1M",
    "url": "https://ampcode.com/news/globs-in-AGENTS.md",
    "wordCount": 136
  },
  "name": "Archived snapshot: Globs in AGENTS.md",
  "preview": null,
  "reading_minutes": 1,
  "replicated_at": null,
  "source": "ampcode-com",
  "source_name": "Amp News",
  "summary": "Your AGENTS.md files can now include other context files dynamically, with glob mentions and filters, so you can give more granular guidance to the agent. For example, to apply language-specific coding rules: Put See @docs/*.md anywhere in your AGENTS.md file. Create a file docs/typescript-conventions.md with: --- globs: - '**/*.ts' --- Follow these TypeScript conventions: - Never use the `any` type - ... Repeat for other languages. There's nothing special about @docs/*.md; you could instead mention @.agent/rules/*.md or @.cursor/rules/*.mdc or anywhere else you want these rules to live. These @-mentioned files with globs will only be included if Amp has read a file matching any of the globs (in the example above, any TypeScript file). Use /agent-files (CLI) or hover over X% of 968k (editor extension) to see the guidance files in use.",
  "tags": [],
  "temporalCoverage": "2026-10-04T12:50:30.804479567+00:00",
  "title": "Globs in AGENTS.md",
  "url": "https://aggr.aymericbeaumet.com/items/ampcode-com/2025-09-23-globs-in-agents-md/",
  "word_count": 136
}