agentleFS
MicrosoftKnown publishermicrosoft-foundry/foundry-samples/samples/python/hosted-agents/agent-framework/responses/21-harness-scaling-capabilities/AGENTS.md

foundry-samples / 21-harness-scaling-capabilities

AGENTS.md21 starsChanged 3 months agoMITView on GitHub

This sample is a Microsoft Foundry hosted agent. It ports the Microsoft Agent Framework personal-finance harness sample to the Foundry Responses v2 protocol while preserving its file skills, background research, confined shell, CodeAct provider, and simulated trade tool. It runs in Foundry Agent Service, which manages hosting, security, scaling, and observability so contributors can focus on the agent logic. - Direct code deployment: codeConfiguration in azure.yaml declares the Python runtime and main.py entry point. A Dockerfile is not required. -…

The file

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

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not commit .vscode launch or task files generated when the Foundry Toolkit scaffolds a local workspace.

    line 28

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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

Coding Agent Instructions - Harness scaling capabilities

This sample is a Microsoft Foundry hosted agent. It ports the Microsoft Agent Framework personal-finance harness sample to the Foundry Responses v2 protocol while preserving its file skills, background research, confined shell, CodeAct provider, and simulated trade tool. It runs in Foundry Agent Service, which manages hosting, security, scaling, and observability so contributors can focus on the agent logic.

Deployment mode

  • Direct code deployment: codeConfiguration in azure.yaml declares the Python runtime and main.py entry point. A Dockerfile is not required.

Key files

  • azure.yaml - azd manifest for the Foundry project, model deployment, hosted agent, environment variables, and direct code deployment
  • src/harness-scaling-capabilities-responses/main.py - agent implementation and Responses server entry point
  • src/harness-scaling-capabilities-responses/pyproject.toml - project metadata and dependencies
  • src/harness-scaling-capabilities-responses/uv.lock - reproducible dependency lock
  • src/harness-scaling-capabilities-responses/skills/ - bundled valuation and risk-scoring skills
  • src/harness-scaling-capabilities-responses/working/ - seed portfolio and trade-confirmation files copied into writable session storage
  • README.md - prerequisites and supported local run, test, and deployment paths

Do not commit .vscode launch or task files generated when the Foundry Toolkit scaffolds a local workspace. Keep the project's .venv in src/harness-scaling-capabilities-responses/, next to pyproject.toml.

Development workflow

The Azure Developer CLI (azd) manages the hosted-agent lifecycle. From an initialized agent project:

azd provision                              # Provision declared Azure resources, if needed
azd ai agent run                           # Run locally on http://localhost:8088
azd ai agent invoke --local "your message" # Test the local agent
azd deploy                                 # Deploy to Foundry
azd ai agent invoke "your message"         # Invoke the deployed agent
azd down                                   # Remove resources created for the project

Consecutive invokes reuse the Responses conversation, which lets the README's multi-turn capability trajectory build on earlier turns.

Microsoft Foundry Skill

This project was built with the microsoft-foundry skill. Before working on or answering questions about Foundry agents, read the microsoft-foundry skill first.

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, for example: 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.