agentleFS
MicrosoftKnown publishermicrosoft/scope/website/AGENTS.md

scope / website

AGENTS.md7 starsChanged 2 months agoMITView on GitHub

Project context for AI coding agents working on scope-doc, the Starlight-based documentation site for Scope. A static documentation site published to GitHub Pages. - Framework: Astro 6.x + @astrojs/starlight - Package manager: pnpm (pinned via packageManager in package.json) - TypeScript strict - Lives under the website/ directory of the repo (all site sources, config, and package.json are rooted here; run every command from website/) - Deployed by .github/workflows/static.yml (build + deploy jobs), which builds from website/ via a working-directory default…

  • Installs packages
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository9 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not derive these from actions/configure-pages outputs, which can report an isolated hostname instead of the public project URL.

    line 20
  2. Distinctive:

    Use this map as a starting point.

    line 71
  3. Very specific:

    When in doubt, grep scope-core for the symbol or string before writing anything in the docs.

    line 89
  4. Very specific:

    Write a single fenced `http block containing a raw HTTP request.

    line 126
  5. Distinctive:

    Don't duplicate the per-endpoint detail there.

    line 154
  6. Very specific:

    Use site-root paths such as /getting-started/access/ in Markdown links and literal MDX href/src attributes.

    line 158
  7. Distinctive:

    Do not hard-code the deployment prefix in content or code examples.

    line 161
  8. Very specific:

    If a date can't be confirmed, leave date out.

    line 205
  9. Distinctive:

    Don't surround filenames with backticks in the rendered text — use a markdown link to the file when it exists in the repo.

    line 218
  10. Very specific:

    Read the relevant file in scope-core (schemas first, then route handlers).

    line 250
  11. Distinctive:

    If the answer is still ambiguous, ask the user.

    line 254
  12. Distinctive:

    Never invent endpoints, statuses, or field names to fill a gap — silence is better than a confident lie that ships.

    line 256

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

Project context for AI coding agents working on scope-doc, the Starlight-based documentation site for Scope.

What this repo is

A static documentation site published to GitHub Pages.

  • Framework: Astro 6.x + @astrojs/starlight
  • Package manager: pnpm (pinned via packageManager in package.json)
  • TypeScript strict
  • Lives under the website/ directory of the repo (all site sources, config, and package.json are rooted here; run every command from website/)
  • Deployed by .github/workflows/static.yml (build + deploy jobs), which builds from website/ via a working-directory default and website/** path filters; both PR and production builds explicitly use SITE=https://microsoft.github.io and BASE_PATH=/scope. Do not derive these from actions/configure-pages outputs, which can report an isolated hostname instead of the public project URL. Local development keeps localhost and / defaults.

Where things live

  • src/content/docs/ — all user-facing pages (.md and .mdx)
    • introduction/, getting-started/, guides/, reference/, resources/, community/
  • src/content/articles/, src/content/talks/ — one YAML file per published article / talk, schema-validated by the articles and talks collections in src/content.config.ts (see "Articles & talks" below)
  • src/components/community/ — ArticleList, TalkList, TalkCard, and CommunityTeaser (the landing-page section), all reading those collections
    • Sidebar order is defined in astro.config.mjs, not by directory order
  • src/components/SiteFooter.astro — the site-wide footer (brand, link columns, Microsoft legal links). It is injected after <main> by the TwoColumnContent override in src/components/TwoColumnContent.astro, so it is a page-level contentinfo landmark and stays out of the Pagefind index. Keep its internal links pointing at pages that exist in the sidebar.
  • src/openapi/scope-openapi.json — committed artifact generated from the Scope API's OpenAPI registry; drives the auto-generated REST API reference
  • src/plugins/remark-http-snippets.mjs — custom remark plugin that expands fenced ```http blocks into multi-language Starlight <Tabs> (curl, JS fetch, Python, Go, Java, C#)
  • src/plugins/remark-base-path.mjs: prefixes internal Markdown URLs and literal MDX href/src attributes with the configured deployment base
  • astro.config.mjs — sidebar, plugins, markdown.remarkPlugins, starlight-openapi config
  • dist/ — build output (gitignored)

The source of truth: scope-core

The product itself lives in the scope-core repository. When writing docs, read scope-core before writing any factual claim. Everything in the documentation \u2014 endpoints, field names, statuses, worker IDs, behaviors, defaults, error messages, anything \u2014 MUST be grounded in the source code. Do not invent. If the source doesn't say it, it doesn't go in the docs; ask the user or leave it out.

Where to look in scope-core

Anything that comes from the source — endpoints, field names, status enums, defaults, validation rules — must be read from scope-core at the time you write it, not copied from this file. Use this map as a starting point; do not treat it as a substitute for opening the file.

TopicFile(s) in scope-core
Workers (allowed IDs, validation)packages/shared/src/schemas/request.ts (VALID_WORKERS)
Worker display names / labelsthe "name" field in each worker's agent registration (upsert) payload (e.g. "GitHub Copilot CLI", "Claude Code CLI", "VS Code Copilot")
Worker software stacks (pre-installed tools)apps/workers/*/src/test-worker.ts — the checkTools([...]) array lists every runtime and build tool baked into the container image
Request payload, scenario shapepackages/shared/src/schemas/request.ts (CreateRequestInputSchema, ScenarioSchema)
Request status / outcome enumspackages/shared/src/schemas/request.ts (RequestStatusSchema, RequestOutcomeSchema)
Request lifecycle / schedulerapps/api/src/index.ts, docs/architecture/queue-scheduler.md
Profile + version schemaspackages/shared/src/schemas/profile.ts
Criterion schema, DAG rulespackages/shared/src/schemas/criteria.ts
Route handlers, validation, error codesapps/api/src/routes/*.ts
VS Code worker behaviordocs/architecture/vscode-electron-worker.md, vscode-web-worker.md, worker-requirements.md
OpenAPI sourceapps/api/src/openapi/registry.ts; generated snapshot at src/openapi/scope-openapi.json
Swagger UIserved by the API; check apps/api/src/index.ts for the route

When in doubt, grep scope-core for the symbol or string before writing anything in the docs.

Standing user rulings

These are decisions the user has made that override what the source code might suggest. Honor them until the user says otherwise.

Workers we document

  • coder-acp-copilot — GitHub Copilot via ACP
  • coder-acp-claude-code — Anthropic Claude Code via ACP custom driver extension. This is the VS Code worker we document.

Copilot Chat) worker is deprecated — do not list it in user-facing docs even if it still appears in VALID_WORKERS.

Criteria

Criteria are DAG-only. There is no "flat checklist" mode in the product. A criterion with no dependsOn is just a root of the graph. Reflect this framing in every doc that mentions criteria.

Documentation conventions

File extensions

  • .md for plain Markdown.
  • .mdx whenever the page contains JSX (e.g. uses Starlight <Tabs>).
  • Files with ```http blocks must be .mdx because the remark plugin expands them into JSX.

HTTP examples

Write a single fenced ```http block containing a raw HTTP request. The plugin auto-generates synced curl / JS fetch / Python / Go / Java / C# tabs at build time.

```http
POST /api/v1/requests
Content-Type: application/json

{ "scenario": { "task": "...", "criteria": ["..."] } }
```

To add languages: edit the TARGETS array in src/plugins/remark-http-snippets.mjs.

Plain JSON examples (response shapes, profile config) stay as ```json — they're not requests.

REST API reference page

  • Link to /reference/api/ for the generated reference landing page. /reference/api/operations/ is not a page.
  • Auto-generated per-endpoint pages live under /reference/api/... (built from src/openapi/scope-openapi.json by starlight-openapi).
  • The hand-written reference/rest-api.md is a narrative overview with cross-links to the auto-generated pages and the live Swagger. Don't duplicate the per-endpoint detail there.

Internal links

Use site-root paths such as /getting-started/access/ in Markdown links and literal MDX href/src attributes. The base-path remark plugin adds /scope in the public build while keeping local root deployments working. Do not hard-code the deployment prefix in content or code examples.

Sidebar

Sidebar order is set in astro.config.mjs. Adding a new page requires updating the sidebar array. The auto-generated REST API groups are spread via ...openAPISidebarGroups.

Articles & talks

The community/articles-and-talks page and the "From the community" section on the landing page are generated from two content collections. To add an entry, add one YAML file. No code changes are needed.

  • Article: src/content/articles/<title-slug>.yaml
    title: Building AX evals that actually work
    url: https://developer.microsoft.com/blog/building-ax-evals-that-actually-work/
    publication: Microsoft for Developers   # blog name
    authors:                                 # as credited, byline order
      - firstName: Waldek
        lastName: Mastykarz
        position: Principal Developer Advocate
    date: 2026-07-15                         # publish date (optional)
  • Talk: src/content/talks/<yyyy-mm-dd>-<event-slug>.yaml
    title: "From Findings to Fixes: ..."
    speakers:                                       # same shape as authors
      - firstName: Jay
        lastName: Gordon
        position: Senior Program Manager, Azure Cosmos DB
    event: Global AI New York
    venue: Microsoft Lafayette, New York City
    date: 2026-09-21
    eventUrl: https://globalai.community/e/783bfa20  # GAIC event page
    youtubeId: SxaKOmqX-rk                          # omit while pending

Take title, blog name, authors (name and position from the article's author section), and publish date from the article page itself. Take speaker positions from the event page or the speaker's event profile (e.g. their Luma bio). If a date can't be confirmed, leave date out; undated articles sort last. A talk without youtubeId shows "Video coming soon". Both lists sort newest first. A missing field, bad URL, or bad date fails pnpm run build. Article and event links are external, so the components open them in a new tab (target="_blank" rel="noopener noreferrer") with a screen-reader "(opens in a new tab)" hint; keep that pattern for any new external link.

Style

  • Hard-wrap prose at ~70–80 columns for readable diffs.
  • Backtick code identifiers (workerType, coder-acp-copilot, POST /api/v1/requests).
  • Don't surround filenames with backticks in the rendered text — use a markdown link to the file when it exists in the repo.
  • Terminology: request (what you submit), run (one execution attempt of a request), task prompt (de-duplicated text), criterion (single record in the criteria DAG), profile (versioned agent runtime config).

Build, lint, test

pnpm install
pnpm test                # plugin regressions, using Node's built-in test runner
pnpm run build           # writes dist/
pnpm run dev             # local preview at http://localhost:4321
pnpm run refresh:openapi # generate the OpenAPI snapshot from scope-core

Both pnpm test and pnpm run build must pass. The public build uses SITE=https://microsoft.github.io BASE_PATH=/scope pnpm run build; exercise that configuration when changing links or deployment settings, not just the local / default. The current snapshot produces 203 pages, including the generated API reference. An unexpected drop in page count can indicate a content collection file failed to parse.

Workflow

  • Each logical change is its own commit. Push to refresh the PR; CI rebuilds and redeploys to GH Pages.
  • main is protected — open a PR, don't push directly.

When in doubt

  1. Read the relevant file in scope-core (schemas first, then route handlers).
  2. Generate the OpenAPI snapshot with pnpm run refresh:openapi and inspect src/openapi/scope-openapi.json.
  3. If the answer is still ambiguous, ask the user. The user is the product owner and will know intent.
  4. Never invent endpoints, statuses, or field names to fill a gap — silence is better than a confident lie that ships.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.