AGENTS.md@rustA

AGENTS.md@rust from github/copilot-sdk is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add github/copilot-sdk/rust/AGENTS.md@git:20261021.15fe467

Pins git:20261021.15fe467 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
AGENTS.md file
Repository
github/copilot-sdk
Path
rust/AGENTS.md
Versions recorded
3
Latest version
git:20261021.15fe467, committed Oct 21, 2026
First version recorded
Sep 22, 2026
Size
5,707 bytes
Repository stars
10,564
License
MIT

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

<!-- Copyright (c) Microsoft Corporation. All rights reserved. -->

# Rust SDK

This directory contains the independent `github-copilot-sdk` crate. In
standalone SDK workflows, paths and Cargo commands below are relative to this
directory, and this crate's own lockfile and toolchain apply. When nested at
`src/sdk/rust`, the runtime CLI consumes the same checked-out sources through
the Bazel integration described under Development. The runtime's N-API
architecture does not otherwise govern this crate.

## Public API and errors

- Use the existing `Error` and `ErrorKind` in [src/errors.rs](src/errors.rs).
  Extend that public error contract instead of adding parallel per-module error
  types or returning `anyhow::Error` from library APIs.
- Treat exported types, builders, and trait signatures as a consumer-facing
  contract. Adding a required field to a public struct can break callers'
  struct literals; preserve compatibility with existing construction patterns.
- Document public APIs with rustdoc. Keep cross-language parity notes in
  [README.md](README.md), rather than repeating comparisons to other SDKs on
  individual symbols.

## Extension points and session lifetime
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add github/copilot-sdk/rust/AGENTS.md@sha256:b364647af1bc17d2

The line at the top of this page pins the label git:20261021.15fe467, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_p3v46imxgrxv45s4.svg)](https://markdownregistry.com/a/art_p3v46imxgrxv45s4)

4 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Sep 22, 2026 and Oct 21, 2026, about one every 14 days.

versioncommittedcommitsizeaudit
git:20261021.15fe467 latest2026-10-21 15fe467 5,707 BA view · diff
git:20261004.6b4f3a32026-10-04 6b4f3a3 5,709 BA view · diff
git:20260922.51a03942026-09-22 51a0394 5,464 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (5707 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

github/copilot-sdk · 10,564 stars · license MIT · pushed 2026-10-21 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_p3v46imxgrxv45s4
GET https://markdownregistry.com/api/v1/resolve?ref=github/copilot-sdk/rust/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/b364647af1bc17d2a306b66262cb7c99987035bfbaaa1dc7fe5b303c4fd239f9

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.

More from github/copilot-sdk

AGENTS.md@docs AGENTS.md file
github/copilot-sdk · docs/AGENTS.md
git:20260922.51a0394 · audit A · 10,564 stars
AGENTS.md@dotnet/test/E2E AGENTS.md file
github/copilot-sdk · dotnet/test/E2E/AGENTS.md
git:20260922.51a0394 · audit A · 10,564 stars
AGENTS.md@java AGENTS.md file
github/copilot-sdk · java/AGENTS.md
git:20261004.6b4f3a3 · audit A · 10,564 stars

Every file in github/copilot-sdk

Browse by kind, by grade A, or by owner.