agentleFS
GitHubKnown publishergithub/copilot-sdk/docs/AGENTS.md

copilot-sdk

AGENTS.md11k starsChanged 3 months agoMITView on GitHub

This style guide applies to all documentation in the docs/ directory. These docs are synced to github/docs-internal via a normalization pipeline, so they must follow the conventions below to be compatible with docs.github.com. Use sentence case for all headings. Capitalize only the first word and proper nouns. Use and instead of & in headings. Do not use **bold** or *italic* markers inside headings. The heading level provides emphasis. Use GitHub-flavored alert syntax: Never use > **Note:** or > **Tip:** style…

  • Installs packages

Trending

Steady talk.about the whole repository

Dec 2025: 0 mentionsJan 2026: 14 mentionsFeb 2026: 2 mentionsMar 2026: 2 mentionsApr 2026: 1 mentionMay 2026: 2 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 2 mentionsSep 2026: 1 mentionOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the github/copilot-sdk repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about github/copilot-sdk

The biggest 5 of 25 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 25

Talked about on GitHub, Bluesky and Hacker News (25 times).

On GitHub · 13

8 more on GitHub

On Bluesky · 11

6 more on Bluesky

On Hacker News · 1

  • 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 repository6 other files it gives its agents.

The file

Show its rules and text

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

22 rules. About 0 are common, 11 are distinctive, and 11 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 11

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use sentence case for all headings.

    line 7
  2. Very specific:

    Use and instead of & in headings.

    line 12
  3. Very specific:

    Do not use bold or *italic* markers inside headings.

    line 14
  4. Distinctive:

    Use GitHub-flavored alert syntax:

    line 29
  5. Very specific:

    Never use > Note: or > Tip: style callouts.

    line 42
  6. Distinctive:

    When a callout applies to a specific language, put the qualifier as bold text in the body:

    line 44
  7. Very specific:

    Use * (asterisks) for unordered list markers, not - (hyphens).

    line 55
  8. Very specific:

    Use 1. for every item in ordered lists, not sequential numbering.

    line 59
  9. Distinctive:

    Use periods only if the item is a complete sentence.

    line 70
  10. Very specific:

    Do not use --- as a horizontal rule to visually separate sections in the body of an article.

    line 89
  11. Very specific:

    If you are writing a new section with substantive content, create a named file (for example, choosing-a-setup-path.md) rather than putting …

    line 95
  12. Very specific:

    Only modify code block contents when necessary.

    line 99
  13. Distinctive:

    Use clear, simple language approachable for a wide range of readers.

    line 108
  14. Distinctive:

    Use active voice whenever possible.

    line 109
  15. Distinctive:

    Avoid idioms, slang, and region-specific phrases.

    line 110
  16. Distinctive:

    Avoid ambiguous modal verbs ("may", "might", "should", "could") when an action is required.

    line 111
  17. Distinctive:

    Use bold for UI elements and for emphasis, sparingly (no more than five contiguous words).

    line 116
  18. Distinctive:

    Do not bold text that already has other formatting (for example, all-caps placeholders).

    line 117
  19. Distinctive:

    When creating a new docs article, use this structure:

    line 145
  20. Very specific:

    When showing the same concept in multiple programming languages, use consecutive <details> blocks.

    line 167
  21. Very specific:

    Blocks must be consecutive: No content (headings, paragraphs) between <details> blocks in the same group.

    line 172
  22. Very specific:

    Do not put headings, prose, or multiple sections inside a <details> block:

    line 208

≈ “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

Copilot SDK docs style guide

This style guide applies to all documentation in the docs/ directory. These docs are synced to github/docs-internal via a normalization pipeline, so they must follow the conventions below to be compatible with docs.github.com.

Headings

Use sentence case for all headings. Capitalize only the first word and proper nouns.

  • ## Quick start: Microsoft Foundry — not ## Quick Start: Microsoft Foundry
  • # Custom agents and sub-agent orchestration — not # Custom Agents & Sub-Agent Orchestration

Use and instead of & in headings.

Do not use **bold** or *italic* markers inside headings. The heading level provides emphasis.

Proper nouns to always capitalize

  • Products/companies: GitHub, Copilot, Azure, OpenAI, Anthropic, Microsoft, Ollama, Slack, Foundry, Kubernetes, Docker
  • Languages/frameworks: TypeScript, JavaScript, Python, Java, Node.js, OpenTelemetry, Express
  • Platforms: macOS, Linux, Windows
  • Protocols/formats: OAuth, JSON-RPC, JSON, YAML, HTTP, TCP, SSE, REST
  • Acronyms: MCP, BYOK, MAF, SDK, CLI, API, HMAC, CI/CD, SaaS, ISV, FAQ, LLM, AI, EMU, ID, UI, PNG
  • Tools (keep canonical casing): npm, npx, stdio
  • Code identifiers in headings: SessionConfig, MessageOptions, TelemetryConfig, ProviderConfig, CopilotClient
  • Multi-word proper names: GitHub App, GitHub Actions, GitHub OAuth, Foundry Local, Managed Identity, Container Instances

