agentleFS
MicrosoftKnown publishermicrosoft-foundry/foundry-samples/samples/python/hosted-agents/bring-your-own/activity/github-copilot/AGENTS.md

foundry-samples / github-copilot

AGENTS.md454 starsChanged 3 months agoMITView on GitHub

This project is a Microsoft Foundry hosted agent — a containerized AI agent that runs in Foundry Agent Service. The platform handles containerization, hosting, security, scaling, and observability so you can focus on agent logic. This agent uses the Activity protocol (Bot Framework / M365 Agents SDK), so it is reached through a Bot channel (Microsoft Teams) rather than the request/response azd ai agent invoke path used by the responses protocol. The Azure Developer CLI (azd) manages the full lifecycle:

The file

Files
AGENTS.md

Coding Agent Instructions

This project is a Microsoft Foundry hosted agent — a containerized AI agent that runs in Foundry Agent Service. The platform handles containerization, hosting, security, scaling, and observability so you can focus on agent logic.

This agent uses the Activity protocol (Bot Framework / M365 Agents SDK), so it is reached through a Bot channel (Microsoft Teams) rather than the request/response azd ai agent invoke path used by the responses protocol.

Key files

  • main.py — activity handlers (message, conversationUpdate) → client.ask()
  • client.py — GitHub Copilot SDK harness (session + ask())
  • tools.py — the custom tool set (a to-do list); tasks are persisted to a JSON file under $HOME so they survive sandbox idle/recycle
  • files.py — attachment text extraction (PDF / DOCX / PPTX), inlined into the prompt by main.py
  • Dockerfile — container definition

Development workflow

The Azure Developer CLI (azd) manages the full lifecycle:

azd ai agent run                 # Run locally on http://localhost:8088
azd deploy                       # Deploy to Foundry (creates the Azure Bot + Teams channel)

Activity agents are push-based: the agent replies out-of-band through the Bot Connector, so azd ai agent invoke (which reads a synchronous response body) does not apply here. Test a deployed agent by chatting with it in Microsoft Teams (package/sideload the Teams app produced during deploy). For a local terminal loop, POST a synthetic activity to http://localhost:8088/activity/messages with a serviceUrl pointing at a local catcher.

Microsoft Foundry Skill

Install the Microsoft Foundry Skill for guided deployment, evaluation, and troubleshooting workflows.

Direct install (preferred, works with any coding agent):

npx skills add https://github.com/microsoft/azure-skills --skill microsoft-foundry

Or install the Azure Skills Plugin:

  • Copilot CLI: /plugin marketplace add microsoft/azure-skills then /plugin install azure@azure-skills
  • Claude Code: /plugin install azure@claude-plugins-official

Then ask naturally, e.g. Use the Microsoft Foundry Skill to deploy this agent.

References

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.