agentleFS
MicrosoftKnown publishermicrosoft/Hosted_Agents_Workshop_dotNET/AGENTS.md

Hosted_Agents_Workshop_dotNET

AGENTS.md24 starsChanged 5 months agoMITView on GitHub

This file defines repository-level guidance for coding agents and contributors. This repo is a beginner workshop for Microsoft Foundry hosted agents with .NET 10. Primary learning flow: When UI images need refresh for docs: Expected outputs: Before publishing updates:

  • 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.

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep instructions beginner-friendly and copy-paste ready.

    line 20
  2. Distinctive:

    Prefer placeholder values in docs over real subscription, tenant, endpoint, or registry identifiers.

    line 21
  3. Distinctive:

    Keep examples safe for public sharing.

    line 22
  4. Distinctive:

    Use short sections and simple language.

    line 27
  5. Very specific:

    If screenshots are referenced, ensure the files exist in labs/lab-5-ui/images.

    line 33
  6. Very specific:

    Keep deterministic business logic in src/WorkshopLab.Core.

    line 38
  7. Very specific:

    Keep hosted agent host behavior in src/WorkshopLab.AgentHost.

    line 39
  8. Distinctive:

    Run tests when changing core logic:

    line 40
  9. Distinctive:

    When UI images need refresh for docs:

    line 48
  10. Distinctive:

    No hardcoded personal tenant IDs, subscription IDs, or project endpoints

    line 72
  11. Distinctive:

    No hardcoded personal ACR names

    line 73

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

This file defines repository-level guidance for coding agents and contributors.

Repository Purpose

This repo is a beginner workshop for Microsoft Foundry hosted agents with .NET 10.

Primary learning flow:

  1. Local hosted agent setup and validation
  2. Copilot customization
  3. Deterministic tool implementation and tests
  4. CI validation
  5. Azure deployment flow
  6. UI integration and screenshot capture

General Rules

  • Keep instructions beginner-friendly and copy-paste ready.
  • Prefer placeholder values in docs over real subscription, tenant, endpoint, or registry identifiers.
  • Keep examples safe for public sharing.
  • Preserve the current lab sequence and avoid reordering labs without a clear reason.

Documentation Rules

  • Use short sections and simple language.
  • Include expected results for each lab step.
  • For any command that depends on user environment, show placeholders:
    • <account>
    • <project>
    • <your-acr-name>
  • If screenshots are referenced, ensure the files exist in labs/lab-5-ui/images.

Code and Build Rules

  • Target framework is .NET 10.
  • Keep deterministic business logic in src/WorkshopLab.Core.
  • Keep hosted agent host behavior in src/WorkshopLab.AgentHost.
  • Run tests when changing core logic:
dotnet test WorkshopLab.sln

UI Screenshot Workflow

When UI images need refresh for docs:

  1. Start the app:
dotnet run --project src/WorkshopLab.ChatUI --urls http://localhost:5075
  1. In another terminal, run screenshot capture:
npm run capture:screenshots

Expected outputs:

  • labs/lab-5-ui/images/01-chat-ui-landing.png
  • labs/lab-5-ui/images/02-chat-ui-prompt-entered.png
  • labs/lab-5-ui/images/03-chat-ui-response-hd.png

Public Sharing Checklist

Before publishing updates:

  • No hardcoded personal tenant IDs, subscription IDs, or project endpoints
  • No hardcoded personal ACR names
  • .gitignore includes local-only artifacts (for example node_modules/, local logs, debug outputs)
  • Beginner docs still read top-to-bottom without hidden assumptions

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.