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
- Distinctive: line 20
Keep instructions beginner-friendly and copy-paste ready.
- Distinctive: line 21
Prefer placeholder values in docs over real subscription, tenant, endpoint, or registry identifiers.
- Distinctive: line 22
Keep examples safe for public sharing.
- Distinctive: line 27
Use short sections and simple language.
- Very specific: line 33
If screenshots are referenced, ensure the files exist in labs/lab-5-ui/images.
- Very specific: line 38
Keep deterministic business logic in src/WorkshopLab.Core.
- Very specific: line 39
Keep hosted agent host behavior in src/WorkshopLab.AgentHost.
- Distinctive: line 40
Run tests when changing core logic:
- Distinctive: line 48
When UI images need refresh for docs:
- Distinctive: line 72
No hardcoded personal tenant IDs, subscription IDs, or project endpoints
- Distinctive: line 73
No hardcoded personal ACR names
≈ “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.
Files
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:
- Local hosted agent setup and validation
- Copilot customization
- Deterministic tool implementation and tests
- CI validation
- Azure deployment flow
- 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.slnUI Screenshot Workflow
When UI images need refresh for docs:
- Start the app:
dotnet run --project src/WorkshopLab.ChatUI --urls http://localhost:5075- In another terminal, run screenshot capture:
npm run capture:screenshotsExpected outputs:
labs/lab-5-ui/images/01-chat-ui-landing.pnglabs/lab-5-ui/images/02-chat-ui-prompt-entered.pnglabs/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
.gitignoreincludes local-only artifacts (for examplenode_modules/, local logs, debug outputs)- Beginner docs still read top-to-bottom without hidden assumptions
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
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.

