agentleFS
MicrosoftKnown publishermicrosoft-foundry/foundry-samples/samples/python/hosted-agents/agent-framework/responses/20-harness-data-processing/AGENTS.md

foundry-samples / 20-harness-data-processing

AGENTS.md454 starsChanged 3 months agoMITView on GitHub

This sample is a Microsoft Foundry hosted agent. It hosts the Microsoft Agent Framework data-processing harness through Responses protocol v2, including filesystem-backed input and output plus structured approval for write operations. 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 3.13 runtime and main.py entry point. A Dockerfile is not required for this default path. The source directory…

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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 40
  2. Distinctive:

    Use Agent Inspector or Agent Playground for write requests so the structured approval item can be rendered and resumed.

    line 57

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

Coding Agent Instructions - Data-Processing Harness (Responses)

This sample is a Microsoft Foundry hosted agent. It hosts the Microsoft Agent Framework data-processing harness through Responses protocol v2, including filesystem-backed input and output plus structured approval for write operations. 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 3.13 runtime and main.py entry point. A Dockerfile is not required for this default path.

The source directory also includes a Dockerfile so users can select container deployment with azd ai agent init --deploy-mode container; initialization updates the local manifest for that deployment mode.

Key files

  • azure.yaml - azd manifest for the Foundry project, hosted agent, model, environment variables, and default deployment mode
  • src/agent-framework-harness-data-processing-responses/main.py - harness configuration, seed-data setup, and Responses server entry point
  • src/agent-framework-harness-data-processing-responses/pyproject.toml - Python project metadata and dependencies
  • src/agent-framework-harness-data-processing-responses/uv.lock - reproducible dependency lockfile
  • src/agent-framework-harness-data-processing-responses/uv.toml - uv configuration
  • src/agent-framework-harness-data-processing-responses/working/sales.csv - bundled read-only input copied into each session's working directory
  • src/agent-framework-harness-data-processing-responses/Dockerfile - Python 3.13 container definition for optional container deployment
  • src/agent-framework-harness-data-processing-responses/.dockerignore - files excluded from the container build context
  • 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.

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

Use Agent Inspector or Agent Playground for write requests so the structured approval item can be rendered and resumed.

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