Callouts

Use GitHub-flavored alert syntax:

> [!NOTE]
> This is a note.

> [!TIP]
> This is a tip.

> [!WARNING]
> This is a warning.

Never use > **Note:** or > **Tip:** style callouts.

When a callout applies to a specific language, put the qualifier as bold text in the body:

> [!TIP]
> **(Python / Go)** These SDKs use separate, per-event data types.

Lists

Unordered lists

Use * (asterisks) for unordered list markers, not - (hyphens).

Ordered lists

Use 1. for every item in ordered lists, not sequential numbering. This makes reordering easier.

1. First step
1. Second step
1. Third step

List item formatting

  • Capitalize the first letter of each list item.
  • Use periods only if the item is a complete sentence.
  • Introduce lists with a descriptive sentence, not vague phrases like "the following" in isolation.

Em dashes

For list items with a label and description, use a colon:

* **Ephemeral**: not persisted to disk, not replayed on session resume

For em dashes used mid-sentence, use no spaces:

The SDK is a transport layer—it sends your prompt to the CLI over JSON-RPC.

Horizontal rules

Do not use --- as a horizontal rule to visually separate sections in the body of an article. Use headings to separate sections instead. This does not apply to YAML frontmatter delimiters.

Index.md files

In the docs pipeline, index.md files become YAML-only category pages. Rich content (prose, code samples, diagrams) must live in standalone files.

If you are writing a new section with substantive content, create a named file (for example, choosing-a-setup-path.md) rather than putting the content in index.md.

Code snippets

  • Only modify code block contents when necessary. From <SDK_ROOT>, run the relevant npm run docs:<language> validator for Node.js, Python, Go, .NET, or Java. Rust has no docs:rust facade; validate its API documentation with cd rust && DOCS_RS=1 cargo doc --no-deps --all-features and follow rust/README.md. Keep using docs-validate: skip or docs-validate: hidden markers when appropriate.

Voice and tone

  • Use clear, simple language approachable for a wide range of readers.
  • Use active voice whenever possible.
  • Avoid idioms, slang, and region-specific phrases.
  • Avoid ambiguous modal verbs ("may", "might", "should", "could") when an action is required. Use definitive verbs instead.
  • Refer to people as "people" or "users", not "customers."

Emphasis

  • Use bold for UI elements and for emphasis, sparingly (no more than five contiguous words).
  • Do not bold text that already has other formatting (for example, all-caps placeholders).

Word choice

UseAvoid
terminalshell
sign inlog in, login
sign upsignup
emaile-mail
press (a key)hit, tap
repositoryrepo
administratoradmin
for examplee.g.
and similaretc.

What the pipeline handles

Authors do not need to worry about these — the normalization pipeline handles them automatically:

  • YAML frontmatter (added to files for docs.github.com)
  • Mermaid diagram → PNG conversion
  • Link rewriting for docs.github.com cross-references
  • Liquid variable substitution (product names)
  • [AUTOTITLE] link conversion

New article template

When creating a new docs article, use this structure:

# Article title in sentence case

A one- or two-sentence intro explaining what the reader will learn or accomplish.

## First section

Body text here.

## Second section

Body text here.

## Further reading

* [Link text](./relative-path.md): short description

Multi-language code examples

When showing the same concept in multiple programming languages, use consecutive <details> blocks. The docs-internal normalization pipeline converts these into tabbed language switchers on docs.github.com.

Rules

  • Only code inside <details> blocks. Shared prose, headings, and explanations must go outside the blocks. Each block should contain only a code fence (and optionally a <!-- docs-validate: skip --> comment).
  • Blocks must be consecutive. No content (headings, paragraphs) between <details> blocks in the same group. Blank lines between blocks are fine.
  • Use the exact <summary> format: <summary><strong>LANGUAGE</strong></summary>. Supported labels: .NET, Python, TypeScript, Go, Java, Rust, Node.js, Shell.
  • Need 2+ blocks to form a group. A single <details> block won't be converted and renders as raw HTML on docs.github.com.
  • Equal content across tabs. Each tab should show the same concept in a different language. Language-specific extras should be a separate section outside the tabs.

Correct

Shared prose goes above the group, then each <details> block contains only code:

Install the SDK:

<details open>
<summary><strong>.NET</strong></summary>

<!-- docs-validate: skip -->

```bash
dotnet add package GitHub.Copilot.SDK
</details> <details> <summary><strong>Python</strong></summary><!-- docs-validate: skip -->
pip install github-copilot-sdk
</details> ```

Incorrect

Do not put headings, prose, or multiple sections inside a <details> block:

<details>
<summary><strong>Python</strong></summary>

### Prerequisites           ← breaks TOC/anchors
Install the packages:       ← prose belongs outside

```bash
pip install github-copilot-sdk

Basic usage ← multiple sections in one tab

[code]
</details> ```

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.