agentleFS
MicrosoftKnown publishermicrosoft-foundry/foundry-samples/samples/python/hosted-agents/agent-framework/responses/19-harness-research/AGENTS.md

foundry-samples / 19-harness-research

AGENTS.md454 starsChanged 3 months agoMITView on GitHub

This sample is a Microsoft Foundry hosted agent. It hosts the Microsoft Agent Framework research harness through Responses protocol v2, including planning, todos, web search, context compaction, and file memory. 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 also…

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 37

≈ “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 - Research Harness (Responses)

This sample is a Microsoft Foundry hosted agent. It hosts the Microsoft Agent Framework research harness through Responses protocol v2, including planning, todos, web search, context compaction, and file memory. 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-research-responses/main.py - harness configuration and Responses server entry point
  • src/agent-framework-harness-research-responses/pyproject.toml - Python project metadata and dependencies
  • src/agent-framework-harness-research-responses/uv.lock - reproducible dependency lockfile
  • src/agent-framework-harness-research-responses/uv.toml - uv configuration
  • src/agent-framework-harness-research-responses/Dockerfile - Python 3.13 container definition for optional container deployment
  • src/agent-framework-harness-research-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

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.